From e7fcb837fa83eb4a89767fb6fd6a053bb824200e Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 18 Feb 2011 14:39:46 +0100 Subject: [PATCH] 3072: Search for Heading-Main in authorities Content-Type: text/plain; charset="utf-8" Includes Heading-Main in authorities bib1 attribute set. Also includes Any in authorities bib1 (was still missing). Also removes temporary fix in AuthoritiesMarc.pm. --- C4/AuthoritiesMarc.pm | 7 +------ etc/zebradb/authorities/etc/bib1.att | 2 ++ 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index e5808b0..c32369e 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -224,13 +224,8 @@ sub SearchAuthorities { for(my $i = 0 ; $i <= $#{$value} ; $i++) { if (@$value[$i]){ - ##If mainentry search $a tag if (@$tags[$i] eq "mainmainentry") { - -# FIXME: 'Heading-Main' index not yet defined in zebra -# $attr =" \@attr 1=Heading-Main "; - $attr =" \@attr 1=Heading "; - + $attr =" \@attr 1=Heading-Main "; #search only in $a }elsif (@$tags[$i] eq "mainentry") { $attr =" \@attr 1=Heading "; }else{ diff --git a/etc/zebradb/authorities/etc/bib1.att b/etc/zebradb/authorities/etc/bib1.att index c41a5e6..b34e6b5 100644 --- a/etc/zebradb/authorities/etc/bib1.att +++ b/etc/zebradb/authorities/etc/bib1.att @@ -2,6 +2,7 @@ name bib1 reference Bib-1 +att 1016 Any att 9000 authtype att 12 Local-Number att 9038 Descriptive-cataloging-rules @@ -65,6 +66,7 @@ att 9029 Term-genre-form-see-also-from att 8001 Heading att 8002 See-from att 8003 See-also-from +att 8004 Heading-Main att 8804 Match-heading att 8805 Match-subdivision att 8806 Subdivision -- 1.6.0.6