Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[% USE ItemTypes %]
[% BLOCK detail %]
<p style="font-size: 1.1em; border-bottom: 1px solid black;">
[% IF checkout.item.biblio.author %]<i>[% checkout.item.biblio.author | $Remove_MARC_punctuation %]</i>:[% END %]
<strong>[% checkout.item.biblio.title | $Remove_MARC_punctuation %]</strong>
[% record = checkout.item.biblio.metadata.record %]
[% field787 = record.field('787') %]
[% IF field787 %].
[% field787.subfield('t') %] [% field787.subfield('g') %].
[% END %]
[%- IF checkout.item.enumchron %], [% checkout.item.enumchron %][% END %]
([% ItemTypes.GetDescription(checkout.item.effective_itemtype) %])
<br />
Půjčeno od: [% checkout.issuedate | $KohaDates %]<br />
Vrátit do: <b>[% checkout.date_due | $KohaDates %]</b><br />
[% branch.branchname %]
[% biblio = checkout.item.biblio %]
[% IF (biblio.frameworkcode == 'PE') %]
[% IF checkout.item.has_pending_hold %]
<i><strong>Rezervováno</strong>, tuto výpůjčku nebude možné prodloužit</i>
[% END %]
[% ELSIF 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