Skip to content
Snippets Groups Projects
Commit 82fcd6d8 authored by Martin de la Iglesia's avatar Martin de la Iglesia
Browse files

Apparat-Seitenverlinkung für Greifswald/Stettin 1617

parent ace65c6e
No related branches found
No related tags found
No related merge requests found
......@@ -1504,7 +1504,18 @@
</xsl:attribute>
<xsl:value-of select="@n"/>
</a>
</xsl:when>
</xsl:when>
<xsl:when test="$witid eq 'greifswald'">
<xsl:variable name="bookurl" select="substring-before(//witness[@xml:id = $witid]/ptr/@target,'/facsimile.xml')"/>
<a>
<xsl:attribute name="href">
<xsl:variable name="witpagenum" select="substring-after(@n, 'fol. ')"/>
<xsl:variable name="imgid" select="substring-before(tokenize(document(//witness[@xml:id = $witid]/ptr/@target)/facsimile/graphic[starts-with(@n, $witpagenum) or ends-with(@n, concat(' / ',$witpagenum))]/@url,'/')[last()],'.jpg')"/>
<xsl:value-of select="concat($bookurl,'/start.htm?image=',$imgid)"/>
</xsl:attribute>
<xsl:value-of select="@n"/>
</a>
</xsl:when>
<xsl:when test="//witness[@xml:id = $witid]/ptr">
<xsl:variable name="bookurl" select="substring-before(//witness[@xml:id = $witid]/ptr/@target,'/facsimile.xml')"/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment