Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember-receipt.tt
Jonathan Druart 5825026448 Bug 21526: uri escape TT variables when used in 'a href'
This patch has been generated with the script provided on bug 21576.
It only affects variable used in the href attribute of a link *when*
href it the first attribute of the node (grep "a href")

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-10-26 17:09:57 +00:00

78 lines
3.1 KiB
Text

[% USE raw %]
[% USE Asset %]
[% USE Koha %]
[% SET footerjs = 1 %]
[% INCLUDE 'doc-head-open.inc' %]
<title>Print Receipt for [% cardnumber | html %]</title>
[% INCLUDE 'doc-head-close.inc' %]
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon | html %][% ELSE %][% interface | html %]/[% theme | html %]/img/favicon.ico[% END %]" type="image/x-icon" />
[% Asset.css("css/print.css") | $raw %]
</head>
<body id="pat_moremember-receipt" class="pat">
<div id="receipt">
<h3>[% LibraryName | html %]</h3>
[% IF ( branchname ) %][% branchname | html %]<br />[% END %]
Checked out to [% firstname | html %] [% surname | html %] <br />
(<a href="/cgi-bin/koha/circ/circulation.pl?findborrower=[% cardnumber | uri %]">[% cardnumber | html %]</a>)<br />
[% todaysdate | html %]<br />
[% IF ( quickslip ) %]
<h4>Checked out today</h4>
[% FOREACH issueloo IN issueloop %]
[% IF ( issueloo.red ) %][% ELSE %]
[% IF ( issueloo.today ) %]
<p><a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issueloo.itemnumber | uri %]&amp;biblionumber=[% issueloo.biblionumber | uri %]&amp;bi=[% issueloo.biblioitemnumber | uri %]">[% issueloo.title | html %]</a><br />
Barcode: [% issueloo.barcode | html %]<br />
Date due: [% issueloo.date_due | html %]<br /></p>
[% END %]
[% END %]
[% END %]
[% ELSE %]
<h4>Checked out</h4>
[% FOREACH issueloo IN issueloop %]
[% IF ( issueloo.red ) %][% ELSE %]
<p><a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issueloo.itemnumber | uri %]&amp;biblionumber=[% issueloo.biblionumber | uri %]&amp;bi=[% issueloo.biblioitemnumber | uri %]">[% issueloo.title | html %]</a><br />
Barcode: [% issueloo.barcode | html %]<br />
Date due: [% issueloo.date_due | html %]<br /></p>
[% END %]
[% END %]
[% END %]
[% IF ( quickslip ) %]
[% ELSE %]
[% IF ( overdues_exist ) %]
<h4>Overdues</h4>
[% FOREACH issueloo IN issueloop %]
[% IF ( issueloo.red ) %]
<p><a href="/cgi-bin/koha/catalogue/detail.pl?item=[% issueloo.itemnumber | uri %]&amp;biblionumber=[% issueloo.biblionumber | uri %]&amp;bi=[% issueloo.biblioitemnumber | uri %]">[% issueloo.title | html %]</a><br />
Barcode: [% issueloo.barcode | html %]<br />
Date due: [% issueloo.date_due | html %]</p>
[% END %]
[% END %]
[% END %]
[% END %]
[% IF ( koha_news_count ) %]
<hr><h4 style="text-align: center; font-style:italic;">News</h4>
<!-- [% koha_news_count | html %] recent news item(s) -->
[% FOREACH koha_new IN koha_news %]
<div class="newsitem" id="news[% koha_new.idnew | html %]"><h5 style="margin-bottom: 1px; margin-top: 1px"><b>[% koha_new.title | html %]</b></h5>
<p style="margin-bottom: 1px; margin-top: 1px">[% koha_new.content | $raw %]</p>
<p class="newsfooter" style="font-size: 8pt; font-style:italic; margin-bottom: 1px; margin-top: 1px"> Posted on [% koha_new.newdate | html %]
</p><hr /></div>
[% END %]
[% END %]
[% MACRO jsinclude BLOCK %]
[% INCLUDE 'slip-print.inc' #printThenClose %]
[% END %]
[% INCLUDE 'intranet-bottom.inc' %]