Skip to content

Commit

Permalink
why is this so uneinheitlich?
Browse files Browse the repository at this point in the history
  • Loading branch information
martinantonmueller committed Nov 22, 2024
1 parent 967f706 commit 54d8ad1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
24 changes: 2 additions & 22 deletions xslt/editions.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -432,28 +432,8 @@
<!-- Modal Chronik -->
<div class="modal fade" id="chronik" tabindex="-1"
aria-labelledby="downloadModalLabel2" aria-hidden="true">
<xsl:variable name="datum">
<xsl:variable name="date"
select="descendant::tei:correspDesc/tei:correspAction[@type = 'sent'][1]/tei:date"
as="node()?"/>
<xsl:choose>
<xsl:when test="$date/@when">
<xsl:value-of select="$date/@when"/>
</xsl:when>
<xsl:when test="$date/@from">
<xsl:value-of select="$date/@from"/>
</xsl:when>
<xsl:when test="$date/@notBefore">
<xsl:value-of select="$date/@notBefore"/>
</xsl:when>
<xsl:when test="$date/@to">
<xsl:value-of select="$date/@to"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$date/@notAfter"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<xsl:variable name="datum"
select="descendant::tei:title[@type = 'iso-date']/text()" as="xs:date"/>
<xsl:variable name="datum-written" select="
format-date($datum, '[D1].&#160;[M1].&#160;[Y0001]',
'en',
Expand Down
2 changes: 1 addition & 1 deletion xslt/partials/schnitzler-chronik.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ When adapting for different projects have a careful look at the following params
<xsl:param name="schnitzler-tagebuch" as="xs:boolean" select="true()"/>
<!-- only true if this is the chronik of schnitzler-tagebuch-->
<xsl:param name="relevant-eventtypes"
select="'Arthur-Schnitzler-digital,schnitzler-tagebuch,schnitzler-briefe,pollaczek,schnitzler-interviews,schnitzler-bahr,schnitzler-orte,schnitzler-chronik-manuell,pmb,schnitzler-cmif,schnitzler-traeume-buch,schnitzler-kempny-buch,kalliope-verbund'"/>
select="'Arthur-Schnitzler-digital,schnitzler-tagebuch,schnitzler-briefe,pollaczek,schnitzler-interviews,schnitzler-bahr,schnitzler-orte,schnitzler-chronik-manuell,pmb,schnitzler-cmif,schnitzler-traeume-buch,schnitzler-kino-buch,schnitzler-kempny-buch,kalliope-verbund'"/>
<xsl:param name="relevant-uris" select="document('../utils/list-of-relevant-uris.xml')"/>
<xsl:import href="./LOD-idnos.xsl"/>
<xsl:key match="item" use="abbr" name="relevant-uris-type"/>
Expand Down

0 comments on commit 54d8ad1

Please sign in to comment.