Bugzilla – Attachment 32359 Details for
Bug 11232
Retrieve facets from Zebra
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PASSED QA] Bug 11232: (qa followup) Add missing fields/subfields to the item types faceta
PASSED-QA-Bug-11232-qa-followup-Add-missing-fields.patch (text/plain), 4.52 KB, created by
Katrin Fischer
on 2014-10-15 15:32:15 UTC
(
hide
)
Description:
[PASSED QA] Bug 11232: (qa followup) Add missing fields/subfields to the item types faceta
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2014-10-15 15:32:15 UTC
Size:
4.52 KB
patch
obsolete
>From 64c31e6f4b521e4a17c744ffe85bfa7b74ee5b7f Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@gmail.com> >Date: Tue, 14 Oct 2014 19:13:00 -0300 >Subject: [PATCH] [PASSED QA] Bug 11232: (qa followup) Add missing > fields/subfields to the item types faceta > >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> >--- > debian/templates/zebra-biblios-dom-site.cfg.in | 1 + > etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml | 3 +++ > etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl | 3 +++ > etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml | 3 +++ > etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl | 3 +++ > etc/zebradb/zebra-biblios-dom.cfg | 1 + > 6 files changed, 14 insertions(+) > >diff --git a/debian/templates/zebra-biblios-dom-site.cfg.in b/debian/templates/zebra-biblios-dom-site.cfg.in >index 88d0d6d..03a2313 100644 >--- a/debian/templates/zebra-biblios-dom-site.cfg.in >+++ b/debian/templates/zebra-biblios-dom-site.cfg.in >@@ -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 >diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >index 6364ece..c7dd166 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml >@@ -1322,5 +1322,8 @@ > <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> >diff --git a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >index cd6db2a..89aefee 100644 >--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl >@@ -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()"> >diff --git a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml >index dcd9584..d2aef1a 100644 >--- a/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/normarc/biblios/biblio-koha-indexdefs.xml >@@ -1001,5 +1001,8 @@ > <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> >diff --git a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl >index 21939b1..064c8a8 100644 >--- a/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl >+++ b/etc/zebradb/marc_defs/normarc/biblios/biblio-zebra-indexdefs.xsl >@@ -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()"> >diff --git a/etc/zebradb/zebra-biblios-dom.cfg b/etc/zebradb/zebra-biblios-dom.cfg >index a748ddd..020437c 100644 >--- a/etc/zebradb/zebra-biblios-dom.cfg >+++ b/etc/zebradb/zebra-biblios-dom.cfg >@@ -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 >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11232
:
26911
|
31426
|
31427
|
31428
|
31429
|
31430
|
31431
|
31432
|
31433
|
31434
|
31435
|
31436
|
31455
|
31456
|
31457
|
31458
|
31459
|
31460
|
31781
|
31782
|
31783
|
31784
|
31785
|
31786
|
31795
|
31796
|
31797
|
31798
|
31799
|
31800
|
32152
|
32153
|
32154
|
32155
|
32156
|
32157
|
32330
|
32331
|
32350
|
32352
|
32353
|
32354
|
32355
|
32356
|
32357
|
32358
| 32359 |
32360