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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/recalls_waiting.tt (+4 lines)
Lines 146-151 Link Here
146
146
147
                </div>
147
                </div>
148
148
149
                [% ELSE %]
150
151
                    <div class="dialog message">No recalls have been made.</div>
152
149
                [% END %]
153
                [% END %]
150
154
151
            </div>
155
            </div>
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/item-status.inc (-1 / +1 lines)
Lines 38-44 Link Here
38
            <span class="item-status checkedout">Checked out</span>
38
            <span class="item-status checkedout">Checked out</span>
39
        [% END %]
39
        [% END %]
40
    [% END %]
40
    [% END %]
41
    [% IF loggedinusername %]<a href="/cgi-bin/koha/opac-recall.pl?itemnumber=[% item.itemnumber %]" class="btn btn-default btn-xs">Recall</a>[% END %]
41
    [% IF item.avail_for_recall %]<a href="/cgi-bin/koha/opac-recall.pl?itemnumber=[% item.itemnumber %]" class="btn btn-default btn-xs">Recall</a>[% END %]
42
[% END %]
42
[% END %]
43
43
44
[% IF NOT ( item.isa('Koha::Item') ) AND item.transfertwhen %] [%# transfertwhen is set in C4::Search, do not have it for course reserves %]
44
[% IF NOT ( item.isa('Koha::Item') ) AND item.transfertwhen %] [%# transfertwhen is set in C4::Search, do not have it for course reserves %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt (-2 / +2 lines)
Lines 245-255 Link Here
245
                                                <td class="title">
245
                                                <td class="title">
246
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber %]">[% ISSUE.title |html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield %][% END %]</a>
246
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber %]">[% ISSUE.title |html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield %][% END %]</a>
247
                                                    [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %]
247
                                                    [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %]
248
                                                    [% IF ( ISSUE.recalled ) %]This item has been recalled. Please return by the new due date.[% END %]
248
                                                    [% IF ( ISSUE.recalled ) %]<br><i>This item has been recalled. Please return by the new due date.</i>[% END %]
249
                                                </td>
249
                                                </td>
250
250
251
                                                <td class="author">[% ISSUE.author %]</td>
251
                                                <td class="author">[% ISSUE.author %]</td>
252
                                                [% IF ( ISSUE.overdue ) %]
252
                                                [% IF ( ISSUE.overdue || ISSUE.recalled ) %]
253
                                                    <td class="date_due overdue">
253
                                                    <td class="date_due overdue">
254
                                                        <span title="[% ISSUE.date_due %]">
254
                                                        <span title="[% ISSUE.date_due %]">
255
                                                            <span class="tdlabel">Date due:</span>
255
                                                            <span class="tdlabel">Date due:</span>
(-)a/opac/opac-detail.pl (+4 lines)
Lines 709-714 if ( not $viewallitems and @items > $max_items_to_display ) { Link Here
709
          if grep /^$itm->{itemnumber}$/, @itemnumbers_on_order;
709
          if grep /^$itm->{itemnumber}$/, @itemnumbers_on_order;
710
    }
710
    }
711
711
712
    if ( $itm->{datedue} && $borrowernumber && $itm->{borrowernumber} != $borrowernumber ) {
713
        $itm->{avail_for_recall} = 1;
714
    }
715
712
    my $itembranch = $itm->{$separatebranch};
716
    my $itembranch = $itm->{$separatebranch};
713
    if ($currentbranch and C4::Context->preference('OpacSeparateHoldings')) {
717
    if ($currentbranch and C4::Context->preference('OpacSeparateHoldings')) {
714
        if ($itembranch and $itembranch eq $currentbranch) {
718
        if ($itembranch and $itembranch eq $currentbranch) {
(-)a/opac/opac-user.pl (-2 / +1 lines)
Lines 249-255 if ( $pending_checkouts->count ) { # Useless test Link Here
249
            }
249
            }
250
        }
250
        }
251
251
252
        my $recall = Koha::Recalls->find($issue->{itemnumber});
252
        my $recall = Koha::Recalls->find({ itemnumber => $issue->{itemnumber} });
253
        if (defined $recall){
253
        if (defined $recall){
254
            $issue->{recalled} = 1;
254
            $issue->{recalled} = 1;
255
        }
255
        }
256
- 

Return to bug 19532