[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Koha-cvs] koha/z3950 search.pl [R_2-2-7-1]
From: |
paul poulain |
Subject: |
[Koha-cvs] koha/z3950 search.pl [R_2-2-7-1] |
Date: |
Tue, 06 Mar 2007 15:19:41 +0000 |
CVSROOT: /sources/koha
Module name: koha
Branch: R_2-2-7-1
Changes by: paul poulain <tipaul> 07/03/06 15:19:41
Modified files:
z3950 : search.pl
Log message:
fixing z3950 search errors
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/z3950/search.pl?cvsroot=koha&only_with_tag=R_2-2-7-1&r1=1.3.2.11&r2=1.3.2.11.2.1
Patches:
Index: search.pl
===================================================================
RCS file: /sources/koha/koha/z3950/search.pl,v
retrieving revision 1.3.2.11
retrieving revision 1.3.2.11.2.1
diff -u -b -r1.3.2.11 -r1.3.2.11.2.1
--- search.pl 22 Nov 2006 10:24:35 -0000 1.3.2.11
+++ search.pl 6 Mar 2007 15:19:41 -0000 1.3.2.11.2.1
@@ -102,15 +102,15 @@
my @oResult;
my $s=0;
- if ($isbn ne "/" || $issn ne "/") {
+ if ($isbn || $issn) {
$attr='1=7';
# warn "isbn : $isbn";
- $term=$isbn if ($isbn ne "/");
- $term=$issn if ($issn ne "/");
- } elsif ($title ne "/") {
- $attr='1=4 @attr 4=1 ';
+ $term=$isbn if ($isbn);
+ $term=$issn if ($issn);
+ } elsif ($title) {
+ $attr='1=4 ';
$term=$title;
- } elsif ($author ne "/") {
+ } elsif ($author) {
$attr='1=1003';
$term=$author;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Koha-cvs] koha/z3950 search.pl [R_2-2-7-1],
paul poulain <=