Bug 11620: Add dissertation-information index for MARC21 (502)
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Mon, 25 May 2015 11:58:57 +0000 (13:58 +0200)
committerTomas Cohen Arazi <tomascohen@unc.edu.ar>
Mon, 20 Jul 2015 13:31:06 +0000 (10:31 -0300)
Bug 11202 introduced a new index 'dissertation-information' for
UNIMARC. This patch adds the index also for MARC21 installations.

http://www.loc.gov/marc/bibliographic/bd502.html

To test:
- Apply patch
- Copy files in etc/zebradb changed by this patch to your
  corresponding directory (koha-dev..)
- Make sure you have records with 502
- Reindex
- Verify you can search the field contents with
  dissertation-information= and
  diss=

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Can find by dissertation-information,
No errors

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>

C4/Search.pm
etc/zebradb/ccl.properties
etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml
etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl

index 1389e5b..4f2a7c7 100644 (file)
@@ -1133,6 +1133,7 @@ sub getIndexes{
                     'Date-of-publication',
                     'Dewey-classification',
                     'Dissertation-information',
+                    'diss',
                     'EAN',
                     'extent',
                     'fic',
index 99e3498..4b3241c 100644 (file)
@@ -360,6 +360,7 @@ Date/time-last-modified       1=1012
 #                           publication connected with an
 #                           academic degree.
 Dissertation-information 1=1056
+diss Dissertation-information
 
 #EAN                  1214  European article number         UNIMARC 073
 EAN 1=1214
index 8ad9db1..101f6ff 100644 (file)
   <!--record.abs line 147: melm 502        Material-type-->
   <index_data_field tag="502">
     <target_index>Material-type:w</target_index>
+    <target_index>Dissertation-information:p</target_index>
+    <target_index>Dissertation-information:w</target_index>
   </index_data_field>
   <!--record.abs line 148: melm 505$r      Author-->
   <index_subfields tag="505" subfields="r">
index a0f68f1..3dd627f 100644 (file)
@@ -1944,7 +1944,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
     </z:index>
   </xslo:template>
   <xslo:template mode="index_data_field" match="marc:datafield[@tag='502']">
-    <z:index name="Material-type:w">
+    <z:index name="Material-type:w Dissertation-information:p Dissertation-information:w">
       <xslo:variable name="raw_heading">
         <xslo:for-each select="marc:subfield">
           <xslo:if test="position() &gt; 1">