Bug 11232: (qa followup) Add missing fields/subfields to the item types faceta
authorTomas Cohen Arazi <tomascohen@gmail.com>
Tue, 14 Oct 2014 22:13:00 +0000 (19:13 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Wed, 15 Oct 2014 15:55:47 +0000 (12:55 -0300)
The itype facet was missing 952$y for both MARC21 and NORMARC.
This patch adds that. And also modifies the zebra-biblios-dom.cfg file
(also the debian/ version) so facetNumRecs is set to 1000 for zebra.

It is the amount of records that are taken into account. The more record,
the more exact the facets for the result set. 1000 was chosen as it changed
the time to reindex 1000 records from 18s to 19s.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
debian/templates/zebra-biblios-dom-site.cfg.in
etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml
etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl
etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml
etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl
etc/zebradb/zebra-biblios-dom.cfg

index 88d0d6d..03a2313 100644 (file)
@@ -28,6 +28,7 @@ iso2709.recordtype: dom./etc/koha/zebradb/biblios/etc/dom-config-marc.xml
 recordId: (bib1,Local-number)
 storeKeys:1
 storeData:1
+facetNumRecs:1000
 
 
 # Lock File Area
index 6364ece..c7dd166 100644 (file)
   <facet tag="952" subfields="c">
     <target_index>location:0</target_index>
   </facet>
+  <facet tag="952" subfields="y">
+    <target_index>itype:0</target_index>
+  </facet>
 
 </kohaidx:index_defs>
index cd6db2a..89aefee 100644 (file)
@@ -2420,6 +2420,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
       <z:index name="location:0">
         <xslo:value-of select="marc:subfield[@code='c']"/>
       </z:index>
+      <z:index name="itype:0">
+        <xslo:value-of select="marc:subfield[@code='y']"/>
+      </z:index>
     </xslo:if>
   </xslo:template>
   <xslo:template mode="index_all" match="text()">
index dcd9584..d2aef1a 100644 (file)
   <facet tag="952" subfields="c">
     <target_index>location:0</target_index>
   </facet>
+  <facet tag="952" subfields="y">
+    <target_index>itype:0</target_index>
+  </facet>
 
 </kohaidx:index_defs>
index 21939b1..064c8a8 100644 (file)
@@ -1845,6 +1845,9 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
       <z:index name="location:0">
         <xslo:value-of select="marc:subfield[@code='c']"/>
       </z:index>
+      <z:index name="itype:0">
+        <xslo:value-of select="marc:subfield[@code='y']"/>
+      </z:index>
     </xslo:if>
   </xslo:template>
   <xslo:template mode="index_all" match="text()">
index a748ddd..020437c 100644 (file)
@@ -28,6 +28,7 @@ iso2709.recordtype: dom.__ZEBRA_CONF_DIR__/biblios/etc/dom-config-marc.xml
 recordId: (bib1,Local-number)
 storeKeys:1
 storeData:1
+facetNumRecs:1000
 
 
 # Lock File Area