From 758a127ec6927f2ad2e3008be4c8466e1f63a4e3 Mon Sep 17 00:00:00 2001 From: Mathieu Saby Date: Tue, 19 Nov 2013 17:49:14 +0100 Subject: [PATCH 3] Fix indexing of 411, 412, 511 and index new fields 506,507,576,577 Content-Type: text/plain; charset="utf-8" * Due to a mistake, 411, 412 and 511 fields were not indexed by the main patch. * This patch also index new fields added in UNIMARC format in 2012 to make it more FRBR compliant : 506, 507, 576, 577. These fields are experimental in most UNIMARC countries. They are not currently used in France but will probably be in some months or years. * This patch also reorganizes definitions of 5XX fields and adds comments, without functional changes To test: - take a record with some data in 411, 412 or 511 fields - reindex - check the record can be retrieved by searching the data of those fields - if you want, test 506,507,576,577 fields (as they are mostly experimental, and as index definition is trivial, this test can be skipped) --- .../unimarc/biblios/biblio-koha-indexdefs.xml | 273 ++++++++++++-------- .../unimarc/biblios/biblio-zebra-indexdefs.xsl | 138 ++++++++-- etc/zebradb/marc_defs/unimarc/biblios/record.abs | 18 ++ 3 files changed, 300 insertions(+), 129 deletions(-) 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 d740027..e85c725 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-koha-indexdefs.xml @@ -747,12 +747,23 @@ --> - + + Title-series:w Title-series:p + + + Title-series:w + Title-series:p + + + + Title:w + Title:p + Title:w @@ -763,7 +774,7 @@ Title:w Title:p - + Title:w Title:p @@ -783,6 +794,7 @@ Title:w Title:p + Title:w @@ -823,6 +835,7 @@ Title:w Title:p + Title:w @@ -868,6 +881,7 @@ Title:w Title:p + Title:w @@ -898,8 +912,9 @@ Title:w Title:p + - + Title:w Title:p @@ -920,13 +935,14 @@ Title:p - + Title:w Title:p Host-item:w Host-item:p + Title:w @@ -948,206 +964,237 @@ Title:p - + + Koha-Auth-Number:w Koha-Auth-Number:n - + + Title:w + Title:p + + Koha-Auth-Number:w Koha-Auth-Number:n - + + 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 - - - + + Title:w + Title:p + + + Koha-Auth-Number:w Koha-Auth-Number:n - - + Title:w Title:p - - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + + Title:w Title:p - - + + + + Koha-Auth-Number:w + Koha-Auth-Number:n + + Title:w Title:p - - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + +--> + + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p - + + + Koha-Auth-Number:w + Koha-Auth-Number:n + Title:w Title:p + + + Koha-Auth-Number:w + Koha-Auth-Number:n + + + Title:w + Title:p + + + + Koha-Auth-Number:w + Koha-Auth-Number:n + + + Title:w + Title: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 2a4eca5..df11a2e 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl +++ b/etc/zebradb/marc_defs/unimarc/biblios/biblio-zebra-indexdefs.xsl @@ -1147,6 +1147,24 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + + + + + + + + + + @@ -1514,6 +1532,24 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + + + + + + + + + + @@ -1523,7 +1559,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1532,7 +1568,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1541,7 +1577,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1550,7 +1586,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1559,7 +1595,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1568,7 +1604,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1577,7 +1613,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1586,7 +1622,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -1667,6 +1703,24 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + + + + + + + + + + @@ -2043,6 +2097,32 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -2056,7 +2136,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2069,7 +2149,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2082,7 +2162,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2095,7 +2175,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2108,7 +2188,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2121,7 +2201,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2134,7 +2214,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2147,7 +2227,7 @@ definition file (probably something like {biblio,authority}-koha-indexdefs.xml) - + @@ -2264,6 +2344,32 @@ 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 06112c6..a0894e3 100644 --- a/etc/zebradb/marc_defs/unimarc/biblios/record.abs +++ b/etc/zebradb/marc_defs/unimarc/biblios/record.abs @@ -334,8 +334,10 @@ melm 345$a Note,Note:p ############## 4XX - LINKING ################## # All 4XX indexed as Title, except for 410 +# 410 -411 : Series ; used in monographs melm 410$t Title-series,Title-series:p melm 411$t Title-series,Title-series:p +# 412 - 425 : Series, supplement ; used for serials melm 412$t Title,Title:p melm 413$t Title,Title:p melm 421$t Title,Title:p @@ -343,6 +345,7 @@ melm 422$t Title,Title:p melm 423$t Title,Title:p melm 424$t Title,Title:p melm 425$t Title,Title:p +# 43X - Preceding entries ; used for serials melm 430$t Title,Title:p melm 431$t Title,Title:p melm 432$t Title,Title:p @@ -351,6 +354,7 @@ melm 434$t Title,Title:p melm 435$t Title,Title:p melm 436$t Title,Title:p melm 437$t Title,Title:p +# 43X - Suceeding entries ; used for serials melm 440$t Title,Title:p melm 441$t Title,Title:p melm 442$t Title,Title:p @@ -360,18 +364,21 @@ melm 445$t Title,Title:p melm 446$t Title,Title:p melm 447$t Title,Title:p melm 448$t Title,Title:p +# 450 Other editions ; used for monographs melm 451$t Title,Title:p melm 452$t Title,Title:p melm 453$t Title,Title:p melm 454$t Title,Title:p melm 455$t Title,Title:p melm 456$t Title,Title:p +# 46X - Set level # FIXME Warning : field used by Koha for analytics, but also in Sudoc network 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:p,Host-item:w,Host-item:p +# 470-488 - Other linked titles melm 470$t Title,Title:p melm 481$t Title,Title:p melm 482$t Title,Title:p @@ -385,7 +392,10 @@ melm 461$9 Host-Item-Number melm 500$9 Koha-Auth-Number,Koha-Auth-Number:n melm 501$9 Koha-Auth-Number,Koha-Auth-Number:n melm 503$9 Koha-Auth-Number,Koha-Auth-Number:n +melm 506$9 Koha-Auth-Number,Koha-Auth-Number:n +melm 507$9 Koha-Auth-Number,Koha-Auth-Number:n melm 510$9 Koha-Auth-Number,Koha-Auth-Number:n +melm 511$9 Koha-Auth-Number,Koha-Auth-Number:n melm 512$9 Koha-Auth-Number,Koha-Auth-Number:n melm 513$9 Koha-Auth-Number,Koha-Auth-Number:n melm 514$9 Koha-Auth-Number,Koha-Auth-Number:n @@ -402,11 +412,16 @@ melm 540$9 Koha-Auth-Number,Koha-Auth-Number:n melm 541$9 Koha-Auth-Number,Koha-Auth-Number:n melm 545$9 Koha-Auth-Number,Koha-Auth-Number:n melm 560$9 Koha-Auth-Number,Koha-Auth-Number:n +melm 576$9 Koha-Auth-Number,Koha-Auth-Number:n +melm 577$9 Koha-Auth-Number,Koha-Auth-Number:n melm 500 Title,Title:p melm 501 Title,Title:p melm 503 Title,Title:p +melm 506 Title,Title:p +melm 507 Title,Title:p melm 510 Title,Title:p +melm 511 Title,Title:p melm 512 Title,Title:p melm 513 Title,Title:p melm 514 Title,Title:p @@ -423,6 +438,9 @@ melm 540 Title,Title:p melm 541 Title,Title:p melm 545 Title,Title:p melm 560 Title,Title:p +melm 576 Title,Title:p +melm 567 Title,Title:p + ########### SUBJECTS (6xx) ################## melm 600$9 Koha-Auth-Number,Koha-Auth-Number:n -- 1.7.9.5