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 <bgkriegel@gmail.com>
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 <jonathan.druart@biblibre.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
This commit is contained in:
Mathieu Saby 2013-05-06 19:58:09 +02:00 committed by Galen Charlton
parent 8034566027
commit 43809d2835
5 changed files with 16 additions and 15 deletions

View file

@ -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

View file

@ -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

View file

@ -123,14 +123,14 @@
<index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="040" subfields="z">
<target_index>Identifier-standard:w</target_index>
</index_subfields>
<!--record.abs line 75: melm 071$a Music-number:w,Identifier-standard:w-->
<!--record.abs line 75: melm 071$a Identifier-publisher-for-music:w,Identifier-standard:w-->
<index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="071" subfields="a">
<target_index>Music-number:w</target_index>
<target_index>Identifier-publisher-for-music:w</target_index>
<target_index>Identifier-standard:w</target_index>
</index_subfields>
<!--record.abs line 76: melm 071$z Music-number:w,Identifier-standard:w-->
<!--record.abs line 76: melm 071$z Identifier-publisher-for-music:w,Identifier-standard:w-->
<index_subfields xmlns="http://www.koha-community.org/schemas/index-defs" tag="071" subfields="z">
<target_index>Music-number:w</target_index>
<target_index>Identifier-publisher-for-music:w</target_index>
<target_index>Identifier-standard:w</target_index>
</index_subfields>
<!--record.abs line 77: melm 071$b Publisher,Publisher:p-->

View file

@ -250,14 +250,14 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml)
<xslo:template mode="index_subfields" match="marc:datafield[@tag='071']">
<xslo:for-each select="marc:subfield">
<xslo:if test="contains('a', @code)">
<z:index name="Music-number:w Identifier-standard:w">
<z:index name="Identifier-publisher-for-music:w Identifier-standard:w">
<xslo:value-of select="."/>
</z:index>
</xslo:if>
</xslo:for-each>
<xslo:for-each select="marc:subfield">
<xslo:if test="contains('z', @code)">
<z:index name="Music-number:w Identifier-standard:w">
<z:index name="Identifier-publisher-for-music:w Identifier-standard:w">
<xslo:value-of select="."/>
</z:index>
</xslo:if>

View file

@ -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