bug 2992: don't display MARC codes in search results
authorGalen Charlton <galen.charlton@liblime.com>
Fri, 27 Feb 2009 21:39:43 +0000 (15:39 -0600)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 4 Mar 2009 11:47:53 +0000 (12:47 +0100)
Two fields (type of continuing resource and literary
form for sound recordings) in the MARC21 XSLT search
results stylesheet display the code from the 008
position (/21 and /31, respectively) in addition to a
descriptive label.  As a MARC code is meaningless to
patrons, this patch removes the code.

koha-tmpl/opac-tmpl/prog/en/xslt/MARC21slim2OPACResults.xsl

index 4cb2421..111394a 100644 (file)
 
         <xsl:if test="$typeOf008='CR'">
         <xsl:if test="$controlField008-21 and $controlField008-21 !='|' and $controlField008-21 !=' '">
-        <span class="label">; Type of continuing resource: <xsl:value-of select="$controlField008-21"/></span>
+        <span class="label">; Type of continuing resource: </span>
         </xsl:if>
             <xsl:choose>
                 <xsl:when test="$controlField008-21='d'">
             </xsl:choose>
         </xsl:if> 
         <xsl:if test="$typeOf008='MU' and $controlField008-30-31 and $controlField008-30-31!='||' and $controlField008-30-31!='  '">
-            <span class="label">; Literary form: <xsl:value-of select="$controlField008-30-31"/> </span> <!-- Literary text for sound recordings -->
+            <span class="label">; Literary form: </span> <!-- Literary text for sound recordings -->
             <xsl:if test="contains($controlField008-30-31,'b')">
                 biography
             </xsl:if>