Skip to content
Snippets Groups Projects
Commit cf59ad8a authored by Jens Kupferschmidt's avatar Jens Kupferschmidt
Browse files

fix mods export

parent d2c248c2
Branches
No related merge requests found
No preview for this file type
No preview for this file type
......@@ -45,6 +45,17 @@
</xsl:otherwise>
</xsl:choose>
<!-- mods:owner - corporation as owner -->
<mods:name type="personal">
<mods:displayForm>
<xsl:value-of select="$xml/metadata/def.biocol02/biocol02[lang($CurrentLang)]" />
</mods:displayForm>
<mods:role>
<mods:roleTerm type="text" authroity="marcrelator">owner</mods:roleTerm>
<mods:roleTerm type="code" authority="marcrelator">own</mods:roleTerm>
</mods:role>
</mods:name>
<!-- mods:creator - Editor des Datensatzes -->
<xsl:for-each select="$xml/metadata/def.biocol06/biocol06">
<mods:name type="personal">
......@@ -262,19 +273,11 @@
<!-- mods:accessCondition - rights -->
<mods:accessCondition>
<copyright type="metadata">
<xsl:call-template name="biocolGetCategoryContent">
<xsl:with-param name="classid" select="$xml/metadata/def.biocol97/biocol97/@classid" />
<xsl:with-param name="categid" select="$xml/metadata/def.biocol97/biocol97/@categid" />
<xsl:with-param name="lang" select="$CurrentLang" />
</xsl:call-template>
<xsl:value-of select="$xml/metadata/def.biocol97/biocol97" />
</copyright>
<xsl:if test="$xml/metadata/def.biocol98">
<copyright type="image">
<xsl:call-template name="biocolGetCategoryContent">
<xsl:with-param name="classid" select="$xml/metadata/def.biocol98/biocol98/@classid" />
<xsl:with-param name="categid" select="$xml/metadata/def.biocol98/biocol98/@categid" />
<xsl:with-param name="lang" select="$CurrentLang" />
</xsl:call-template>
<xsl:value-of select="$xml/metadata/def.biocol98/biocol98" />
</copyright>
</xsl:if>
</mods:accessCondition>
......@@ -285,16 +288,4 @@
</mods:mods>
</xsl:template>
<xsl:template name="biocolGetCategoryContent">
<xsl:param name="classid" />
<xsl:param name="categid" />
<xsl:param name="lang" />
<!--
<xsl:value-of select="concat($classid,' ### ',$categid)" />
-->
<xsl:variable name="category"
select="document(concat('classification:metadata:1:children:',$classid,':',$categid))" />
<xsl:value-of select="$category/mycoreclass/categories/category/label[lang($lang)]/@text" />
</xsl:template>
</xsl:stylesheet>
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