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

Download der Edition

parent 246173c0
No related branches found
No related tags found
No related merge requests found
......@@ -15,6 +15,9 @@ $app->get('/edition/richtlinien', 'controller.staticpage:handle')
$app->get('/edition/diarium/register.xml', 'controller.staticpage:handle')
->bind('edition.diarium.register');
$app->get('/edition/diarium/download', 'controller.staticpage:handle')
->bind('edition.diarium.download');
$app->get('/edition/diarium/{metsId}', 'controller.dynamicpage:handle')
->bind('edition.diarium.jahr')
->convert('metsId', function ($metsId) { return "edition.diarium.{$metsId}"; });
......
......@@ -205,6 +205,9 @@
<div ID="edition.richtlinien" LABEL="Richtlinien">
<fptr FILEID="edition.richtlinien.xml"/>
</div>
<div ID="edition.diarium.download">
<fptr FILEID="edition.diarium.xml"/>
</div>
<div ID="edition.diarium" LABEL="Diarium August II.">
<fptr FILEID="edition.diarium.xml"/>
<div ID="edition.diarium.front">
......@@ -387,6 +390,10 @@
<interfaceDef LOCTYPE="URL" xlink:href="http://www.w3.org/TR/xslt"/>
<mechanism LOCTYPE="URL" xlink:href="xslt/default.xsl"/>
</behavior>
<behavior STRUCTID="edition.diarium.download">
<interfaceDef LOCTYPE="URL" xlink:href="http://www.w3.org/TR/xslt"/>
<mechanism LOCTYPE="URL" xlink:href="xslt/edition/download.xsl"/>
</behavior>
<behavior STRUCTID="edition.diarium">
<interfaceDef LOCTYPE="URL" xlink:href="http://www.w3.org/TR/xslt"/>
<mechanism LOCTYPE="URL" xlink:href="xslt/edition/diarium.xsl"/>
......@@ -451,15 +458,4 @@
</behavior>
</behaviorSec>
<behaviorSec ID="tei">
<behavior STRUCTID="repertorium.eintrag">
<interfaceDef LOCTYPE="URL" xlink:href="http://www.w3.org/TR/xslt"/>
<mechanism LOCTYPE="URL" xlink:href="xslt/identity.xsl"/>
</behavior>
<behavior STRUCTID="edition.diarium">
<interfaceDef LOCTYPE="URL" xlink:href="http://www.w3.org/TR/xslt"/>
<mechanism LOCTYPE="URL" xlink:href="xslt/identity.xsl"/>
</behavior>
</behaviorSec>
</mets>
<xsl:transform version="1.0"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="utf-8" media-type="application/xml"/>
<xsl:template match="node() | @*">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="@xml:base"/>
<xsl:template match="@ref[starts-with(., 'register.xml')]">
<xsl:choose>
<xsl:when test="document(.)/tei:idno[@type = 'URI']">
<xsl:attribute name="ref">
<xsl:value-of select="document(.)/tei:idno[@type = 'URI']"/>
</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="ref">
<xsl:value-of select="concat('tag:selbstzeugnisse.hab.de,2017:edition/diarium/register#', substring-after(., '#'))"/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</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')"/>
<xsl:value-of select="concat('http://diglib.hab.de/mss/42-19-aug-2f/start.htm?image=', $imageNr)"/>
</xsl:attribute>
</xsl:template>
</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