Bugzilla – Attachment 186373 Details for
Bug 40759
Wrong date format in subscription brief history in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40759: Correctly format dates in subscription brief history in OPAC
Bug-40759-Correctly-format-dates-in-subscription-b.patch (text/plain), 3.14 KB, created by
Katrin Fischer
on 2025-09-11 12:13:05 UTC
(
hide
)
Description:
Bug 40759: Correctly format dates in subscription brief history in OPAC
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2025-09-11 12:13:05 UTC
Size:
3.14 KB
patch
obsolete
>From 0879ff869a64d64d9eb8bb197a19722b8e1b32b5 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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. > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > .../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 @@ > <div id="subscriptionline[% subscription_LOO.subscriptionid | html %]" class="subscriptionline"> > <h2>Subscription information for [% subscription_LOO.bibliotitle | html %]</h2> > <p> >- <span>The current subscription began on [% subscription_LOO.startdate | html %] and is issued</span> >+ <span>The current subscription began on [% subscription_LOO.startdate | $KohaDates %] and is issued</span> > [% IF ( subscription_LOO.periodicity1 ) %] > <span>twice per day</span> > [% END %] >@@ -120,9 +121,9 @@ > [% IF ( subscription_LOO.weeklength ) %]<span>for [% subscription_LOO.weeklength | html %] weeks</span>[% END %] > [% IF ( subscription_LOO.monthlength ) %]<span>for [% subscription_LOO.monthlength | html %] months</span>[% END %] > </p> >- <p>The first subscription was started on [% subscription_LOO.histstartdate | html %]</p> >+ <p>The first subscription was started on [% subscription_LOO.histstartdate | $KohaDates %]</p> > [% IF ( subscription_LOO.histenddate ) %] >- <p>The subscription expired on [% subscription_LOO.histenddate | html %]</p> >+ <p>The subscription expired on [% subscription_LOO.histenddate | $KohaDates %]</p> > [% END %] > > <h3>[% subscription_LOO.branchname | html %]</h3> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40759
:
186259
| 186373