@@ -, +, @@
- 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.
---
C4/Serials.pm | 2 --
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++--
koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing.tt | 9 +++++++--
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt | 4 ++--
4 files changed, 11 insertions(+), 8 deletions(-)
--- a/C4/Serials.pm
+++ a/C4/Serials.pm
@@ -785,8 +785,6 @@ sub GetLatestSerials {
my @serials;
while ( my $line = $sth->fetchrow_hashref ) {
$line->{ "status" . $line->{status} } = 1; # fills a "statusX" value, used for template status select list
- $line->{planneddate} = output_pref( { dt => dt_from_string( $line->{planneddate} ), dateonly => 1 } );
- $line->{publisheddate} = output_pref( { dt => dt_from_string( $line->{publisheddate} ), dateonly => 1 } );
push @serials, $line;
}
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
@@ -518,8 +518,8 @@
[% FOREACH latestserial IN subscription.latestserials %]
[% latestserial.serialseq | html %]
-
[% latestserial.planneddate | html %]
-
[% latestserial.publisheddate | html %]
+
[% latestserial.planneddate | $KohaDates %]
+
[% latestserial.publisheddate | $KohaDates %]
[% IF ( latestserial.status1 ) %]Expected[% END %]
[% IF ( latestserial.status2 ) %]Arrived[% END %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/routing.tt
@@ -1,3 +1,4 @@
+[% USE KohaDates %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
Koha › Serials › [% title | html %] › [% IF ( op ) %]Create routing list[% ELSE %]Edit routing list[% END %]
@@ -35,8 +36,12 @@