From 0dab9b927e149792bfd3f280e12426a328bedf24 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 16 Sep 2019 17:22:17 -0300 Subject: [PATCH] Bug 23627: Reduce Koha::Biblio->get_coins noise if no 245 Signed-off-by: Tomas Cohen Arazi Signed-off-by: Maryse Simard Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize (cherry picked from commit 8766689d34c63416f38a8248367483c573c5036e) Signed-off-by: Fridolin Somers --- Koha/Biblio.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index f38a101e27..708520e423 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -579,7 +579,7 @@ sub get_coins { push @authors, $au; } } - $title = $record->subfield( '245', 'a' ) . $record->subfield( '245', 'b' ); + $title = $record->subfield( '245', 'a' ) . ( $record->subfield( '245', 'b' ) // ''); if ($titletype eq 'a') { $pubyear = $record->field('008') || ''; $pubyear = substr($pubyear->data(), 7, 4) if $pubyear; -- 2.39.5