[Koha-patches] [PATCH] Bug 5819 - No toolbar in record view when quotes present in title
Janusz Kaczmarek
januszop at gmail.com
Tue Mar 1 23:32:08 CET 2011
---
C4/Search.pm | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/C4/Search.pm b/C4/Search.pm
index 3fff695..ff07c91 100644
--- a/C4/Search.pm
+++ b/C4/Search.pm
@@ -2497,8 +2497,10 @@ sub z3950_search_args {
my $array = [];
for my $field (qw/ lccn isbn issn title author dewey subject /)
{
- my $encvalue = URI::Escape::uri_escape_utf8($bibrec->{$field});
- push @$array, { name=>$field, value=>$bibrec->{$field}, encvalue=>$encvalue } if defined $bibrec->{$field};
+ my $val = $bibrec->{$field};
+ $val =~ s/["']/\$1/g;
+ my $encvalue = URI::Escape::uri_escape_utf8($val);
+ push @$array, { name=>$field, value=>$val, encvalue=>$encvalue } if defined $bibrec->{$field};
}
return $array;
}
--
1.7.2.3
More information about the Koha-patches
mailing list