Bugzilla – Attachment 93178 Details for
Bug 23627
Koha::Biblio->get_coins too noisy if no 245$b
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23627: Reduce Koha::Biblio->get_coins noise if no 245
Bug-23627-Reduce-KohaBiblio-getcoins-noise-if-no-2.patch (text/plain), 1.06 KB, created by
Marcel de Rooy
on 2019-09-27 05:52:45 UTC
(
hide
)
Description:
Bug 23627: Reduce Koha::Biblio->get_coins noise if no 245
Filename:
MIME Type:
Creator:
Marcel de Rooy
Created:
2019-09-27 05:52:45 UTC
Size:
1.06 KB
patch
obsolete
>From 684a2703e3fc92a6ced54a527836093f3e7eace2 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 16 Sep 2019 17:22:17 -0300 >Subject: [PATCH] Bug 23627: Reduce Koha::Biblio->get_coins noise if no 245 >Content-Type: text/plain; charset=utf-8 > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Maryse Simard <maryse.simard@inlibro.com> > >Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> >--- > Koha/Biblio.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm >index 040126882c..1de0c6f417 100644 >--- a/Koha/Biblio.pm >+++ b/Koha/Biblio.pm >@@ -559,7 +559,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.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23627
:
92848
|
93060
| 93178