Different approach to selecting medium.
authorAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 Sep 2009 09:18:34 +0000 (11:18 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Tue, 29 Sep 2009 09:18:34 +0000 (11:18 +0200)
Instead of substring-after/substring-before, just remove "white-space"
chars - such as "[]/ " . At least one target has been seen to use / in
245$h.

etc/marc21.xsl

index 23f41d3..478e7f4 100644 (file)
@@ -25,7 +25,7 @@
     <xsl:variable name="medium">
       <xsl:choose>
        <xsl:when test="$title_medium">
-         <xsl:value-of select="substring-after(substring-before($title_medium,']'),'[')"/>
+         <xsl:value-of select="translate($title_medium, ' []/', '')"/>
        </xsl:when>
        <xsl:when test="$fulltext_a">
          <xsl:text>electronic resource</xsl:text>