From d8756d4a1ccaba8ad034009ea4b43bb4828db62b Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Tue, 5 Nov 2013 12:33:04 +0100 Subject: [PATCH 3/5] Bug 11202 - Improve UNIMARC biblio indexing Content-Type: text/plain; charset="utf-8" This patch makes the following changes to UNIMARC biblio indexing : A. Changes to UNIMARC conf files 1. add comments to biblio-koha-indexdefs.xml 2. make biblio-koha-indexdefs.xml more compact by grouping some declarations Ex : 200$f and 200$g => one declaration for 200$fg 3. suppress unneeded declarations (indexing of some 4XX fields and 6XX fields not in unimarc format) 4. unindex some (sub)fields unneeded by most users (318, 207,230,210a,215, 4XXd) 5. change the way 308 field is indexed (no visible changes) 6. replace Title-host with Host-item -- see bug 11119 7. index 208 in Material-Type -- see bug 11119 8. index 100 pos 8-9 and 9-12 in pubdate:y and pubdate:n 9. index 100 pos 8-9 in pubdate:s instead of 210$d 10. Index all subfields of note 334 and 327 in note index 11. Index 304 and 327 in title index as well as note index 327 can contain a list of titles included in a work 304 can contain the title of the original work in case of a translation 12. Index 314 in author index as well as note index 314 can contain authors not mentionned in 200$f/g (the 4th, 5th etc author) 13. Index 328 note in Dissertation-information as well as note 14. Index 328$t in Title B. Changes to ccl.properties : 1. add a new index Dissertation-information (1056) 2. fix EAN, pubdate and acqdate (they were not linked with bib1 attributes) C. Changes to Search.pm 1. add Dissertation-information and suppress Title-host and UPC D. Changes to QP config file queryparser.yaml 1. add Dissertation-information 2 fix EAN, pubdate and acqdate Test plan : If you cannot test in GRS1, test only in DOM, as GRS will be deprecated. 1. Apply the patch in a UNIMARC Koha running with DOM and ICU 2. copy src/etc/searchengine/queryparser.yaml into the main config directory of QP 3. copy src/etc/zebradb/ccl.properties into the main config directory of Zebra 4. copy src/etc/zebradb/marc_defs/unimarc/biblio/* into the main config directory of Zebra 5. reindex biblios (rebuild_zebra.pl -r -b -x -v) 6. test note index : make some searches on 334$b or 327$b 7. test author index : make some searches on 314 field 8. test title index : make some searches on 304 and 327 field, make a search on 328$t subfield 9. test Dissertation-information index : make some searches on 328 field 10. In a record, put in the dates of 100 fields the values "1000" (1st date) and "1001" (2d date) ; try to search a book written in year 1000, you should find the record ; idem for year 1001 11. make some searches and sort by date. It should work better as before, especially if you have values like "c2009" or "impr. 2010" in 210 field 12. Regression test : make some searches on several indexes, like EAN, etc. It should work as before Test 10-12 with and without Queryparser activated. Of course, to test search and sort by dates, you need to have full records, with dates in 100 field as well as 210 field. --- C4/Search.pm | 3 +- etc/searchengine/queryparser.yaml | 15 +- etc/zebradb/ccl.properties | 23 +- .../unimarc/biblios/biblio-koha-indexdefs.xml | 876 +++++++------------- .../unimarc/biblios/biblio-zebra-indexdefs.xsl | 755 ++--------------- etc/zebradb/marc_defs/unimarc/biblios/record.abs | 130 ++- 6 files changed, 475 insertions(+), 1327 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index c9f2560..300b97c 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -962,6 +962,7 @@ sub getIndexes{ 'Date-of-acquisition', 'Date-of-publication', 'Dewey-classification', + 'Dissertation-information', 'EAN', 'extent', 'fic', @@ -1042,7 +1043,6 @@ sub getIndexes{ 'su-to', 'su-ut', 'ut', - 'UPC', 'Term-genre-form', 'Term-genre-form-heading', 'Term-genre-form-see', @@ -1051,7 +1051,6 @@ sub getIndexes{ 'Title', 'Title-cover', 'Title-series', - 'Title-host', 'Title-uniform', 'Title-uniform-heading', 'Title-uniform-see', diff --git a/etc/searchengine/queryparser.yaml b/etc/searchengine/queryparser.yaml index 0cce85c..e8a4510 100644 --- a/etc/searchengine/queryparser.yaml +++ b/etc/searchengine/queryparser.yaml @@ -375,6 +375,15 @@ field_mappings: aliases: - datelastseen label: Datelastseen + dissertation-information: + bib1_mapping: + biblioserver: + 1: 1056 + enabled: 1 + index: dissertation-information + aliases: + - dissertation-information + label: Dissertation-information dt-bks: bib1_mapping: biblioserver: @@ -423,7 +432,7 @@ field_mappings: ean: bib1_mapping: biblioserver: - 1: EAN + 1: 1214 enabled: 1 index: ean aliases: @@ -1230,7 +1239,7 @@ filter_mappings: acqdate: bib1_mapping: biblioserver: - 1: Date-of-acquisition + 1: 32 4: 4 target_syntax_callback: date_filter_target_callback enabled: 1 @@ -1247,7 +1256,7 @@ filter_mappings: pubdate: bib1_mapping: biblioserver: - 1: pubdate + 1: 31 4: 4 target_syntax_callback: date_filter_target_callback enabled: 1 diff --git a/etc/zebradb/ccl.properties b/etc/zebradb/ccl.properties index 14aa7b2..4cfdb22 100644 --- a/etc/zebradb/ccl.properties +++ b/etc/zebradb/ccl.properties @@ -327,21 +327,19 @@ sn Local-number #Date 30 The point of time at which 005, 008/00-05, # a transaction or event 008/07-10, 260$c, # takes place. 008/11-14, 033,etc. -# interpreting this as the copyright date in 260$c +# interpreting this as the copyright date in 260$c (MARC21) and 210$d (UNIMARC) copydate 1=30 r=r #Date-publication 31 The date (usually year) in 008/07-10, 260$c # which a document is published. 046, 533$d -Date-of-publication 1=pubdate r=r -#dp Date-of-publication +Date-of-publication 1=31 r=r yr Date-of-publication pubdate Date-of-publication #Date-acquisition 32 The date when a document was 541$d # acquired. -Date-of-acquisition 1=Date-of-acquisition +Date-of-acquisition 1=32 acqdate Date-of-acquisition -#da Date-of-acquisition #Date/time added to 1011 The date and time that a 008/00-05 #database record was added to the @@ -352,6 +350,16 @@ acqdate Date-of-acquisition #modified was last updated. Date/time-last-modified 1=1012 +#Dissertation- 1056 Information about a MARC21 502/UNIMARC 328 +#information dissertation thesis, or another +# publication connected with an +# academic degree. +Dissertation-information 1=1056 + +#EAN 1214 European article number UNIMARC 073 +EAN 1=1214 +ean EAN + #Identifier-- 1013 Used in full-text searching #authority/format to indicate to the target # system the format of the @@ -442,8 +450,6 @@ music Identifier-publisher-for-music #Identifier-standard 1=1007 4=6 Identifier-standard 1=1007 4=6 ident Identifier-standard -upc 1=UPC -ean 1=EAN # #Identifier-stock 1028 A stock number that could be 037 @@ -827,7 +833,7 @@ se Title-series # a work is to be identified subfield $t in the # for cataloging purposes. following: 700,710, # 711 -Title-uniform 1=Title-uniform +Title-uniform 1=6 ut Title-uniform Title-uniform-heading 1=Title-uniform-heading @@ -994,6 +1000,7 @@ mc-loc location acqsource 1=8015 coded-location-qualifier 1=8016 price 1=8017 +# FIXME stock-number and stocknumber should probably not be different indexes stocknumber 1=1062 inv stocknumber stack 1=8018 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 3d926a3..d740027 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml @@ -39,122 +39,63 @@ ccode:w - - + + ISBN:w - - - - ISBN:w - Identifier-standard:w - - - - ISSN:w Identifier-standard:w - - + + ISSN:w Identifier-standard:w - - - ISSN:w + + Identifier-standard:w - - - Identifier-standard:w - - - - Identifier-standard:w - - + Identifier-standard:w - - + + Identifier-standard:w - - + + Identifier-standard:w - - + + Identifier-standard:w - - + + Identifier-standard:w - - + + Identifier-standard:w - - + + Identifier-standard:w - - - Identifier-standard:w - - - - Identifier-standard:w - - - - Identifier-standard:w - - - - Identifier-standard:w - - - - Identifier-standard:w - - - - Identifier-standard:w - - - + + Identifier-publisher-for-music:w Identifier-standard:w - - - Identifier-publisher-for-music:w - Identifier-standard:w - - Publisher:w Publisher:p - - - UPC:w - Identifier-standard:w - - - - UPC:w + + Identifier-standard:w - - - EAN:w - Identifier-standard:w - - - + + EAN:w Identifier-standard:w @@ -174,10 +115,34 @@ itype:w itype:p - + + tpubdate:s + + pubdate:s + pubdate:n + pubdate:y + + + pubdate:n + pubdate:y + ta:w @@ -202,15 +167,26 @@ script-Title:n - + ln:w - + Country-publication:w - + + + ff8-18-21:w @@ -250,12 +226,24 @@ bio:w - + ff8-23:w ff8-23:p - + + ff8-21:w @@ -283,11 +271,11 @@ Cumulative-index-availability:w - + Video-mt:w - + Graphics-type:w @@ -297,13 +285,9 @@ Graphics-support:w - - - Author:w - Author:p - - - + + + Author:w Author:p @@ -459,8 +443,9 @@ Author:w Author:p - - + + + Title:w Title:p Title:s @@ -468,69 +453,56 @@ Title-cover:p Title-cover:s - - - Title:w - Title:p - - - + Title:w Title:p - - - Title:w - Title:p - Title-cover:w - Title-cover:p - - - - Title:w - Title:p - Title-cover:w - Title-cover:p - - + + Title:w Title:p - - - Serials:w - Serials:p - - - - Printed-music:w - Printed-music:p - - + + + + + + Material-Type:w + Material-Type:p + + + + --> + + + + --> + Publisher:w Publisher:p - + + + pubdate:n pubdate:y - pubdate:s - + + Title-series:w @@ -572,96 +544,105 @@ ISSN:w - + + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p + Title:w + Title:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - - + + Note:w Note:p - - + + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p + Author:w + Author:p - + Note:w Note:p - + + Note:w Note:p - + + Note:w Note:p - - + + Note:w @@ -677,416 +658,296 @@ Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - - + + Note:w Note:p + Title:w + Title:p - - + + Note:w Note:p - - + Dissertation-information:p + Dissertation-information:w + + + Note:w + Note:p + Dissertation-information:p + Dissertation-information:w + Title:p + Title:w + + Abstract:w Note:w Abstract:p Note:p - + Note:w Note:p - + Note:w Note:p - - + + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - + Note:w Note:p - - - Title-series:w - Title-series:p - - - + + - - Title:w - Title:p + --> + + + + + Title-series:w + Title-series:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + + Title:w - Title-host:w - title-host:p + Title:p + Host-item:w + Host-item:p + + + Host-Item-Number:w - + Title:w Title:p - + Title:w Title:p - + + Title:w - Title-host:w - title-host:p Title:p + Host-item:w + Host-item:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - + Title:w Title:p - - - Host-Item-Number:w - - - - Title:w - Title:p - - - - Title:w - Title:p - - - - Title:w - Title:p - Title-Uniform:w - Title-Uniform:p - - - - Title:w - Title:p - - - - Title:w - Title:p - - - - Title:w - Title:p - - - - Title:w - Title:p - - - - Title:w - Title:p - - - - Title:w - Title:p - - - - Title:w - Title:p - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - pubdate:n - - - - Host-Item-Number:w - + Koha-Auth-Number:w @@ -1287,250 +1148,150 @@ Title:w Title:p - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - - - Koha-Auth-Number:w - Koha-Auth-Number:n - - + + Personal-name:w Personal-name:p Subject:w Subject:p - + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + Corporate-name:w Conference-name:w Corporate-name:p Conference-name:p - + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + Personal-name:w Personal-name:p - + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Subject:w Subject:p - - - Subject:w - Subject:p - - - - Subject:w - Subject:p - - - - Subject:w - Subject:p - - - - Subject:w - Subject:p - - - - Subject:w - Subject:p - - - - Subject:w - Subject:p - - - - Subject:w - Subject:p - - - - Subject:w - Subject:p - - - - Subject:w - Subject:p - + Subject-precis:w @@ -1562,72 +1323,73 @@ Local-classification:w Local-classification:p - + + damaged:w damaged:n item:w - + lost:w lost:n item:w - + withdrawn:w withdrawn:n item:w - + homebranch:w Host-item:w item:w - + homebranch:w Host-item:w item:w - + holdingbranch:w Record-Source:w item:w - + holdingbranch:w Record-Source:w item:w - + location:w location:p item:w - + barcode:w barcode:p item:w - + ccode:w ccode:p item:w - + LC-card-number:s item:w - + Call-Number:w Local-classification:w @@ -1638,7 +1400,7 @@ item:w Local-classification:s - + onloan:d onloan:n @@ -1646,17 +1408,17 @@ onloan:w item:w - + Note:w Note:p item:w - + item:w - + totalissues:n totalissues:s 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 de3f06f..38ee397 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl @@ -92,14 +92,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - + @@ -108,35 +101,14 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - - - - - - - - + - - - - - - - - + @@ -154,14 +126,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - + @@ -170,14 +135,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - + @@ -186,14 +144,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - + @@ -202,14 +153,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - + @@ -218,14 +162,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - + @@ -234,14 +171,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - + @@ -250,14 +180,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - + @@ -273,15 +196,8 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - - + + @@ -289,14 +205,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - + @@ -312,54 +221,26 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - + - + - - - - - - - - + - - - - - - - - - - - - - - @@ -478,6 +359,20 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + + + + + + @@ -856,10 +751,10 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + - - + + @@ -867,13 +762,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - @@ -882,7 +770,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -985,7 +873,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1017,8 +905,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - + @@ -1026,8 +913,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - + @@ -1036,7 +922,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1045,7 +931,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1054,7 +940,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1063,16 +949,16 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + - + - + @@ -1081,7 +967,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1090,7 +976,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1164,8 +1050,24 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - + + + + + + + + + + + + + + + + + + @@ -1200,7 +1102,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1242,38 +1144,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1283,13 +1153,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - @@ -1344,13 +1207,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - @@ -1360,13 +1216,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - @@ -1376,13 +1225,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - @@ -1437,13 +1279,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - @@ -1453,13 +1288,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - @@ -1496,13 +1324,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - @@ -1588,21 +1409,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - - - - - - - - + @@ -1636,7 +1443,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1678,170 +1485,10 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -2020,21 +1667,12 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - - @@ -2042,6 +1680,8 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + @@ -2049,8 +1689,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - @@ -2058,6 +1696,8 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + @@ -2065,8 +1705,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - @@ -2119,8 +1757,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - @@ -2174,69 +1810,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2429,71 +2002,6 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2936,123 +2444,6 @@ 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 aa0f74d..06112c6 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/record.abs +++ b/etc/zebradb/marc_defs/unimarc/biblios/record.abs @@ -76,14 +76,15 @@ 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 -melm 072$z UPC:w,Identifier-standard:w +melm 072$a Identifier-standard:w +melm 072$z Identifier-standard:w # EAN melm 073$a EAN:w,Identifier-standard:w melm 073$z EAN:w,Identifier-standard:w ############ ITEM TYPE ################## # FIXME index 200$b only in Material-type ? +# FIXME in standard installations, 200$b should probably NOT be indexed melm 200$b itemtype:w,itemtype:p,itype:w,itype:p,Material-type:w,Material-type:p melm 995$r itemtype:w,itemtype:p,itype:w,itype:p @@ -102,7 +103,7 @@ melm 995$r itemtype:w,itemtype:p,itype:w,itype:p # Character Set (Mandatory) 4 26-29 # additional Character Set 4 28-33 # Script of title 2 34-35 -melm 100$a tpubdate:s:range(data,8,1),ta:w:range(data,17,1),ta:w:range(data,18,1),ta:w:range(data,19,1),Modified-code:n:range(data,21,1),char-encoding:n:range(data,26,2),char-encoding:n:range(data,28,2),char-encoding:n:range(data,30,2),script-Title:n:range(data,34,2) +melm 100$a tpubdate:s:range(data,8,1),pubdate:n:range(data,9,4),pubdate:y:range(data,9,4),pubdate:s:range(data,9,4),pubdate:n:range(data,13,4),pubdate:y:range(data,13,4),ta:w:range(data,17,1),ta:w:range(data,18,1),ta:w:range(data,19,1),Modified-code:n:range(data,21,1),char-encoding:n:range(data,26,2),char-encoding:n:range(data,28,2),char-encoding:n:range(data,30,2),script-Title:n:range(data,34,2) melm 101$a ln melm 102$a Country-publication @@ -197,17 +198,21 @@ melm 205 Title,Title:p ########## MATERIAL SPECIFIC AREA ################# # TODO 206 -melm 207 Serials,Serials:p -melm 208 Printed-music,Printed-music:p -melm 230$a Electronic-ressource +# 207 do not index +# 208 +melm 208$a Material-type:w,Material-type:p +melm 208$d Material-type:w,Material-type:p +# Uncomment to index this field +# melm 230$a Electronic-ressource ########## PUBLISHER ################# -melm 210$a pl,pl:p +#melm 210$a pl,pl:p melm 210$c Publisher,Publisher:p -melm 210$d pubdate:n,pubdate:y,pubdate:s +melm 210$d pubdate:n,pubdate:y ########## DESCRIPTION ################# -melm 215 Extent +# Uncomment to index this field +# melm 215 Extent ########## SERIES ################# melm 225$a Title-series,Title-series:p @@ -234,7 +239,7 @@ melm 302$a Note,Note:p # Notes Pertaining to Descriptive Information melm 303$a Note,Note:p # Notes Pertaining to Title and Statement of Responsibility -melm 304$a Note,Note:p +melm 304$a Note,Note:p,Title:w,Title:p # Notes Pertaining to Edition and Bibliographic History melm 305$a Note,Note:p # Notes Pertaining to Publication, Distribution, etc. @@ -252,15 +257,18 @@ melm 312$a Note,Note:p # Notes Pertaining to Subject Access melm 313$a Note,Note:p # Notes Pertaining to Intellectual Responsability (in Sudoc catalogue, may contains the 4th, 5th etc. authors) -melm 314$a Note,Note:p +melm 314$a Note,Note:p,Author:w,Author:p # Notes Pertaining to Material (or Type of Publication) Specific Information melm 315$a Note,Note:p # Note Relating to the Copy in Hand (ancient books) +# Do not index $u,$5 melm 316$a Note,Note:p # Provenance Note (ancient books) +# Do not index $u,$5 melm 317$a Note,Note:p # Action Note -melm 318$a Note,Note:p +# Do not index this note (useless for the public) +# melm 318 Note,Note:p # Internal Bibliographies/Indexes Note melm 320$a Note,Note:p # External Indexes/Abstracts/References Note @@ -276,9 +284,23 @@ melm 325$a Note,Note:p # Frequency Statement Note (Serials) melm 326$a Note,Note:p # Contents Note -melm 327$a Note,Note:p +melm 327$a Note,Note:p,Title:w,Title:p +melm 327$b Note,Note:p,Title:w,Title:p +melm 327$c Note,Note:p,Title:w,Title:p +melm 327$d Note,Note:p,Title:w,Title:p +melm 327$e Note,Note:p,Title:w,Title:p +melm 327$f Note,Note:p,Title:w,Title:p +melm 327$g Note,Note:p,Title:w,Title:p +melm 327$h Note,Note:p,Title:w,Title:p +melm 327$i Note,Note:p,Title:w,Title:p # Dissertation note -melm 328 Note,Note:p +# Do not index $z ("Commercial edition : ") +melm 328$a Note,Note:p,Dissertation-information:w,Dissertation-information:p +melm 328$b Note,Note:p,Dissertation-information:w,Dissertation-information:p +melm 328$c Note,Note:p,Dissertation-information:w,Dissertation-information:p +melm 328$d Note,Note:p,Dissertation-information:w,Dissertation-information:p +melm 328$e Note,Note:p,Dissertation-information:w,Dissertation-information:p +melm 328$t Note,Note:p,Dissertation-information:w,Dissertation-information:p,Title:w,Title:p # Summary or Abstract melm 330$a Abstract:w,Note:w,Abstract:p,Note:p # Preferred Citation of Described Materials @@ -286,18 +308,34 @@ melm 332$a Note,Note:p # Users/Intended Audience Note melm 333$a Note,Note:p # Awards note +# Do not index $u,$z melm 334$a Note,Note:p +melm 334$b Note,Note:p +melm 334$c Note,Note:p +melm 334$d Note,Note:p # Type of electronic ressource note melm 336$a Note,Note:p # System requirements note melm 337$a Note,Note:p # Acquisition Information Note melm 345$a Note,Note:p +# Table of contents note (Used in french libraries) +# Do not index $u,v,p +# Uncomment to index as note and title +# melm 359$a Note,Note:p,Title:w,Title:p +# melm 359$b Note,Note:p,Title:w,Title:p +# melm 359$c Note,Note:p,Title:w,Title:p +# melm 359$d Note,Note:p,Title:w,Title:p +# melm 359$e Note,Note:p,Title:w,Title:p +# melm 359$f Note,Note:p,Title:w,Title:p +# melm 359$g Note,Note:p,Title:w,Title:p +# melm 359$h Note,Note:p,Title:w,Title:p +# melm 359$i Note,Note:p,Title:w,Title:p ############## 4XX - LINKING ################## # All 4XX indexed as Title, except for 410 melm 410$t Title-series,Title-series:p -melm 411$t Title,Title:p +melm 411$t Title-series,Title-series:p melm 412$t Title,Title:p melm 413$t Title,Title:p melm 421$t Title,Title:p @@ -329,11 +367,11 @@ melm 454$t Title,Title:p melm 455$t Title,Title:p melm 456$t Title,Title:p # FIXME Warning : field used by Koha for analytics, but also in Sudoc network -melm 461$t Title,Title-host:w,title-host:p +melm 461$t Title,Title:p,Host-item:w,Host-item:p melm 462$t Title,Title:p melm 463$t Title,Title:p # FIXME Warning : field used by Koha for analytics, but also in Sudoc network -melm 464$t Title,Title-host:w,title-host:p,Title:p +melm 464$t Title,Title:p,Host-item:w,Host-item:p melm 470$t Title,Title:p melm 481$t Title,Title:p melm 482$t Title,Title:p @@ -343,39 +381,6 @@ melm 488$t Title,Title:p # FIXME Warning : field used by Koha for analytics, but also in Sudoc network melm 461$9 Host-Item-Number -#FIXME Fields 400, 401, 403, 414, 415, 416, 417, 418, 419, 420 are not defined in Unimarc, but may be used by some libraries. -melm 400$t Title,Title:p -melm 401$t Title,Title:p -melm 403$t Title,Title:p,Title-Uniform,Title-Uniform:p -melm 414$t Title,Title:p -melm 415$t Title,Title:p -melm 416$t Title,Title:p -melm 417$t Title,Title:p -melm 418$t Title,Title:p -melm 419$t Title,Title:p -melm 420$t Title,Title:p - -melm 400$d pubdate:n -melm 401$d pubdate:n -melm 403$d pubdate:n -melm 410$d pubdate:n -melm 412$d pubdate:n -melm 413$d pubdate:n -melm 414$d pubdate:n -melm 415$d pubdate:n -melm 416$d pubdate:n -melm 417$d pubdate:n -melm 418$d pubdate:n -melm 419$d pubdate:n -melm 420$d pubdate:n -melm 430$d pubdate:n -melm 431$d pubdate:n -melm 432$d pubdate:n -melm 440$d pubdate:n -melm 441$d pubdate:n -melm 445$d pubdate:n -melm 461$d pubdate:n - ############## 5XX - TITLES ################## melm 500$9 Koha-Auth-Number,Koha-Auth-Number:n melm 501$9 Koha-Auth-Number,Koha-Auth-Number:n @@ -434,19 +439,6 @@ melm 616$9 Koha-Auth-Number,Koha-Auth-Number:n melm 617$9 Koha-Auth-Number,Koha-Auth-Number:n melm 620$9 Koha-Auth-Number,Koha-Auth-Number:n melm 621$9 Koha-Auth-Number,Koha-Auth-Number:n -# melm 626$9 Koha-Auth-Number,Koha-Auth-Number:n -# melm 660$9 Koha-Auth-Number,Koha-Auth-Number:n -# melm 661$9 Koha-Auth-Number,Koha-Auth-Number:n - -#FIXME Fields 603, 630, 631, 632, 633, 634, 635, 636, 646 are not defined in Unimarc, but may be used by some libraries. -melm 603$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 630$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 631$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 632$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 633$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 634$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 635$9 Koha-Auth-Number,Koha-Auth-Number:n -melm 636$9 Koha-Auth-Number,Koha-Auth-Number:n melm 600$a Personal-name,Personal-name:p,Subject,Subject:p melm 600 Subject,Subject:p @@ -472,17 +464,6 @@ melm 621 Subject,Subject:p # Chronological coverage code. Probably not useful # melm 661 Subject,Subject:p -#FIXME Fields 603, 630, 631, 632, 633, 634, 635, 636, 646 are not defined in Unimarc, but may be used by some libraries. -melm 603 Subject,Subject:p -melm 630 Subject,Subject:p -melm 631 Subject,Subject:p -melm 632 Subject,Subject:p -melm 633 Subject,Subject:p -melm 634 Subject,Subject:p -melm 635 Subject,Subject:p -melm 636 Subject,Subject:p -melm 646 Subject,Subject:p - ########### CLASSIFICATIONS (67x/68x) ################## # PRECIS melm 670 Subject-precis:w,Subject-precis:p @@ -496,7 +477,6 @@ melm 680 LC-call-number:w,LC-call-number:p # Other class numbers // see Marc21 084 melm 686 Local-classification:w,Local-classification:p - ############## KOHA ITEM INFORMATION (based on 995) ############### # Koha specific : $1, $2, $3 melm 995$1 damaged,damaged:n -- 1.7.9.5