This should address Bug 1433, OpenURL links appearing where they should not.
authorSebastian Hammer <quinn@indexdata.com>
Tue, 28 Aug 2007 16:47:30 +0000 (16:47 +0000)
committerSebastian Hammer <quinn@indexdata.com>
Tue, 28 Aug 2007 16:47:30 +0000 (16:47 +0000)
marc21.xsl normalization stylesheet was generating metadata element whether
an OpenURL resolver was known or not. This caused display stylesheet to
generate the element. Could have been fixed either place.

etc/marc21.xsl

index b8ae3ee..72e7c01 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: marc21.xsl,v 1.20 2007-08-16 12:40:01 jakub Exp $ -->
+<!-- $Id: marc21.xsl,v 1.21 2007-08-28 16:47:30 quinn Exp $ -->
 <xsl:stylesheet
     version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        </pz:metadata>
       </xsl:if>
 
+      <xsl:if test="$open_url_resolver">
         <pz:metadata type="open-url">
             <xsl:call-template name="insert-md-openurl" />
         </pz:metadata>
+      </xsl:if>
 
     </pz:record>