Skip to content
Snippets Groups Projects
Commit 71edaf54 authored by Marcus Baumgarten's avatar Marcus Baumgarten
Browse files

Update tei-translation.xsl

parent 4f325656
No related branches found
No related tags found
No related merge requests found
......@@ -189,83 +189,20 @@ index/term als Register ausbilden
</xsl:template>
<!-- pysical pages -->
<!-- Transformation für das 'pb'-Element -->
<xsl:template match="tei:pb">
<xsl:variable name="page" select="@xml:id"/>
<div class="pagebreak">
<xsl:attribute name="style">font-style:normal;</xsl:attribute>
<xsl:text> [</xsl:text>
<a>
<xsl:attribute name="name">
<xsl:value-of select="substring(@facs,2)"/>
</xsl:attribute>
<xsl:attribute name="href">
<xsl:text>http://dfg-viewer.de/show/?set[mets]=http%3A%2F%2Foai.hab.de%2F%3Fverb%3DGetRecord%26metadataPrefix%3Dmets%26identifier%3Doai:diglib.hab.de:ppn_510413692&amp;tx_dlf[page]=</xsl:text>
<xsl:value-of select="(substring-after($page, 'page_'))"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:text>display2</xsl:text>
</xsl:attribute>
<xsl:choose>
<xsl:when test="@n">
<xsl:value-of select="@n"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring-after(substring-after(substring(@facs,2),'_'),'_')"/>
</xsl:otherwise>
</xsl:choose>
<a name="{@n}" href="{concat('https://dfg-viewer.de/show/?tx_dlf[id]=https%3A%2F%2Foaimss.hab.de%2Foai-pmh%3Fverb%3DGetRecord%26metadataPrefix%3Doai_mets%26identifier%3DHAB_mss_50-5-aug-2f_tei-msDesc&amp;tx_dlf[page]=', substring-after(@facs, 'image='))}" target="display2">
[<xsl:value-of select="@n"/>]
</a>
<!--<xsl:if test="@ed">
<xsl:if test="@ed">
<xsl:value-of select="@ed"/>
<xsl:text>: </xsl:text>
</xsl:if>
</xsl:if>
<xsl:choose>
<xsl:when test="@facs">
<xsl:element name="a">
<xsl:attribute name="href">
<!-\- convert identifier z.B. drucke_qun-59-9-1_00006 -\->
<!-\- select type of resource e.g. drucke -\->
<xsl:text>http://diglib.hab.de/</xsl:text>
<xsl:value-of select="substring-before(substring(@facs,2),'_')"/>
<xsl:text>/</xsl:text>
<!-\- select shelf mark e.g.qun-59-9-1 -\->
<xsl:value-of
select="substring-before(substring-after(substring(@facs,2),'_'),'_')"/>
<!-\- select Image-No , e.g. 00006 -\->
<xsl:text>/start.htm?distype=imgs&amp;image=</xsl:text>
<xsl:value-of
select="substring-after(substring-after(substring(@facs,2),'_'),'_')"
/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:text>display2</xsl:text>
</xsl:attribute>
<xsl:choose>
<xsl:when test="@n">
<xsl:value-of select="@n"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of
select="substring-after(substring-after(substring(@facs,2),'_'),'_')"
/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="@n"/>
</xsl:otherwise>
</xsl:choose>-->
<xsl:text>] </xsl:text>
</div>
<xsl:apply-templates/>
</xsl:template>
<!-- Links -->
<!-- klassische Links einbinden -->
......
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