Skip to content

Instantly share code, notes, and snippets.

@xmorave2
Created February 11, 2019 14:08
Show Gist options
  • Save xmorave2/45174166f53377bad14f3ebf5e816414 to your computer and use it in GitHub Desktop.
Save xmorave2/45174166f53377bad14f3ebf5e816414 to your computer and use it in GitHub Desktop.
issueslip.tt
[% USE KohaDates %]
[% BLOCK detail %]
<p style="font-size: 1.1em; border-bottom: 1px dotted black;">
[% IF checkout.item.biblio.author %]<i>[% checkout.item.biblio.author | remove(',$') %]</i>:[% END %]
<strong>[% checkout.item.biblio.title | remove(' \/$') | remove(' :$') %]</strong>
[%- IF checkout.item.enumchron %], [% checkout.item.enumchron %][% END %]
<br />
Půjčeno od: [% checkout.issuedate | $KohaDates %]<br />
Vrátit do: <b>[% checkout.date_due | $KohaDates %]</b><br />
[% branch.branchname %]
[% IF checkout.item.biblio.holds.count %]<br /><i><strong>Rezervováno</strong>, tuto výpůjčku nebude možné prodloužit</i>[% END %]
</p>
[% END # Block %]
<small>Tisk: [% today | $KohaDates with_hours=1 %]</small>
<img src="https://www.knihovna-uo.cz/img/MKUO_cerne.png" style="width: 6cm" />
www.knihovna-uo.cz<br />
[% branch.branchphone %]<br />
<p style="font-size: 1.2em; border-bottom: 1px solid black;">
Čtenář: <strong>[% borrower.firstname %] [% borrower.surname %]</strong> ([% borrower.cardnumber %]) <br />
Počet výpůjček: <strong>[% checkouts.count %]</strong><br />
</p>
[% FOREACH checkout IN checkouts %]
[% PROCESS detail checkout = checkout %]
[% END %]
[% IF overdues.count %]
[% FOREACH overdue IN overdues %]
[% PROCESS detail checkout = overdue %]
[% END %]
[% END # if overdues %]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment