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 commit 96cf2d9935)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
4ba00dc292
commit
5da371a3d7
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in New Issue