[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/opac opac-search.pl [rel_2_2]
From: |
Joshua Ferraro |
Subject: |
[Koha-cvs] koha/opac opac-search.pl [rel_2_2] |
Date: |
Sat, 04 Mar 2006 06:33:55 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Joshua Ferraro <address@hidden> 06/03/04 06:33:55
Modified files:
opac : opac-search.pl
Log message:
Fixes isbn search in opac -- it seems that '-' is stripped out in
marc_word table so if a query includes the - it failed previously.
This commit ensure that - is stripped out of the query before
submitting.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/opac/opac-search.pl.diff?only_with_tag=rel_2_2&tr1=1.21.2.13&tr2=1.21.2.14&r1=text&r2=text
Patches:
Index: koha/opac/opac-search.pl
diff -u koha/opac/opac-search.pl:1.21.2.13 koha/opac/opac-search.pl:1.21.2.14
--- koha/opac/opac-search.pl:1.21.2.13 Wed Mar 1 22:33:25 2006
+++ koha/opac/opac-search.pl Sat Mar 4 06:33:54 2006
@@ -43,6 +43,10 @@
my $desc_or_asc = $query->param('desc_or_asc');
my $exactsearch = $query->param('exact');
for (my $i=0;$i<=$#marclist;$i++) {
+
+ if ($marclist[$i] eq "biblioitems.isbn") {
+ $value[$i] =~ s/-//g;
+ }
if ($searchdesc) { # don't put the and_or on the 1st search
term
$searchdesc .= $and_or[$i].$excluding[$i]."
".($marclist[$i]?$marclist[$i]:"* ")." ".$operator[$i]." ".$value[$i]." " if
($value[$i]);
} else { $searchdesc =
$excluding[$i].($marclist[$i]?$marclist[$i]:"* ")." ".$operator[$i]."
".$value[$i]." " if ($value[$i]);
- [Koha-cvs] koha/opac opac-search.pl [rel_2_2],
Joshua Ferraro <=