Bugzilla – Attachment 132828 Details for
Bug 20424
New UNIMARC ZEBRA indexes according to last IFLA updates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20424: (Followup) Add new zebra indexes for the last IFLA updates
Bug-20424-Followup-Add-new-zebra-indexes-for-the-l.patch (text/plain), 13.54 KB, created by
Biblibre Sandboxes
on 2022-04-01 08:32:39 UTC
(
hide
)
Description:
Bug 20424: (Followup) Add new zebra indexes for the last IFLA updates
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2022-04-01 08:32:39 UTC
Size:
13.54 KB
patch
obsolete
>From 73d71e618080a757bc846a8ceefb099f21089026 Mon Sep 17 00:00:00 2001 >From: Alex Arnaud <alex.arnaud@biblibre.com> >Date: Wed, 31 Mar 2021 16:02:33 +0200 >Subject: [PATCH] Bug 20424: (Followup) Add new zebra indexes for the last IFLA > updates > >Signed-off-by: Sonia <sonia.bouis@univ-lyon3.fr> >--- > C4/Search.pm | 4 + > etc/zebradb/biblios/etc/bib1.att | 7 + > etc/zebradb/ccl.properties | 16 ++ > .../unimarc/biblios/biblio-koha-indexdefs.xml | 145 +++++++++++++++++- > 4 files changed, 169 insertions(+), 3 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 85a02bf5a2..8cac19947e 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -984,6 +984,7 @@ sub getIndexes{ > 'bio', > 'biography', > 'callnum', >+ 'carrier-type', > 'cfn', > 'Chronological-subdivision', > 'cn-bib-source', >@@ -1015,10 +1016,12 @@ sub getIndexes{ > 'Date-of-publication', > 'Date-time-last-modified', > 'Dewey-classification', >+ 'Digital-content', > 'Dissertation-information', > 'diss', > 'dtlm', > 'EAN', >+ 'Electronic-resource', > 'extent', > 'fic', > 'fiction', >@@ -1033,6 +1036,7 @@ sub getIndexes{ > 'Host-item', > 'id-other', > 'ident', >+ 'Identifier-persistent', > 'Identifier-standard', > 'Illustration-code', > 'Index-term-genre', >diff --git a/etc/zebradb/biblios/etc/bib1.att b/etc/zebradb/biblios/etc/bib1.att >index 581e7ed0cf..33b22fc928 100644 >--- a/etc/zebradb/biblios/etc/bib1.att >+++ b/etc/zebradb/biblios/etc/bib1.att >@@ -213,6 +213,13 @@ att 1228 index-lien-desc > att 1229 index-genre > att 1230 index-type-doc > >+att 1231 Identifier-persistent >+att 1232 Content-type >+att 1233 Carrier-type >+ >+att 1234 Electronic-resource >+att 1235 Digital-content >+ > # Koha Local-Use Biblio Indexes > att 9001 Control-number > att 9002 biblioitemnumber >diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties >index 724e7d7b82..1a03352278 100644 >--- a/etc/zebradb/ccl.properties >+++ b/etc/zebradb/ccl.properties >@@ -462,6 +462,9 @@ music Identifier-publisher-for-music > Identifier-standard 1=1007 4=6 > ident Identifier-standard > >+Identifier-persistent 1=1231 >+identifier-persistent Identifier-persistent >+ > # > #Identifier-stock 1028 A stock number that could be 037 > # used for ordering the item. >@@ -609,6 +612,19 @@ mc-genre901 index-genre > index-type-doc 1=1230 > mc-typedoc index-type-doc > >+# Content type >+Content-type 1=1232 >+content-type Content-type >+ >+Carrier-type 1=1233 >+carrier-type Carrier-type >+ >+# Electronic ressource >+Electronic-ressource 1=1234 >+electronic-ressource Electronic-resource >+Digital-content 1=1235 >+digital-content Digital-content >+ > #Note 63 A concise statement in which 5XX > # such information as extended > # physical description, >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 f2a5a806bf..bcd097a6f1 100644 >--- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml >+++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml >@@ -9,6 +9,11 @@ > <index_control_field tag="001"> > <target_index>Local-number:n</target_index> > </index_control_field> >+ <index_control_field tag="003"> >+ <target_index>Identifier-persistent:w</target_index> >+ <target_index>Identifier-persistent:p</target_index> >+ <target_index>Identifier-persistent:n</target_index> >+ </index_control_field> > <!--record.abs line 26: melm 009 Identifier-standard:w,Identifier-standard:n--> > <index_control_field tag="009"> > <target_index>Identifier-standard:w</target_index> >@@ -85,6 +90,15 @@ > <index_subfields tag="017" subfields="az"> > <target_index>Identifier-standard:w</target_index> > </index_subfields> >+ <index_subfields tag="018" subfields="a"> >+ <target_index>Identifier-standard:w</target_index> >+ </index_subfields> >+ <index_subfields tag="029" subfields="a"> >+ <target_index>Identifier-standard:w</target_index> >+ </index_subfields> >+ <index_subfields tag="033" subfields="a"> >+ <target_index>Identifier-persistent:w</target_index> >+ </index_subfields> > <!--040 : CODEN--> > <index_subfields tag="040" subfields="az"> > <target_index>Identifier-standard:w</target_index> >@@ -164,13 +178,20 @@ > <target_index>Modified-code:n</target_index> > </index_subfields> > <index_subfields tag="100" subfields="a" offset="26" length="2"> >- <target_index>char-encoding:n</target_index> >+ <target_index>char-encoding:w</target_index> >+ <target_index>char-encoding:p</target_index> > </index_subfields> > <index_subfields tag="100" subfields="a" offset="28" length="2"> >- <target_index>char-encoding:n</target_index> >+ <target_index>char-encoding:w</target_index> >+ <target_index>char-encoding:p</target_index> > </index_subfields> > <index_subfields tag="100" subfields="a" offset="30" length="2"> >- <target_index>char-encoding:n</target_index> >+ <target_index>char-encoding:w</target_index> >+ <target_index>char-encoding:p</target_index> >+ </index_subfields> >+ <index_subfields tag="100" subfields="a" offset="32" length="2"> >+ <target_index>char-encoding:w</target_index> >+ <target_index>char-encoding:p</target_index> > </index_subfields> > <index_subfields tag="100" subfields="a" offset="34" length="2"> > <target_index>script-Title:n</target_index> >@@ -297,6 +318,38 @@ > <index_subfields tag="116" subfields="a" offset="2" length="1"> > <target_index>Graphics-support:w</target_index> > </index_subfields> >+ >+ <index_subfields tag="181" subfields="c"> >+ <target_index>Content-type:w</target_index> >+ <target_index>Content-type:p</target_index> >+ </index_subfields> >+ <index_subfields tag="182" subfields="c"> >+ <target_index>Material-Type:w</target_index> >+ <target_index>Material-Type:p</target_index> >+ </index_subfields> >+ <index_subfields tag="183" subfields="a"> >+ <target_index>Carrier-type:w</target_index> >+ <target_index>Carrier-type:p</target_index> >+ </index_subfields> >+ >+ <index_subfields tag="203" subfields="a"> >+ <target_index>Content-type:w</target_index> >+ <target_index>Content-type:p</target_index> >+ </index_subfields> >+ <index_subfields tag="203" subfields="b"> >+ <target_index>Material-Type:w</target_index> >+ <target_index>Material-Type:p</target_index> >+ </index_subfields> >+ <index_subfields tag="203" subfields="c"> >+ <target_index>Carrier-type:w</target_index> >+ <target_index>Carrier-type:p</target_index> >+ </index_subfields> >+ >+ <index_subfields tag="283" subfields="a"> >+ <target_index>Carrier-type:w</target_index> >+ <target_index>Carrier-type:p</target_index> >+ </index_subfields> >+ > <!--==== AUTHOR ====--> > <!--200$fg--> > <index_subfields tag="200" subfields="fg"> >@@ -363,6 +416,10 @@ > <target_index>Personal-name:p</target_index> > <target_index>Personal-name:p</target_index> > </index_data_field> >+ <index_data_field tag="703"> >+ <target_index>Author:w</target_index> >+ <target_index>Author:p</target_index> >+ </index_data_field> > <!--record.abs line 105: melm 710$9 Koha-Auth-Number,Koha-Auth-Number:n--> > > <index_subfields tag="710" subfields="3"> >@@ -429,6 +486,10 @@ > <target_index>Corporate-name:p</target_index> > <target_index>Conference-name:p</target_index> > </index_data_field> >+ <index_data_field tag="713"> >+ <target_index>Author:w</target_index> >+ <target_index>Author:p</target_index> >+ </index_data_field> > <!--record.abs line 147: melm 716$9 Koha-Auth-Number,Koha-Auth-Number:n--> > <index_subfields tag="716" subfields="9"> > <target_index>Koha-Auth-Number:w</target_index> >@@ -469,6 +530,10 @@ > <target_index>Author:w</target_index> > <target_index>Author:p</target_index> > </index_data_field> >+ <index_data_field tag="723"> >+ <target_index>Author:w</target_index> >+ <target_index>Author:p</target_index> >+ </index_data_field> > <!--record.abs line 159: melm 730$9 Koha-Auth-Number,Koha-Auth-Number:n--> > <index_subfields tag="730" subfields="9"> > <target_index>Koha-Auth-Number:w</target_index> >@@ -607,6 +672,17 @@ > <index_subfields tag="225" subfields="x"> > <target_index>ISSN:w</target_index> > </index_subfields> >+ >+ <!--==== Electronic resource ====--> >+ <index_subfields tag="231" subfields="a"> >+ <target_index>Electronic-resource:w</target_index> >+ <target_index>Electronic-resource:p</target_index> >+ </index_subfields> >+ <index_subfields tag="231" subfields="b"> >+ <target_index>Digital-content:w</target_index> >+ <target_index>Digital-content:p</target_index> >+ </index_subfields> >+ > <!--==== BLOCK OF NOTES ====--> > <!--300 - General note--> > <index_subfields tag="300" subfields="a"> >@@ -785,6 +861,11 @@ > <target_index>Note:w</target_index> > <target_index>Note:p</target_index> > </index_subfields> >+ <!-- Location of originals / reproductions --> >+ <index_subfields tag="335" subfields="a"> >+ <target_index>Note:w</target_index> >+ <target_index>Note:p</target_index> >+ </index_subfields> > <!--336 - Type of electronic ressource note--> > <index_subfields tag="336" subfields="a"> > <target_index>Note:w</target_index> >@@ -795,6 +876,11 @@ > <target_index>Note:w</target_index> > <target_index>Note:p</target_index> > </index_subfields> >+ <!-- Funding information note --> >+ <index_subfields tag="338" subfields="a"> >+ <target_index>Note:w</target_index> >+ <target_index>Note:p</target_index> >+ </index_subfields> > <!--345 - Acquisition Information Note--> > <index_subfields tag="345" subfields="a"> > <target_index>Note:w</target_index> >@@ -816,6 +902,11 @@ > <target_index>Title-series:w</target_index> > <target_index>Title-series:p</target_index> > </index_subfields> >+ <!--412 - Excerpt or offprint--> >+ <index_subfields tag="412" subfields="t"> >+ <target_index>Title:w</target_index> >+ <target_index>Title:p</target_index> >+ </index_subfields> > <!--413 - Excerpt or offprint--> > <index_subfields tag="413" subfields="t"> > <target_index>Title:w</target_index> >@@ -1158,11 +1249,25 @@ > <target_index>Title:w</target_index> > <target_index>Title:p</target_index> > </index_data_field> >+ <!-- Identification of a work --> >+ <index_data_field tag="506" subfields="a"> >+ <target_index>Title:w</target_index> >+ <target_index>Title:p</target_index> >+ </index_data_field> >+ <!-- Identification of an expression --> >+ <index_data_field tag="507" subfields="a"> >+ <target_index>Title:w</target_index> >+ <target_index>Title:p</target_index> >+ </index_data_field> > <!--record.abs line 265: melm 510 Title,Title:p--> > <index_data_field tag="510"> > <target_index>Title:w</target_index> > <target_index>Title:p</target_index> > </index_data_field> >+ <index_data_field tag="511" subfields="a"> >+ <target_index>Title:w</target_index> >+ <target_index>Title:p</target_index> >+ </index_data_field> > <!--record.abs line 266: melm 512 Title,Title:p--> > <index_data_field tag="512"> > <target_index>Title:w</target_index> >@@ -1243,6 +1348,17 @@ > <target_index>Title:w</target_index> > <target_index>Title:p</target_index> > </index_data_field> >+ <!-- Identification of a work --> >+ <index_data_field tag="576" subfields="a"> >+ <target_index>Title:w</target_index> >+ <target_index>Title:p</target_index> >+ </index_data_field> >+ <!-- Identification of an expression --> >+ <index_data_field tag="577" subfields="a"> >+ <target_index>Title:w</target_index> >+ <target_index>Title:p</target_index> >+ </index_data_field> >+ > <!--==== 6XX BLOCK OF SUBJECTS ====--> > <!--600 - Personal name--> > <index_subfields tag="600" subfields="a"> >@@ -1310,6 +1426,10 @@ > <target_index>Koha-Auth-Number:w</target_index> > <target_index>Koha-Auth-Number:n</target_index> > </index_subfields> >+ <index_subfields tag="606" subfields="y"> >+ <target_index>Subject:w</target_index> >+ <target_index>Subject:p</target_index> >+ </index_subfields> > <index_data_field tag="606"> > <target_index>Subject:w</target_index> > <target_index>Subject:p</target_index> >@@ -1386,6 +1506,18 @@ > <target_index>Subject:w</target_index> > <target_index>Subject:p</target_index> > </index_data_field> >+ <index_data_field tag="623"> >+ <target_index>Subject:w</target_index> >+ <target_index>Subject:p</target_index> >+ </index_data_field> >+ <index_data_field tag="631"> >+ <target_index>Subject:w</target_index> >+ <target_index>Subject:p</target_index> >+ </index_data_field> >+ <index_data_field tag="632"> >+ <target_index>Subject:w</target_index> >+ <target_index>Subject:p</target_index> >+ </index_data_field> > <!--==== 67X/68X BLOCK OF CLASSIFICATIONS ====--> > <!--record.abs line 471: melm 670 Subject-precis:w,Subject-precis:p--> > <index_data_field tag="670"> >@@ -1418,6 +1550,13 @@ > <target_index>Local-classification:w</target_index> > <target_index>Local-classification:p</target_index> > </index_data_field> >+ >+ <!-- URI --> >+ <index_subfields tag="856" subfields="u"> >+ <target_index>uri:w</target_index> >+ </index_subfields> >+ >+ > <!--==== 995 ITEMS ====--> > > <!-- 995$B new items--> >-- >2.30.2
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 20424
:
93732
|
93733
|
93736
|
119034
|
119053
|
119054
|
119080
|
119081
|
132663
|
132816
|
132817
|
132818
|
132827
|
132828
|
132829
|
148831
|
148832
|
148833
|
148834