Skip to content
Snippets Groups Projects
Commit 5d0bd31f authored by David Maus's avatar David Maus
Browse files

Suchlink in Handschriftendatenbank

parent 51a9b7f1
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<xsl:import href="../default.xsl"/> <xsl:import href="../default.xsl"/>
<xsl:variable name="opacUrl">https://opac.lbs-braunschweig.gbv.de/DB=2/CMD?ACT=SRCHA&amp;IKT=1016&amp;SRT=YOP&amp;TRM=</xsl:variable> <xsl:variable name="opacUrl">https://opac.lbs-braunschweig.gbv.de/DB=2/CMD?ACT=SRCHA&amp;IKT=1016&amp;SRT=YOP&amp;TRM=</xsl:variable>
<xsl:variable name="mssUrl">http://diglib.hab.de?db=mss&amp;list=ms&amp;id=</xsl:variable>
<xsl:variable name="author" select="//tei:author"/> <xsl:variable name="author" select="//tei:author"/>
<xsl:variable name="authorUri"> <xsl:variable name="authorUri">
<xsl:if test="//tei:author/@ref"> <xsl:if test="//tei:author/@ref">
...@@ -318,6 +319,11 @@ ...@@ -318,6 +319,11 @@
</table> </table>
<xsl:variable name="shelfmark" select=".//tei:msDesc/tei:msIdentifier/tei:idno"/> <xsl:variable name="shelfmark" select=".//tei:msDesc/tei:msIdentifier/tei:idno"/>
<xsl:variable name="ident">
<xsl:call-template name="normalize-shelfmark">
<xsl:with-param name="shelfmark" select="$shelfmark"/>
</xsl:call-template>
</xsl:variable>
<table> <table>
<tbody> <tbody>
<tr> <tr>
...@@ -325,10 +331,10 @@ ...@@ -325,10 +331,10 @@
<td> <td>
<ul> <ul>
<li> <li>
Literatur zur Suche nach Literatur im <a href="{concat($opacUrl, 'lde %22cod. guelf. ', $shelfmark, '%22')}" target="_blank">OPAC</a>
<a href="{concat($opacUrl, 'lde %22cod. guelf. ', $shelfmark, '%22')}" target="_blank">Handschrift</a> </li>
<xsl:text> </xsl:text> <li>
<xsl:value-of select="$shelfmark"/> im OPAC Suche nach Informationen in der <a href="{concat($mssUrl, $ident)}" target="_blank">Handschriftendatenbank</a>
</li> </li>
</ul> </ul>
</td> </td>
...@@ -406,4 +412,10 @@ ...@@ -406,4 +412,10 @@
<xsl:template match="tei:listBibl"/> <xsl:template match="tei:listBibl"/>
<xsl:template name="normalize-shelfmark">
<xsl:param name="shelfmark"/>
<xsl:variable name="ident" select="translate(normalize-space(translate($shelfmark, '.°', ' f')), ' ', '-')"/>
<xsl:value-of select="translate($ident, 'ABCDEFGHIJKLMNOPQRSTUVWXYZ', 'abcdefghijklmnopqrstuvwxyz')"/>
</xsl:template>
</xsl:transform> </xsl:transform>
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