From efaa4bb82c92c8f21974d40d4c95a5a979026709 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Mon, 9 Mar 2009 14:34:27 +0100 Subject: [PATCH] (bug #1578) fix a little error in code This one, fix the use of "or" instead of "||", else a warning is raised. Signed-off-by: Galen Charlton --- C4/Biblio.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index e071c18677..684fed5707 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"; -- 2.39.5