From 43809d283558f34fa3164708787a94a5c0fbc419 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Mon, 6 May 2013 19:58:09 +0200 Subject: [PATCH] Bug 8252: Followup for Date/time-last-modified and Music number This followup restores the original wording of "Date/time-last-modified" index, and change the name of "Music-number" index to "Number-music-publisher" To test : 1. In a UNIMARC Koha instance 2. Apply patchs #1, #2 and this followup 3. Copy from src/etc/zebradb directory to the etc/zebradb/ in your main Koha directory the following files: -- zebradb/biblios/etc/bib1.att -- zebradb/ccl.properties -- zebradb/marc_defs/unimarc/biblios/record.abs -- zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml -- zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl 4. Rebuild zebra with -b -x -v -r options 5. Write a value like "test071a" in 071$a field in a record 6. Check if you can find this record with this search: "ccl=Number-music-publisher:test071a" Signed-off-by: Bernardo Gonzalez Kriegel No koha-qa errors. Test Copy files reindex full Modify a couple of record to add 071a with test message Reindex -v -z -b -x Search test message as described and found modified records. Signed-off-by: Jonathan Druart Signed-off-by: Galen Charlton --- etc/zebradb/biblios/etc/bib1.att | 4 ++-- etc/zebradb/ccl.properties | 9 +++++---- .../marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml | 8 ++++---- .../marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl | 4 ++-- etc/zebradb/marc_defs/unimarc/biblios/record.abs | 6 +++--- 5 files changed, 16 insertions(+), 15 deletions(-) diff --git a/etc/zebradb/biblios/etc/bib1.att b/etc/zebradb/biblios/etc/bib1.att index 1a47682146..2734ad5add 100644 --- a/etc/zebradb/biblios/etc/bib1.att +++ b/etc/zebradb/biblios/etc/bib1.att @@ -53,7 +53,7 @@ att 47 Subject-subdivision att 48 Number-natl-biblio att 49 Number-legal-deposit att 50 Number-govt-pub -att 51 Music-number +att 51 Identifier-publisher-for-music att 52 Number-db att 53 Number-local-call att 54 ln @@ -80,7 +80,7 @@ att 1008 Subject-LC-childrens att 1009 Subject-name-personal att 1010 Body-of-text att 1011 date-entered-on-file -att 1012 Date-time-last-modified +att 1012 Date/time-last-modified att 1013 Authority/format-id att 1014 Concept-text att 1015 Concept-reference diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 6f5a5080fe..14aa7b21e7 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -350,7 +350,7 @@ acqdate Date-of-acquisition #Date/time last 1012 The date and time a record 005 #modified was last updated. -Date-time-last-modified 1=1012 +Date/time-last-modified 1=1012 #Identifier-- 1013 Used in full-text searching #authority/format to indicate to the target @@ -420,9 +420,10 @@ issn ISSN #Identifier-publisher- 51 A formatted number assigned 028 #for-music by a publisher to a sound # recording or to printed music. -Music-number 1=51 -Number-music-publisher Music-number -music Music-number +Identifier-publisher-for-music 1=51 +Music-number Identifier-publisher-for-music +Number-music-publisher Identifier-publisher-for-music +music Identifier-publisher-for-music #Identifier-report 1027 A report number assigned to 027, 088 # the item. This number could be diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml index 9ceaa8ebf5..dcfdc46912 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml @@ -123,14 +123,14 @@ Identifier-standard:w - + - Music-number:w + Identifier-publisher-for-music:w Identifier-standard:w - + - Music-number:w + Identifier-publisher-for-music:w Identifier-standard:w diff --git a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl index 8649a96dd5..ea7d9e428e 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl @@ -250,14 +250,14 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + - + diff --git a/etc/zebradb/marc_defs/unimarc/biblios/record.abs b/etc/zebradb/marc_defs/unimarc/biblios/record.abs index bee5d5807d..dfcd8b8966 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/record.abs +++ b/etc/zebradb/marc_defs/unimarc/biblios/record.abs @@ -27,7 +27,7 @@ melm 001 Local-number,Local-number:n melm 009 Identifier-standard:w,Identifier-standard:n melm 090$9 Local-number,Local-number:n melm 099$c date-entered-on-file:s,date-entered-on-file:n,date-entered-on-file:y,Date-of-acquisition,Date-of-acquisition:d,Date-of-acquisition:s -melm 099$d Date-time-last-modified:s,Date-time-last-modified:n,Date-time-last-modified:y +melm 099$d Date/time-last-modified:s,Date/time-last-modified:n,Date/time-last-modified:y melm 099$t ccode:w # ISBN @@ -72,8 +72,8 @@ melm 017$z Identifier-standard:w melm 040$a Identifier-standard:w melm 040$z Identifier-standard:w # Publisher's number (for music) -melm 071$a Music-number:w,Identifier-standard:w -melm 071$z Music-number:w,Identifier-standard:w +melm 071$a Identifier-publisher-for-music:w,Identifier-standard:w +melm 071$z Identifier-publisher-for-music:w,Identifier-standard:w melm 071$b Publisher,Publisher:p # UPC melm 072$a UPC:w,Identifier-standard:w