[Koha-patches] [PATCH] BUG:3072 small work-around patch to restore authorities searching

Mason James mason.loves.sushi at gmail.com
Thu Apr 2 07:01:07 CEST 2009


this is a work-around fix, until a future patch arrives to define the missing 'Heading-Main' zebra-index.

for 3.0.x

---
 C4/AuthoritiesMarc.pm |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm
index f9bf733..4596bfa 100644
--- a/C4/AuthoritiesMarc.pm
+++ b/C4/AuthoritiesMarc.pm
@@ -220,7 +220,11 @@ sub SearchAuthorities {
             if (@$value[$i]){
             ##If mainentry search $a tag
                 if (@$tags[$i] eq "mainmainentry") {
-                $attr =" \@attr 1=Heading-Main ";
+
+# FIXME: 'Heading-Main' index not yet defined in zebra
+#                $attr =" \@attr 1=Heading-Main "; 
+                $attr =" \@attr 1=Heading ";
+
                 }elsif (@$tags[$i] eq "mainentry") {
                 $attr =" \@attr 1=Heading ";
                 }else{
-- 
1.5.6.5




More information about the Koha-patches mailing list