Bug 10544: (follow-up) update MARC21 DOM index definitions
authorGalen Charlton <gmc@esilibrary.com>
Wed, 19 Feb 2014 20:35:08 +0000 (20:35 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 19 Feb 2014 20:41:37 +0000 (20:41 +0000)
This patch updates the MARC21 DOM index definitions to
index the 952$i as 'Number-local-acquisition' rather than
'stocknumber'.

To test (for a MARC21/DOM setup):

[1] Copy the MARC21 biblio-zebra-indexdefs.xsl over to the
    active Zebra configuration directory.
[2] Reindex the bib records.
[3] Verify that 'stocknumber', 'inv', and 'number-local-acquisition'
    searches work.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml
etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl

index ab00448..5ddbb62 100644 (file)
   <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="g">
     <target_index>price:w</target_index>
   </index_subfields>
-  <!--record.abs line 303: melm 952$i      stocknumber-->
+  <!--record.abs line 303: melm 952$i      Number-local-acquisition-->
   <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="i">
-    <target_index>stocknumber:w</target_index>
+    <target_index>Number-local-acquisition:w</target_index>
   </index_subfields>
   <!--record.abs line 304: melm 952$j      stack:n,stack:w-->
   <index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="952" subfields="j">
index 2cd7195..2ca3dbb 100644 (file)
@@ -1218,7 +1218,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
     </xslo:for-each>
     <xslo:for-each select="marc:subfield">
       <xslo:if test="contains('i', @code)">
-        <z:index name="stocknumber:w">
+        <z:index name="Number-local-acquisition:w">
           <xslo:value-of select="."/>
         </z:index>
       </xslo:if>