From 162d71a97cb73dcadd09aa0bf2663b851c02f2a2 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Thu, 4 Sep 2014 13:12:09 -0300 Subject: [PATCH] Bug 11232: MARC21 facet definition and updated XSL file for DOM This patch adds the facets definitions to the biblio-koha-indexdefs.xml, based on what is hardcoded on C4::Koha::getFacets(). The biblio-zebra-indexdefs.xsl file for MARC21 is generated using the usual: xsltproc ...koha-indexdefs-to-zebra.xsl ...marc21/biblios/biblio-koha-indexdefs.xml > \ ...marc21/biblios/biblio-zebra-indexdefs.xsl Sponsored-by: Universidad Nacional de Cordoba Signed-off-by: David Cook Seems to work with DOM and MARC21. Signed-off-by: Jonathan Druart --- .../marc21/biblios/biblio-koha-indexdefs.xml | 41 ++++++++++- .../marc21/biblios/biblio-zebra-indexdefs.xsl | 80 +++++++++++++++++++++- 2 files changed, 119 insertions(+), 2 deletions(-) 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 d3ee630..c44e985 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml @@ -1,5 +1,6 @@ - + marc:datafield[@tag='999']/marc:subfield[@code='c'] @@ -1284,4 +1285,42 @@ Note:w Note:p + + + au:0 + + + au:0 + + + se:0 + + + se:0 + + + su-ut:0 + + + su-to:0 + + + su-geo:0 + + + au:0 + + + itype:0 + + + homebranch:0 + + + holdingbranch:0 + + + location:0 + + 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 a4aad7b..cd6db2a 100644 --- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl @@ -12,6 +12,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + @@ -27,7 +28,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -35,6 +36,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + @@ -2344,6 +2346,82 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + -- 2.1.0