diff --git a/resources/xslt/edition/download.xsl b/resources/xslt/edition/download.xsl index ac224e8ef76ca39987a2267b44b64e19d5e8a027..e39b6117662ad6991bf1a9b242249e4b1ea18a2c 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')"/>