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> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commit96cf2d9935) Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de> (cherry picked from commit5da371a3d7) Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
parent
5982361496
commit
6591dd5fee
|
|
@ -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 ) %]
|
||||
|
|
@ -55,7 +56,7 @@
|
|||
<div id="subscriptionline[% subscription_LOO.subscriptionid | html %]" class="subscriptionline">
|
||||
<caption><h2>Subscription information for [% subscription_LOO.bibliotitle | html %]</h2><caption>
|
||||
<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 %]
|
||||
|
|
@ -121,9 +122,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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue