Bug 20241

Summary: Fix display of publication year in subscription record search for MARC21
Product: Koha Reporter: Katrin Fischer <katrin.fischer>
Component: SerialsAssignee: Katrin Fischer <katrin.fischer>
Status: CLOSED FIXED QA Contact: Martin Renvoize <martin.renvoize>
Severity: normal    
Priority: P5 - low CC: black23, colin.campbell, fridolin.somers, martin.renvoize, nick
Version: MainKeywords: Academy
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Attachments: Bug 20241: Fix display of publication year in subscription record search for MARC21
Bug 20241: Fix display of publication year in subscription record search for MARC21
Bug 20241: Fix display of publication year in subscription record search for MARC21

Description Katrin Fischer 2018-02-18 14:01:51 UTC
When creating a new subscription and searching for a bibliographic record, the result list will never show the publication year even if one exists.

I think this might be because it attempts to show publicationyear (used for UNIMARC installations) instead of copyrightdate which is used for MARC21 installations.
Comment 1 Katrin Fischer 2018-08-12 21:31:47 UTC
Created attachment 77735 [details] [review]
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
Comment 2 Michal Denar 2018-09-25 10:50:10 UTC
Created attachment 79361 [details] [review]
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>
Comment 3 Martin Renvoize 2018-09-27 13:48:24 UTC
Created attachment 79510 [details] [review]
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>
Comment 4 Martin Renvoize 2018-09-27 13:48:51 UTC
Trivial Fix, Passing QA
Comment 5 Nick Clemens 2018-09-28 19:56:10 UTC
Awesome work all!

Pushed to master for 18.11
Comment 6 Martin Renvoize 2018-10-03 09:37:39 UTC
Pushed to 18.05.x for 18.05.05
Comment 7 Fridolin Somers 2018-10-10 10:08:06 UTC
Pushed to 17.11.x for 17.11.11