Commit e679f8b3 authored by Silvia Witzig's avatar Silvia Witzig
Browse files

set records with html locators to onsite and remove the locators

parent d5b73048
......@@ -39,12 +39,24 @@
</xsl:template>
<!-- content of child node is copied to parent node -->
<xsl:template match="title | format/essenceLocator | format/duration | format/start | language | references">
<xsl:template match="title | format/duration | format/start | language | references">
<xsl:element name="{local-name()}">
<xsl:value-of select="child::*"/>
</xsl:element>
</xsl:template>
<!-- content of child node is copied to parent node -->
<xsl:template match="format/essenceLocator">
<xsl:choose>
<xsl:when test="matches(., '\.html|\.htm')"/>
<xsl:otherwise>
<xsl:element name="{local-name()}">
<xsl:value-of select="child::*"/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="coverage/spatial/location">
<xsl:element name="{local-name()}">
<xsl:value-of select="replace(child::*, '\* ', '')"/>
......@@ -204,6 +216,11 @@
<xsl:text>noonsite</xsl:text>
</xsl:element>
</xsl:when>
<xsl:when test="matches(preceding::format/essenceLocator, '\.html|\.htm')">
<xsl:element name="accessPhysical">
<xsl:text>onsite</xsl:text>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<xsl:if test="matches(.,'onsite')">
<xsl:element name="accessPhysical">
......
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