View | Details | Raw Unified | Return to bug 32712
Collapse All | Expand All

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc (-9 / +9 lines)
Lines 19-27 Link Here
19
    [% SET transfertto = transfer.tobranch %]
19
    [% SET transfertto = transfer.tobranch %]
20
[% END %]
20
[% END %]
21
21
22
[% SET waiting = item.holds.waiting.count %]
22
[% SET checkout = item.checkout %]
23
[% SET waiting  = item.holds.waiting.count %]
23
[% IF include_schema_org %]
24
[% IF include_schema_org %]
24
    [% IF item.damaged or item.checkout.date_due or item.itemlost or transfertwhen or waiting %]
25
    [% IF item.damaged or checkout or item.itemlost or transfertwhen or waiting %]
25
        <link property="availability" href="http://schema.org/OutOfStock" />
26
        <link property="availability" href="http://schema.org/OutOfStock" />
26
    [% ELSIF item.withdrawn %]
27
    [% ELSIF item.withdrawn %]
27
        <link property="availability" href="http://schema.org/Discontinued" />
28
        <link property="availability" href="http://schema.org/Discontinued" />
Lines 42-67 Link Here
42
    [% END %]
43
    [% END %]
43
[% END %]
44
[% END %]
44
45
45
[% SET datedue = item.checkout.date_due %]
46
[% IF checkout %]
46
[% SET onsite_checkout = item.checkout.onsite_checkout %]
47
    [% SET checkout_patron = checkout.patron %]
48
    [% SET onsite_checkout = checkout.onsite_checkout %]
47
49
48
[% IF datedue %]
49
    [% SET itemavailable = 0 %]
50
    [% SET itemavailable = 0 %]
50
    [% IF onsite_checkout %]
51
    [% IF onsite_checkout %]
51
        [% IF ( OPACShowCheckoutName ) %]
52
        [% IF ( OPACShowCheckoutName ) %]
52
            <span class="item-status checkedout">Currently in local use by [% item.firstname | html %] [% item.surname | html %] [% IF ( item.cardnumber ) %]([% item.cardnumber | html %])[% END %]</span>
53
            <span class="item-status checkedout">Currently in local use by [% checkout_patron.firstname | html %] [% checkout_patron.surname | html %] [% IF ( checkout_patron.cardnumber ) %]([% checkout_patron.cardnumber | html %])[% END %]</span>
53
        [% ELSE %]
54
        [% ELSE %]
54
            <span class="item-status checkedout">Currently in local use</span>
55
            <span class="item-status checkedout">Currently in local use</span>
55
        [% END %]
56
        [% END %]
56
    [% ELSE %]
57
    [% ELSE %]
57
        [% IF ( OPACShowCheckoutName ) %]
58
        [% IF ( OPACShowCheckoutName ) %]
58
            <span class="item-status checkedout">Checked out to [% item.firstname | html %] [% item.surname | html %] [% IF ( item.cardnumber ) %]([% item.cardnumber | html %])[% END %]</span>
59
            <span class="item-status checkedout">Checked out to [% checkout_patron.firstname | html %] [% checkout_patron.surname | html %] [% IF ( checkout_patron.cardnumber ) %]([% checkout_patron.cardnumber | html %])[% END %]</span>
59
        [% ELSE %]
60
        [% ELSE %]
60
            <span class="item-status checkedout">Checked out</span>
61
            <span class="item-status checkedout">Checked out</span>
61
        [% END %]
62
        [% END %]
62
    [% END %]
63
    [% END %]
63
    [% IF show_recall_link %]
64
    [% IF show_recall_link %]
64
        [% IF datedue && logged_in_user.borrowernumber != issue.borrowernumber %]
65
        [% IF logged_in_user.borrowernumber != issue.borrowernumber %]
65
            <a href="/cgi-bin/koha/opac-recall.pl?biblionumber=[% item.biblionumber | uri %]" class="btn btn-default btn-xs">Recall</a>
66
            <a href="/cgi-bin/koha/opac-recall.pl?biblionumber=[% item.biblionumber | uri %]" class="btn btn-default btn-xs">Recall</a>
66
        [% END %]
67
        [% END %]
67
    [% END %]
68
    [% END %]
68
- 

Return to bug 32712