Commit aaff68ba authored by thorsten.vitt's avatar thorsten.vitt
Browse files

Added filenames to index generation

parent 9e08e461
......@@ -60,7 +60,10 @@
h1 > .meta{
font-weight:normal;
color:gray;
}</style>
}
.filename { color: lightgray; font-size: smaller; float: right; }
.entry:hover .filename { color: blue; }
</style>
<xsl:variable name="index">
<h1>
<a href="{fn:relativize($base, document-uri(.))}">
......@@ -69,9 +72,11 @@
<small>
<a href="{fn:relativize($base, document-uri(.))}.meta" class="meta">
(Metadaten)</a>
<xsl:call-template name="work">
<xsl:with-param name="edition" select="document-uri(.)"/>
</xsl:call-template>
<xsl:if test="ends-with(document-uri(.), '.edition')">
<xsl:call-template name="work">
<xsl:with-param name="edition" select="document-uri(.)"/>
</xsl:call-template>
</xsl:if>
</small>
</h1>
<xsl:apply-templates mode="body"/>
......@@ -123,6 +128,7 @@
<xsl:template match="ore:aggregates" mode="body" xmlns:file="java.io.File">
<xsl:variable name="aggregate" select="resolve-uri(@rdf:resource, document-uri(/))"/>
<xsl:message select="concat('aggregate=',$aggregate,', resource=', @rdf:resource, ', document-uri=',document-uri(/))"/>
<xsl:variable name="format" select="fn:metadata($aggregate)//md:format"/>
<xsl:variable name="href" select="fn:relativize($base,$aggregate)"/>
<xsl:variable name="title" select="fn:metadata($aggregate)//md:title"/>
......@@ -170,6 +176,7 @@
<xsl:with-param name="edition" select="$aggregate"/>
</xsl:call-template>
</xsl:if>
<a href="{$href}" class="filename"><xsl:value-of select="replace($href, '^.*/', '')"/></a>
</span>
<xsl:if test="contains($format, 'aggregation')">
<xsl:apply-templates mode="#current" select="doc($aggregate)"/>
......@@ -179,6 +186,7 @@
<xsl:template name="work">
<xsl:param name="edition" required="yes"/>
<xsl:message select="concat('Linking work metadata for edition ', $edition, ' (currently on ', document-uri(root(.)))"/>
<xsl:variable name="work" select="fn:metadata($edition)//md:isEditionOf/text()"
as="xs:anyURI"/>
<xsl:text></xsl:text>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment