[Koha-patches] [PATCH] (bug #1578) fix a little error in code
Tue May 12 02:05:22 CEST 2009
From: Nahuel ANGELINETTI <nahuel.angelinetti at biblibre.com>
This one, fix the use of "or" instead of "||", else a warning is raised.
Signed-off-by: Galen Charlton <galen.charlton at liblime.com>
---
C4/Biblio.pm | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/C4/Biblio.pm b/C4/Biblio.pm
index e071c18..684fed5 100644
--- a/C4/Biblio.pm
+++ b/C4/Biblio.pm
@@ -1132,10 +1132,10 @@ sub GetCOinSBiblio {
}
}
$title = "&rft.btitle=".$record->subfield('245','a');
- $pubyear = $record->subfield('260','c') or "";
- $publisher = $record->subfield('260','b') or "";
- $isbn = $record->subfield('020','a') or "";
- $issn = $record->subfield('022','a') or "";
+ $pubyear = $record->subfield("260","c") || "";
+ $publisher = $record->subfield('260','b') || "";
+ $isbn = $record->subfield('020','a') || "";
+ $issn = $record->subfield('022','a') || "";
}
my $coins_value = "ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3A$mtx$genre$title&rft.isbn=$isbn&rft.issn=$issn&rft.aulast=$aulast&rft.aufirst=$aufirst$oauthors&rft.pub=$publisher&rft.date=$pubyear";
--
1.5.6.5
More information about the Koha-patches
mailing list