[Koha-patches] [PATCH 2/2] Bug 8252: Followup for Marc21
Mathieu Saby
mathieu.saby at univ-rennes2.fr
Fri Feb 1 15:02:22 CET 2013
Followup for Marc21
To test :
Apply on a Koha using GRS1.
Check if all coded fields are searchable in advanced search.
Check in simple search if Country heading and Code-langage-original are
searchable (ex "Country-heading:FR" ; "Code-langage-original:eng")
Apply on a Koha using DOM.
same tests
---
.../marc21/biblios/biblio-koha-indexdefs.xml | 8 ++++++--
.../marc21/biblios/biblio-zebra-indexdefs.xsl | 11 +++++++++--
etc/zebradb/marc_defs/marc21/biblios/record.abs | 5 +++--
3 files changed, 18 insertions(+), 6 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 14443d6..50aacdc 100644
--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml
+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-koha-indexdefs.xml
@@ -17,7 +17,7 @@
</index_control_field>
<!--record.abs line 44: melm 005 Date/time-last-modified-->
<index_control_field
xmlns="http://www.koha-community.org/schemas/index-defs" tag="005">
- <target_index>Date/time-last-modified:w</target_index>
+ <target_index>Date-time-last-modified:w</target_index>
</index_control_field>
<!--record.abs line 45: melm 007
Microform-generation:n:range(data,11,1),Material-type,ff7-00:w:range(data,0,1),ff7-01:w:range(data,1,1),ff7-02:w:range(data,2,1),ff7-01-02:w:range(data,0,2)-->
<index_control_field
xmlns="http://www.koha-community.org/schemas/index-defs" tag="007"
offset="11" length="1">
@@ -58,7 +58,7 @@
<target_index>pubdate:s</target_index>
</index_control_field>
<index_control_field
xmlns="http://www.koha-community.org/schemas/index-defs" tag="008"
offset="15" length="3">
- <target_index>pl:w</target_index>
+ <target_index>Country-publication:w</target_index>
</index_control_field>
<index_control_field
xmlns="http://www.koha-community.org/schemas/index-defs" tag="008"
offset="22" length="1">
<target_index>ta:w</target_index>
@@ -186,6 +186,10 @@
<index_subfields
xmlns="http://www.koha-community.org/schemas/index-defs" tag="041"
subfields="e">
<target_index>ln:w</target_index>
</index_subfields>
+ <!--record.abs line 72: melm 041$e ln-->
+ <index_subfields
xmlns="http://www.koha-community.org/schemas/index-defs" tag="041"
subfields="h">
+ <target_index>Code-language-original:w</target_index>
+ </index_subfields>
<!--record.abs line 73: melm 041$j ln-->
<index_subfields
xmlns="http://www.koha-community.org/schemas/index-defs" tag="041"
subfields="j">
<target_index>ln:w</target_index>
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 14f299e..7cbc459 100644
--- a/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl
+++ b/etc/zebradb/marc_defs/marc21/biblios/biblio-zebra-indexdefs.xsl
@@ -58,7 +58,7 @@ definition file (probably something like
{biblio,authority}-koha-indexdefs.xml)
</z:index>
</xslo:template>
<xslo:template match="marc:controlfield[@tag='005']">
- <z:index name="Date/time-last-modified:w">
+ <z:index name="Date-time-last-modified:w">
<xslo:value-of select="."/>
</z:index>
</xslo:template>
@@ -101,7 +101,7 @@ definition file (probably something like
{biblio,authority}-koha-indexdefs.xml)
<z:index name="pubdate:s">
<xslo:value-of select="substring(., 8, 4)"/>
</z:index>
- <z:index name="pl:w">
+ <z:index name="Country-publication:w">
<xslo:value-of select="substring(., 16, 3)"/>
</z:index>
<z:index name="ta:w">
@@ -179,6 +179,13 @@ definition file (probably something like
{biblio,authority}-koha-indexdefs.xml)
</xslo:if>
</xslo:for-each>
<xslo:for-each select="marc:subfield">
+ <xslo:if test="contains('h', @code)">
+ <z:index name="Code-language-original:w">
+ <xslo:value-of select="."/>
+ </z:index>
+ </xslo:if>
+ </xslo:for-each>
+ <xslo:for-each select="marc:subfield">
<xslo:if test="contains('j', @code)">
<z:index name="ln:w">
<xslo:value-of select="."/>
diff --git a/etc/zebradb/marc_defs/marc21/biblios/record.abs
b/etc/zebradb/marc_defs/marc21/biblios/record.abs
index 0f8360e..01ccba4 100644
--- a/etc/zebradb/marc_defs/marc21/biblios/record.abs
+++ b/etc/zebradb/marc_defs/marc21/biblios/record.abs
@@ -49,10 +49,10 @@ xelm /record/leader
llength:w:range(data,0,5),rtype:w:range(data,6,1),Bib-level:
# example: xelm /record/leader l1:w:range(data,0,5),l2:w:range(data,10,2)
melm 001 Control-number
-melm 005 Date/time-last-modified
+melm 005 Date-time-last-modified
melm 007
Microform-generation:n:range(data,11,1),Material-type,ff7-00:w:range(data,0,1),ff7-01:w:range(data,1,1),ff7-02:w:range(data,2,1),ff7-01-02:w:range(data,0,2)
-melm 008
date-entered-on-file:n:range(data,0,5),date-entered-on-file:s:range(data,0,5),pubdate:w:range(data,7,4),pubdate:n:range(data,7,4),pubdate:y:range(data,7,4),pubdate:s:range(data,7,4),pl:w:range(data,15,3),ta:w:range(data,22,1),ff8-23:w:range(data,23,1),ff8-29:w:range(data,29,1),lf:w:range(data,33,1),bio:w:range(data,34,1),ln:w:range(data,35,3),ctype:w:range(data,24,4),Record-source:w:range(data,39,0)
+melm 008
date-entered-on-file:n:range(data,0,5),date-entered-on-file:s:range(data,0,5),pubdate:w:range(data,7,4),pubdate:n:range(data,7,4),pubdate:y:range(data,7,4),pubdate:s:range(data,7,4),Country-publication:w:range(data,15,3),ta:w:range(data,22,1),ff8-23:w:range(data,23,1),ff8-29:w:range(data,29,1),lf:w:range(data,33,1),bio:w:range(data,34,1),ln:w:range(data,35,3),ctype:w:range(data,24,4),Record-source:w:range(data,39,0)
melm 010 LC-card-number,Identifier-standard
melm 011 LC-card-number,Identifier-standard
@@ -78,6 +78,7 @@ melm 040 Code-institution,Record-source
melm 041$a ln
melm 041$d ln
melm 041$e ln
+melm 041$h Code-language-original
melm 041$j ln
melm 043 Code-geographic
#melm 046 pubdate
--
1.7.9.5
--
Mathieu Saby
Service d'Informatique Documentaire
Service Commun de la Documentation
Université Rennes 2
Téléphone : 02 99 14 12 65
Courriel : mathieu.saby at univ-rennes2.fr
More information about the Koha-patches
mailing list