From 22cb14460f5ab7f47ba92383a3f2e64831de7d50 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 Signed-off-by: Henri-Damien LAURENT --- C4/Biblio.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 9b427e8bc4..62492520b6 100755 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1119,11 +1119,11 @@ sub GetCOinSBiblio { $oauthors .= "&rft.au=$au"; } } - $title = "&rft.btitle=".$record->subfield('245','a'); - $pubyear = $record->subfield('260','c'); - $publisher = $record->subfield('260','b'); - $isbn = $record->subfield('020','a'); - $issn = $record->subfield('022','a'); + $title = "&rft.btitle=".$record->subfield('245','a'); + $pubyear = $record->subfield("260","c") || ""; + $publisher = $record->subfield('260','b') || ""; + $isbn = $record->subfield('020','a') || ""; + $issn = $record->subfield('022','a') || ""; } $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