Commit 75b2264f authored by thorsten.vitt's avatar thorsten.vitt
Browse files

Fixed work metadata link in HEADER

parent e50369d7
......@@ -17,9 +17,6 @@
<xsl:template match="/">
<xsl:variable name="title" select="fn:metadata(document-uri(/))//md:title"/>
<xsl:message> title=<xsl:value-of select="$title"/> base=<xsl:value-of select="$base"/>
html=<xsl:value-of select="$html"/> htmlr=<xsl:value-of select="$htmlr"/>
</xsl:message>
<html>
<head>
......@@ -29,15 +26,15 @@
</head>
<body>
<style type="text/css">
:link{
:link {
text-decoration:none;
}
.format{
.format {
color:lightgray;
}
.edition{
color:red;
}
.edition { color: green; }
.aggregation { color: #088; font-style: italic; }
.collection { color: magenta; }
.xml{
font-weight:bold;
}
......@@ -88,7 +85,10 @@
<ul class="extraFiles">
<xsl:for-each select="document($filelist)//f:file">
<xsl:variable name="filename" select="text()" as="xs:anyURI"/>
<xsl:if test="not($index//html:a[@href=$filename])">
<xsl:if test="not(
$index//html:a[ends-with(@href,$filename)]
or ends-with($filename, '.work')
or ends-with($filename, '.csv'))">
<li>
<a href="{$filename}">
<xsl:value-of select="$filename"/>
......@@ -186,11 +186,10 @@
<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>
<a href="{fn:relativize($base, $work)}.meta">Work Metadata</a>
<a href="{fn:relativize($base, resolve-uri($work, $edition))}.meta">Work Metadata</a>
</xsl:template>
<!-- fn:metadata($uri) liefert den Metadatensatz zu $uri. Triviale implementierung für die DB-Daten -->
......
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