From: Nahuel ANGELINETTI <[email protected]> This one, fix the use of "or" instead of "||", else a warning is raised.
Signed-off-by: Galen Charlton <[email protected]> --- 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 _______________________________________________ Koha-patches mailing list [email protected] http://lists.koha.org/mailman/listinfo/koha-patches
