[Koha-patches] [PATCH] Bugfix #2415

Frederic Demians f.demians at tamil.fr
Tue Jul 29 11:41:50 CEST 2008


---
 C4/Search.pm |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/C4/Search.pm b/C4/Search.pm
index e350ff3..148eeee 100755
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -1312,7 +1312,8 @@ s/\[(.?.?.?.?)$tagsubf(.*?)]/$1$subfieldvalue$2\[$1$tagsubf$2]/g;
             for my $highlight_field ( $marcrecord->fields ) {
     
     # FIXME: need to skip title, subtitle, author, etc., as they are handled below
-                next if $highlight_field->tag() =~ /(^00)/;    # skip fixed fields
+    		# Skip fixed and local fields
+                next if $highlight_field->tag() =~ /^00|^9/;
                 for my $subfield ($highlight_field->subfields()) {
                     my $match;
                     next if $subfield->[0] eq '9';
-- 
1.5.3.7




More information about the Koha-patches mailing list