[Koha-bugs] [Bug 15284] Switch default ISSUESLIP notice to Template Toolkit
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jul 19 21:13:52 CEST 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=15284
Michal Denar <black23 at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #91659|0 |1
is obsolete| |
--- Comment #7 from Michal Denar <black23 at gmail.com> ---
Created attachment 91664
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91664&action=edit
Bug 15284 - Switch default ISSUESLIP notice to Template Toolkit
Test Plan:
1) Apply this patch
2) Replace your ISSUESLIP with the following:
[% USE KohaDates %]
<h3>[% branch.branchname %]</h3>
Checked out to [% borrower.title %] [% borrower.firstname %] [%
borrower.initials %] [% borrower.surname %] <br />
([% borrower.cardnumber %]) <br />
[% today | $KohaDates %]<br />
<h4>Checked Out</h4>
[% FOREACH checkout IN borrower.checkouts %]
[% IF ! checkout.is_overdue %]
<p>
[% checkout.item.biblio.title %] <br />
Barcode: [% checkout.item.barcode %]<br />
Date due: [% checkout.date_due | $KohaDates %]<br />
</p>
[% END %]
[% END %]
<h4>Overdues</h4>
[% FOREACH checkout IN borrower.checkouts %]
[% IF checkout.is_overdue %]
<p>
[% checkout.item.biblio.title %] <br />
Barcode: [% checkout.item.barcode %]<br />
Date due: [% checkout.date_due | $KohaDates %]<br />
</p>
[% END %]
[% END %]
<hr>
<h4 style="text-align: center; font-style:italic;">News</h4>
<news>
<div class="newsitem">
<h5 style="margin-bottom: 1px; margin-top: 1px"><b><<opac_news.title>></b></h5>
<p style="margin-bottom: 1px; margin-top: 1px"><<opac_news.new>></p>
<p class="newsfooter" style="font-size: 8pt; font-style:italic; margin-bottom:
1px; margin-top: 1px">Posted on <<opac_news.timestamp>></p>
<hr />
</div>
</news>
3) Print a slip for a patron, note the data is complete
Signed-off-by: Michal Denar <black23 at gmail.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list