Dear all, Please find attached another patch similar in nature to 33906169669880dccd61c0f4bdfacab63e5463b0
Sébastien.
>From 50990e0076066bc0a1a4dd98380bc4f3207d7a2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Hinderer?= <[email protected]> Date: Sat, 31 Oct 2009 19:14:40 +0100 Subject: [PATCH] C4::Biblio: initializes a few other variables correctly. Content-Type: text/plain; charset="utf-8" --- C4/Biblio.pm | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 161ec62..36b32fd 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1106,8 +1106,8 @@ sub GetCOinSBiblio { $genre = ($mtx eq 'dc') ? "&rft.type=$genre" : "&rft.genre=$genre"; # Setting datas - $aulast = $record->subfield('700','a'); - $aufirst = $record->subfield('700','b'); + $aulast = $record->subfield('700','a') || ''; + $aufirst = $record->subfield('700','b') || ''; $oauthors = "&rft.au=$aufirst $aulast"; # others authors if($record->field('200')){ @@ -1117,9 +1117,9 @@ sub GetCOinSBiblio { } $title = ( $mtx eq 'dc' ) ? "&rft.title=".$record->subfield('200','a') : "&rft.title=".$record->subfield('200','a')."&rft.btitle=".$record->subfield('200','a'); - $pubyear = $record->subfield('210','d'); - $publisher = $record->subfield('210','c'); - $isbn = $record->subfield('010','a'); + $pubyear = $record->subfield('210','d') || ''; + $publisher = $record->subfield('210','c') || ''; + $isbn = $record->subfield('010','a') || ''; $issn = $record->subfield('011','a') || ''; }else{ # MARC21 need some improve -- 1.6.5
_______________________________________________ Koha-patches mailing list [email protected] http://lists.koha.org/mailman/listinfo/koha-patches
