Bugzilla – Attachment 79510 Details for
Bug 20241
Fix display of publication year in subscription record search for MARC21
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20241: Fix display of publication year in subscription record search for MARC21
Bug-20241-Fix-display-of-publication-year-in-subsc.patch (text/plain), 1.65 KB, created by
Martin Renvoize (ashimema)
on 2018-09-27 13:48:24 UTC
(
hide
)
Description:
Bug 20241: Fix display of publication year in subscription record search for MARC21
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2018-09-27 13:48:24 UTC
Size:
1.65 KB
patch
obsolete
>From 849be07c32e297627d9acd8062bdc31c0fbc92d1 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <katrin.fischer.83@web.de> >Date: Sat, 11 Aug 2018 23:55:35 +0000 >Subject: [PATCH] Bug 20241: Fix display of publication year in subscription > record search for MARC21 > >The old problem: UNIMARC uses biblio.publicationyear, MARC21 uses >biblio.copyrightdate. Patch adds a fallback, if there is nothing >in publicationyear, copyrightdate will be displayed. > >To test: > - In a MARC21 database > - Add a new subscription > - Search for records > - Verify the publication year column remains empty > - Apply patch > - Repeat search > - Verify that the year now shows > >https://bugs.koha-community.org/show_bug.cgi?id=20421 > >Signed-off-by: Michal Denar <black23@gmail.com> >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > serials/subscription-bib-search.pl | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/serials/subscription-bib-search.pl b/serials/subscription-bib-search.pl >index 88de8748c4..28913a31a0 100755 >--- a/serials/subscription-bib-search.pl >+++ b/serials/subscription-bib-search.pl >@@ -127,7 +127,7 @@ if ( $op eq "do_search" && $query ) { > $resultsloop{biblionumber} = $biblio->{'biblionumber'}; > $resultsloop{author} = $biblio->{'author'}; > $resultsloop{publishercode} = $biblio->{'publishercode'}; >- $resultsloop{publicationyear} = $biblio->{'publicationyear'}; >+ $resultsloop{publicationyear} = $biblio->{'publicationyear'} ? $biblio->{'publicationyear'} : $biblio->{'copyrightdate'}; > $resultsloop{issn} = $biblio->{'issn'}; > > push @results, \%resultsloop; >-- >2.18.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 20241
:
77735
|
79361
| 79510