From bde127be50c3a44443f46425726523fc87c5be04 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 8 Sep 2025 16:00:28 +0200 Subject: [PATCH] Bug 40759: Correctly format dates in subscription brief history in OPAC Test plan: To test: * Add a subscription and receive 1-3 issues * Set the DateFormat system preference to format unlike yyyy-mm-dd * Go to the OPAC * Verify dates show corectly on the subscriptions tab itself * Click on more details * Verify dates how correctly in the full history * Verify the dates on the brief history show correctly. --- .../opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt index 040682f9994..680fabecd87 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-serial-issues.tt @@ -1,5 +1,6 @@ [% USE raw %] [% USE Koha %] +[% USE KohaDates %] [% USE AdditionalContents %] [% USE AuthorisedValues %] [% SET OpacNav = AdditionalContents.get( location => "OpacNav", lang => lang, library => logged_in_user.branchcode || default_branch, blocktitle => 0 ) %] @@ -54,7 +55,7 @@

Subscription information for [% subscription_LOO.bibliotitle | html %]

- The current subscription began on [% subscription_LOO.startdate | html %] and is issued + The current subscription began on [% subscription_LOO.startdate | $KohaDates %] and is issued [% IF ( subscription_LOO.periodicity1 ) %] twice per day [% END %] @@ -120,9 +121,9 @@ [% IF ( subscription_LOO.weeklength ) %]for [% subscription_LOO.weeklength | html %] weeks[% END %] [% IF ( subscription_LOO.monthlength ) %]for [% subscription_LOO.monthlength | html %] months[% END %]

-

The first subscription was started on [% subscription_LOO.histstartdate | html %]

+

The first subscription was started on [% subscription_LOO.histstartdate | $KohaDates %]

[% IF ( subscription_LOO.histenddate ) %] -

The subscription expired on [% subscription_LOO.histenddate | html %]

+

The subscription expired on [% subscription_LOO.histenddate | $KohaDates %]

[% END %]

[% subscription_LOO.branchname | html %]

-- 2.34.1