Bug 18322: Update xslt for NORMARC and UNIMARC
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 12 Jun 2018 17:47:30 +0000 (14:47 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 18 Jul 2018 17:42:49 +0000 (17:42 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl
etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl

index 851deaf..a7aae13 100644 (file)
@@ -1866,6 +1866,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
       <z:index name="itype:0">
         <xslo:value-of select="marc:subfield[@code='y']"/>
       </z:index>
+      <z:index name="ccode:0">
+        <xslo:value-of select="marc:subfield[@code='8']"/>
+      </z:index>
     </xslo:if>
   </xslo:template>
   <xslo:template mode="index_all" match="text()">
index 04fb841..f60c138 100644 (file)
@@ -2539,6 +2539,13 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
       <xslo:value-of select="normalize-space($raw_heading)"/>
     </z:index>
   </xslo:template>
+  <xslo:template mode="index_facets" match="marc:datafield[@tag='099']">
+    <xslo:if test="not(@ind1='z')">
+      <z:index name="ccode:0">
+        <xslo:value-of select="marc:subfield[@code='t']"/>
+      </z:index>
+    </xslo:if>
+  </xslo:template>
   <xslo:template mode="index_facets" match="marc:datafield[@tag='225']">
     <xslo:if test="not(@ind1='z')">
       <z:index name="se:0">
@@ -2683,6 +2690,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
       <z:index name="location:0">
         <xslo:value-of select="marc:subfield[@code='e']"/>
       </z:index>
+      <z:index name="ccode:0">
+        <xslo:value-of select="marc:subfield[@code='h']"/>
+      </z:index>
     </xslo:if>
   </xslo:template>
   <xslo:template mode="index_all" match="text()">