This one, fix the use of "or" instead of "||", else a warning is raised.
---
 C4/Biblio.pm |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/C4/Biblio.pm b/C4/Biblio.pm
index c5359d3..a650bd4 100644
--- a/C4/Biblio.pm
+++ b/C4/Biblio.pm
@@ -990,10 +990,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.3

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to