From 6e58529bdd78f0593c9ad8b767715ff2d32e8ba8 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Thu, 7 Apr 2011 11:42:30 +0200 Subject: [PATCH] Bug 3072: Search for Heading-Main in authorities Includes Heading-Main in authorities bib1 attribute set. Also includes Any in authorities bib1 (was still missing). Also removes temporary fix in AuthoritiesMarc.pm. Signed-off-by: Marcel de Rooy Rebased after pushed fix for #5924. Signed-off-by: Katrin Fischer Signed-off-by: Chris Cormack --- C4/AuthoritiesMarc.pm | 3 --- etc/zebradb/authorities/etc/bib1.att | 2 ++ 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index a04fe116ea..68a3fcbf29 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -225,11 +225,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-Main "; }elsif (@$tags[$i] eq "mainentry") { diff --git a/etc/zebradb/authorities/etc/bib1.att b/etc/zebradb/authorities/etc/bib1.att index c41a5e68f0..b34e6b5167 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 -- 2.39.5