[Koha] How to show description of item type in ISSUESLIP
Michael Kuhn
mik at adminkuhn.ch
Wed May 29 01:11:29 NZST 2019
Hi Jonathan
> Replace the whole checkedout "loop" with the FOR loop
> The example in the test file should give you an idea about how to do
> that.
I have now replaced the original loop:
<checkedout>
<p>
<<biblio.title>> <<items.barcode>><br />
Fällig am: <<issues.date_due>><br />
</p>
</checkedout>
with the following:
[% FOREACH checkout IN checkouts %]
[%~ SET item = checkout.item %]
[%~ SET biblio = checkout.item.biblio %]
<p>[% biblio.title %] [% item.barcode %]<br />
[% SWITCH item.itype %]
[% CASE '01' %] Kinder-/Jugendbuch<br />
[% CASE '02' %] Sachbuch<br />
[% CASE '03' %] Schöne Literatur<br />
[% CASE '05' %] Cassetten<br />
[% CASE '06' %] CD<br />
[% CASE '07' %] Zeitschriften<br />
[% CASE '08' %] Präsenzmedien<br />
[% CASE '09' %] Fernleihen<br />
[% CASE '10' %] Kinder-/Jugendbuch Sene<br />
[% CASE '13' %] Englische Literatur<br />
[% CASE '14' %] Frz. Literatur<br />
[% CASE '16' %] Hörbuch / CD<br />
[% CASE '17' %] Wanderausstellung<br />
[% CASE '18' %] Krimi, Thriller<br />
[% CASE '19' %] Historische Literatur<br />
[% CASE '20' %] DVD<br />
[% CASE '21' %] Leihring<br />
[% CASE '22' %] Spiele<br />
[% CASE '23' %] Weihnachten<br />
[% CASE '24' %] E-Medium<br />
[% END %]
Fällig am: [% checkout.date_due %]<br /></p>
[% END %]
This works as expected.
Many thanks & best wishes: Michael
--
Geschäftsführer · Diplombibliothekar BBS, Informatiker eidg. Fachausweis
Admin Kuhn GmbH · Pappelstrasse 20 · 4123 Allschwil · Schweiz
T 0041 (0)61 261 55 61 · E mik at adminkuhn.ch · W www.adminkuhn.ch
More information about the Koha
mailing list