Lines 43-52
Link Here
|
43 |
[% IF !item.isa('Koha::Item') AND item.avail_for_recall %]<a href="/cgi-bin/koha/opac-recall.pl?biblionumber=[% item.biblionumber | uri %]" class="btn btn-default btn-xs">Recall</a>[% END %] |
43 |
[% IF !item.isa('Koha::Item') AND item.avail_for_recall %]<a href="/cgi-bin/koha/opac-recall.pl?biblionumber=[% item.biblionumber | uri %]" class="btn btn-default btn-xs">Recall</a>[% END %] |
44 |
[% END %] |
44 |
[% END %] |
45 |
|
45 |
|
46 |
[% IF NOT ( item.isa('Koha::Item') ) AND item.transfertwhen %] [%# transfertwhen is set in C4::Search, do not have it for course reserves %] |
46 |
[% IF item.isa('Koha::Item') %] |
|
|
47 |
[% SET transfer = item.get_transfer %] |
48 |
[% IF transfer AND transfer.in_transit %] |
49 |
[% SET transfertwhen = transfer.datesent %] |
50 |
[% SET transfertfrom = transfer.frombranch %] |
51 |
[% SET transfertto = transfer.tobranch %] |
52 |
[% END %] |
53 |
[% ELSE %] |
54 |
[% SET transfertwhen = item.transfertwhen %] |
55 |
[% SET transfertfrom = item.transfertfrom %] |
56 |
[% SET transfertto = item.transfertto %] |
57 |
[% END %] |
58 |
[% IF transfertwhen %] [%# transfertwhen is set in C4::Search, do not have it for course reserves %] |
47 |
[% SET itemavailable = 0 %] |
59 |
[% SET itemavailable = 0 %] |
48 |
<span class="item-status intransit">In transit from [% Branches.GetName( item.transfertfrom ) | html %] |
60 |
<span class="item-status intransit">In transit from [% Branches.GetName( transfertfrom ) | html %] |
49 |
to [% Branches.GetName( item.transfertto ) | html %] since [% item.transfertwhen | $KohaDates %]</span> |
61 |
to [% Branches.GetName( transfertto ) | html %] since [% transfertwhen | $KohaDates %]</span> |
50 |
[% END %] |
62 |
[% END %] |
51 |
|
63 |
|
52 |
[% IF (item.isa('Koha::Item') AND item.holds.waiting.count) OR (NOT item.isa('Koha::Item') AND item.waiting) %] |
64 |
[% IF (item.isa('Koha::Item') AND item.holds.waiting.count) OR (NOT item.isa('Koha::Item') AND item.waiting) %] |