Bug 5103: Format dates in MARC detail using dateformat syspref
authorAleisha Amohia <aleishaamohia@hotmail.com>
Wed, 26 Feb 2020 02:52:24 +0000 (02:52 +0000)
committerJoy Nelson <joy@bywatersolutions.com>
Fri, 3 Apr 2020 17:26:08 +0000 (17:26 +0000)
commit16d756791ece7325f4541b7f2b7caaee7c9c12c5
treea7b63f2168ff90fbc6682965606fd07ef9ca169f
parent2c2e229709e723c7604fecf0a5607486ed1e6d14
Bug 5103: Format dates in MARC detail using dateformat syspref

This patch fixes the formatting of dates on the following pages:
- catalogue/MARCdetail.pl (staff)
- cataloguing/additem.pl (staff)
- opac-MARCdetail.pl (opac)

To test:
1) Ensure that the following fields are visible in the opac, intranet
and editor. You may need to edit the subfields in your default
bibliographic framework
952$d date accessioned
952$q date due/on loan
952$r date last seen
952$s date last borrowed
952$w replacement price date

Also ensure you have dateformat system preference set

2) Go to cataloguing/additem.pl for a biblio. Fill in the fields above
if required. Save
3) Remain on cataloguing/additem.pl. Notice the items table at the top
of the page, the dates are in the generic yyyy-mm-dd format
4) Go to catalogue/MARCdetail.pl for that biblio. Notice dates in wrong
format
5) View this biblio in the opac opac-MARCdetail.pl. Scroll to bottom to
items table. Notice dates in wrong format.
6) Apply patch, restart memcached and plack and refresh pages
7) Dates should now be formatted according to dateformat preference
8) Confirm that changing the preference changes the format of the dates

Sponsored-by: Catalyst IT
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
catalogue/MARCdetail.pl
cataloguing/additem.pl
opac/opac-MARCdetail.pl