Bugzilla – Attachment 17972 Details for
Bug 8252
Error in DOM biblio for UNIMARC (no range for fields 1xx)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[PATCH 3] Bug 8252 : Followup for Date/time-last-modified and Music number
0007-Corrections.patch (text/plain), 7.09 KB, created by
Mathieu Saby
on 2013-05-06 20:26:45 UTC
(
hide
)
Description:
[PATCH 3] Bug 8252 : Followup for Date/time-last-modified and Music number
Filename:
MIME Type:
Creator:
Mathieu Saby
Created:
2013-05-06 20:26:45 UTC
Size:
7.09 KB
patch
obsolete
>From 60f3e472780ac934d3b2cf2c80596ce9f8e6417b Mon Sep 17 00:00:00 2001 >From: Mathieu Saby <mathieu.saby@univ-rennes2.fr> >Date: Mon, 6 May 2013 19:58:09 +0200 >Subject: [PATCH 3] 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" >--- > etc/zebradb/biblios/etc/bib1.att | 4 ++-- > etc/zebradb/ccl.properties | 9 +++++---- > .../unimarc/biblios/biblio-koha-indexdefs.xml | 8 ++++---- > .../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 1a47682..2734ad5 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 6f5a508..14aa7b2 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 9ceaa8e..dcfdc46 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 @@ > <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--> >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 8649a96..ea7d9e4 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) > <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> >diff --git a/etc/zebradb/marc_defs/unimarc/biblios/record.abs b/etc/zebradb/marc_defs/unimarc/biblios/record.abs >index bee5d58..dfcd8b8 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 >-- >1.7.9.5 >
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 8252
:
15007
|
15008
|
16945
|
16946
|
17970
|
17971
|
17972
|
21057
|
21058
|
21059
|
21430
|
21437
|
21438
|
21439
|
21452
|
21454
|
21945
|
21946
|
21947
|
21948
|
21949
|
22672