Skip to content

Commit

Permalink
zitierhinweis, footnotes
Browse files Browse the repository at this point in the history
  • Loading branch information
csae8092 committed Feb 17, 2023
1 parent 6cb66e4 commit 9314516
Show file tree
Hide file tree
Showing 5 changed files with 133 additions and 53 deletions.
68 changes: 54 additions & 14 deletions rita-static.xpr
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
<scenarioAssociation-array>
<scenarioAssociation>
<field name="url">
<String>data/indices/listbibl.xml</String>
<String>data/rita1/Fasz_8_Pos_1_2_BUCH.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>listbibl</String>
<String>editions</String>
</list>
</field>
<field name="scenarioTypes">
Expand All @@ -30,11 +30,11 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/indices/listplace.xml</String>
<String>data/editions/inventar__1750-07-08.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>listplace</String>
<String>editions</String>
</list>
</field>
<field name="scenarioTypes">
Expand All @@ -50,11 +50,11 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/indices/listperson.xml</String>
<String>data/imprint.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>listperson</String>
<String>toc</String>
</list>
</field>
<field name="scenarioTypes">
Expand All @@ -70,11 +70,11 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/inventare/stubaital-summary.xml</String>
<String>data/indices/listbibl.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>inventar-stubai</String>
<String>listbibl</String>
</list>
</field>
<field name="scenarioTypes">
Expand All @@ -90,11 +90,11 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/inventare/lg_michaelsburg.xml</String>
<String>data/indices/listplace.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>inventar</String>
<String>listplace</String>
</list>
</field>
<field name="scenarioTypes">
Expand All @@ -110,7 +110,47 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/inventare/inv_pustertal.xml</String>
<String>data/indices/listperson.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>listperson</String>
</list>
</field>
<field name="scenarioTypes">
<list>
<String>XSL</String>
</list>
</field>
<field name="scenarioStorageLocations">
<list>
<Byte>2</Byte>
</list>
</field>
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/inventare/stubaital-summary.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>inventar-stubai</String>
</list>
</field>
<field name="scenarioTypes">
<list>
<String>XSL</String>
</list>
</field>
<field name="scenarioStorageLocations">
<list>
<Byte>2</Byte>
</list>
</field>
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/inventare/lg_michaelsburg.xml</String>
</field>
<field name="scenarioIds">
<list>
Expand All @@ -130,11 +170,11 @@
</scenarioAssociation>
<scenarioAssociation>
<field name="url">
<String>data/imprint.xml</String>
<String>data/inventare/inv_pustertal.xml</String>
</field>
<field name="scenarioIds">
<list>
<String>toc</String>
<String>inventar</String>
</list>
</field>
<field name="scenarioTypes">
Expand Down Expand Up @@ -317,7 +357,7 @@
<Boolean>true</Boolean>
</field>
<field name="openInBrowser">
<Boolean>false</Boolean>
<Boolean>true</Boolean>
</field>
<field name="outputResource">
<String>${pd}/html/${cfn}.html</String>
Expand Down
18 changes: 15 additions & 3 deletions xslt/editions.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
<xsl:variable name="doc_title">
<xsl:value-of select=".//tei:title[@type='label'][1]/text()"/>
</xsl:variable>
<xsl:variable name="signatur">
<xsl:value-of select="string-join(.//tei:msIdentifier/(tei:repository|tei:collection|tei:idno)/text(), ', ')"/>
</xsl:variable>

<xsl:template match="/">
<xsl:variable name="doc_title">
Expand Down Expand Up @@ -91,9 +94,9 @@
<div class="card-body">
<xsl:apply-templates select=".//tei:body"></xsl:apply-templates>
</div>
<div class="card-footer">
<p style="text-align:center;">
<xsl:for-each select=".//tei:note[not(./tei:p)]">
<div class="card-footer" style="text-align:justify">
<p>
<xsl:for-each select=".//tei:body//tei:note">
<div class="footnotes" id="{local:makeId(.)}">
<xsl:element name="a">
<xsl:attribute name="name">
Expand All @@ -114,6 +117,14 @@
</div>
</xsl:for-each>
</p>
<p>
<hr/>
<h3>Zitierhinweis</h3>
<blockquote class="blockquote">
<cite title="Source Title">
<xsl:value-of select="$signatur"/>, hg. v. Michael Span und Michael Prokosch, In: Reading in the Alps, https://rita.acdh.oeaw.ac.at</cite>
</blockquote>
</p>
</div>
</div>
</div>
Expand Down Expand Up @@ -218,4 +229,5 @@
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template match="tei:rs[@type='skos']"/>
</xsl:stylesheet>
2 changes: 1 addition & 1 deletion xslt/partials/html_footer.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
</div>
<div class="footer-imprint-bar">
<a href="imprint.html">Impressum/Imprint</a> | <small>
<a href="https://hdl.handle.net/21.11115/0000-000C-D8D9-C">21.11115/0000-000C-D8D9-C</a>
<a href="https://hdl.handle.net/21.11115/0000-000C-D8D9-C">21.11115/0000-000C-D8D9-C</a> | <a href="https://creativecommons.org/licenses/by-sa/4.0/">cc-by-sa</a>
</small>
<div class="row" style="padding-top: 20px;">
<div class="col-sm">
Expand Down
5 changes: 5 additions & 0 deletions xslt/toc.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@
<div class="card">
<div class="card-header">
<h1>Inventare aus dem Pustertal <small>RITA 2</small></h1>
<h3>
<a href="about.html">
<i class="fas fa-info" title="Info zu diesen Inventaren"/>
</a>
</h3>
</div>
<div class="card-body">
<table class="table table-striped display" id="tocTable" style="width:100%">
Expand Down
93 changes: 58 additions & 35 deletions xslt/toc2.xsl
Original file line number Diff line number Diff line change
@@ -1,33 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema"
version="2.0" exclude-result-prefixes="xsl tei xs">
<xsl:output encoding="UTF-8" media-type="text/html" method="xhtml" version="1.0" indent="yes" omit-xml-declaration="yes"/>

<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema" version="2.0" exclude-result-prefixes="xsl tei xs">
<xsl:output encoding="UTF-8" media-type="text/html" method="xhtml" version="1.0" indent="yes"
omit-xml-declaration="yes"/>

<xsl:import href="./partials/html_navbar.xsl"/>
<xsl:import href="./partials/html_head.xsl"/>
<xsl:import href="partials/html_footer.xsl"/>
<xsl:template match="/">
<xsl:variable name="doc_title" select="'Inhaltsverzeichnis'"/>
<xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html&gt;</xsl:text>
<xsl:variable name="doc_title" select="'Inventare aus dem Stubaital'"/>
<xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
<html xmlns="http://www.w3.org/1999/xhtml">
<xsl:call-template name="html_head">
<xsl:with-param name="html_title" select="$doc_title"></xsl:with-param>
<xsl:with-param name="html_title" select="$doc_title"/>
</xsl:call-template>

<body class="page">
<div class="hfeed site" id="page">
<xsl:call-template name="nav_bar"/>

<div class="container container-custom">
<div class="card">
<div class="card-header">
<h1>Inventare aus dem Stubaital</h1>
<h1>
<xsl:value-of select="$doc_title"/>
</h1>
<h3>
<a href="rita1.html">
<i class="fas fa-info" title="Info zu diesen Inventaren"/>
</a>
</h3>
</div>
<div class="card-body">
<table class="table table-striped display" id="tocTable" style="width:100%">
<table class="table table-striped display" id="tocTable"
style="width:100%">
<thead>
<tr>
<th>Titel</th>
Expand All @@ -42,31 +49,37 @@
<xsl:value-of select="document-uri(/)"/>
</xsl:variable>
<tr>
<td>
<a>
<xsl:attribute name="href">
<xsl:value-of select="replace(tokenize($full_path, '/')[last()], '.xml', '.html')"/>
</xsl:attribute>
<xsl:value-of select="//tei:title//text()"/>
</a>
<td>
<a>
<xsl:attribute name="href">
<xsl:value-of
select="replace(tokenize($full_path, '/')[last()], '.xml', '.html')"
/>
</xsl:attribute>
<xsl:value-of select="//tei:title//text()"/>
</a>
</td>
<td>
<xsl:value-of select="data(.//tei:origin[1]/tei:date//@when-iso)"/>
<xsl:value-of
select="data(.//tei:origin[1]/tei:date//@when-iso)"
/>
</td>
<td>
<xsl:value-of select=".//tei:origPlace/tei:rs/text()"/>
<xsl:value-of
select=".//tei:origPlace/tei:rs/text()"/>
</td>
<td>
<xsl:value-of select="tokenize($full_path, '/')[last()]"/>
</td>
<xsl:value-of
select="tokenize($full_path, '/')[last()]"/>
</td>
</tr>
</xsl:for-each>
</tbody>
</table>
</div>
</div>
</div>

<xsl:call-template name="html_footer"/>
<script>
$(document).ready(function () {
Expand All @@ -78,25 +91,35 @@
</html>
</xsl:template>
<xsl:template match="tei:div//tei:head">
<h2 id="{generate-id()}"><xsl:apply-templates/></h2>
<h2 id="{generate-id()}">
<xsl:apply-templates/>
</h2>
</xsl:template>

<xsl:template match="tei:p">
<p id="{generate-id()}"><xsl:apply-templates/></p>
<p id="{generate-id()}">
<xsl:apply-templates/>
</p>
</xsl:template>

<xsl:template match="tei:list">
<ul id="{generate-id()}"><xsl:apply-templates/></ul>
<ul id="{generate-id()}">
<xsl:apply-templates/>
</ul>
</xsl:template>

<xsl:template match="tei:item">
<li id="{generate-id()}"><xsl:apply-templates/></li>
<li id="{generate-id()}">
<xsl:apply-templates/>
</li>
</xsl:template>
<xsl:template match="tei:ref">
<xsl:choose>
<xsl:when test="starts-with(data(@target), 'http')">
<a>
<xsl:attribute name="href"><xsl:value-of select="@target"/></xsl:attribute>
<xsl:attribute name="href">
<xsl:value-of select="@target"/>
</xsl:attribute>
<xsl:value-of select="."/>
</a>
</xsl:when>
Expand All @@ -105,4 +128,4 @@
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
</xsl:stylesheet>

0 comments on commit 9314516

Please sign in to comment.