From 1839fa6483aa10cdabcee025141411f4b206a2ab Mon Sep 17 00:00:00 2001
From: David Maus <maus@hab.de>
Date: Mon, 16 Oct 2017 14:56:21 +0200
Subject: [PATCH] Handschriftenbeschreibung in Download der Edition mit
 aufnehmen

---
 resources/xslt/edition/download.xsl | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/resources/xslt/edition/download.xsl b/resources/xslt/edition/download.xsl
index ac224e8e..e39b6117 100644
--- a/resources/xslt/edition/download.xsl
+++ b/resources/xslt/edition/download.xsl
@@ -27,6 +27,7 @@
     <xsl:element name="front" namespace="http://www.tei-c.org/ns/1.0">
       <xsl:apply-templates select="document('../einleitung.xml', /)/tei:TEI/tei:text/tei:body/*"/>
       <xsl:apply-templates select="document('../richtlinien.xml', /)/tei:TEI/tei:text/tei:body/*"/>
+      <xsl:apply-templates select="document('../beschreibung.xml', /)/tei:TEI/tei:text/tei:body/*"/>
     </xsl:element>
     <xsl:copy>
       <xsl:apply-templates select="node() | @*"/>
@@ -46,6 +47,18 @@
     <xsl:attribute name="rend"><xsl:value-of select="concat('place(', ., ')')"/></xsl:attribute>
   </xsl:template>
 
+  <xsl:template match="tei:ref[@type = 'opac']">
+    <xsl:copy>
+      <xsl:attribute name="type">opac</xsl:attribute>
+      <xsl:attribute name="target"><xsl:value-of select="concat('http://opac.lbs-braunschweig.gbv.de/DB=2/PPN?PPN=', @cRef)"/></xsl:attribute>
+      <xsl:apply-templates/>
+    </xsl:copy>
+  </xsl:template>
+
+  <xsl:template match="body">
+    <xsl:apply-templates/>
+  </xsl:template>
+
   <xsl:template match="@facs[starts-with(., 'http://selbstzeugnisse.hab.de/edition/images/')]">
     <xsl:attribute name="facs">
       <xsl:variable name="imageNr" select="substring-before(substring-after(., 'http://selbstzeugnisse.hab.de/edition/images/'), '.jpg')"/>
-- 
GitLab