]> git.koha-community.org Git - koha.git/commit
Bug 22932: GetLatestSerials should not return formatted date
authorOwen Leonard <oleonard@myacpl.org>
Fri, 17 May 2019 13:19:33 +0000 (13:19 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 30 May 2019 10:16:12 +0000 (10:16 +0000)
commit1cdf657c057a7a565016df28a17151a2f4fce134
tree89a0b987d9c7a4fd531e03badcd3da721ee37782
parentbb06060c4c3e0f4393f24096400ee4c8312a44ec
Bug 22932: GetLatestSerials should not return formatted date

This patch updates GetLatestSerials in Serials.pm to remove date
formatting. Formatting of dates should be done in the template using
$KohaDates.

To test, apply the patch and locate a bibliographic record in the staff
client which has a subscription with issues.

 - On the bibliographic detail page for that record, view the
   "Subscriptions" tab. Dates in the table of recent issues should be
   formatted correctly.
 - View the details for the subscription in the Serials module. Create
   or edit a routing list for that serial. In the "Issue" dropdown the
   issue dates should be formatted correctly.
 - View the bibliographic detail page for the record in the OPAC. Open
   the "Subscriptions" tab. In the table of recent issues publication
   date and received date should be formatted correctly. The table
   should sort correctly on these dates.

Note: Although opac-ISBDdetail.pl calls GetLatestSerials, as far as I
can tell there is no serial-related output to update. The code appears
to be unused.

Signed-off-by: Maryse Simard <maryse.simard@inlibro.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Serials.pm
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing.tt
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt