[Koha-patches] [PATCH] Bug 5868: Subject indexes do not search 6xx fields

Jared Camins-Esakov jcamins at bywatersolutions.com
Thu Mar 31 15:32:13 CEST 2011


Prior to this change, the named Zebra Subject phrase index did not include the
600, 610, 611, 630, 654, 655, 656, and 657 fields. This could be seen in
searches such as: "su:Bible and su:N.T. and su:Matthew and su:Textbooks", which
should return a result with the following field:
=630  00$aBible.$pN.T.$pMatthew$vTextbooks.
This did not formerly work.

This patch modifies etc/zebradb/marc_defs/marc21/biblios/records.abs. This file
must be installed and biblios reindexed in Zebra for the changes made here to
affect records already in the catalog.
---
 etc/zebradb/marc_defs/marc21/biblios/record.abs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/etc/zebradb/marc_defs/marc21/biblios/record.abs b/etc/zebradb/marc_defs/marc21/biblios/record.abs
index 85eaedd..6e7dce8 100755
--- a/etc/zebradb/marc_defs/marc21/biblios/record.abs
+++ b/etc/zebradb/marc_defs/marc21/biblios/record.abs
@@ -158,19 +158,19 @@ melm 600$a      Name-and-title,Name,Personal-name,Subject-name-personal,Subject
 melm 600$t      Name-and-title,Title,Subject
 melm 600$9      Koha-Auth-Number
 #melm 600       Name,Personal-name,Subject-heading,Subject-name-personal
-melm 600        Name,Personal-name,Subject-name-personal,Subject
+melm 600        Name,Personal-name,Subject-name-personal,Subject,Subject:p
 melm 610$a      Name-and-title
 melm 610$t      Name-and-title,Title
 melm 610$9      Koha-Auth-Number
-melm 610        Name,Subject,Corporate-name
+melm 610        Name,Subject,Subject:p,Corporate-name
 melm 611$a      Name-and-title
 melm 611$t      Name-and-title,Title
 melm 611$9      Koha-Auth-Number
-melm 611        Conference-name,Name,Subject
+melm 611        Conference-name,Name,Subject,Subject:p
 melm 630$n      Thematic-number
 melm 630$r      Music-key
 melm 630$9      Koha-Auth-Number
-melm 630        Subject
+melm 630        Subject,Subject:p
 melm 650$9      Koha-Auth-Number    
 melm 650        Subject,Subject:p
 melm 651$9      Koha-Auth-Number    
@@ -180,13 +180,13 @@ melm 652$9      Koha-Auth-Number
 melm 653$9      Koha-Auth-Number    
 melm 653        Subject,Subject:p
 melm 654$9      Koha-Auth-Number    
-melm 654        Subject
+melm 654        Subject,Subject:p
 melm 655$9      Koha-Auth-Number    
-melm 655        Subject
+melm 655        Subject,Subject:p
 melm 656$9      Koha-Auth-Number    
-melm 656        Subject
+melm 656        Subject,Subject:p
 melm 657$9      Koha-Auth-Number    
-melm 657        Subject
+melm 657        Subject,Subject:p
 melm 658$a	curriculum:w,curriculum:p
 melm 658$b	curriculum:w,curriculum:p
 melm 658$c	curriculum:w,curriculum:p
-- 
1.7.2.3



More information about the Koha-patches mailing list