[Koha-patches] [PATCH] 3072: Search for Heading-Main in authorities

Marcel de Rooy M.de.Rooy at rijksmuseum.nl
Wed Apr 6 14:24:04 CEST 2011


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 <m.de.rooy at rijksmuseum.nl>
Rebased after pushed fix for #5924.
---
 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 a04fe11..68a3fcb 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 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


More information about the Koha-patches mailing list