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 246-256 Link Here
246
                                                <td class="title">
246
                                                <td class="title">
247
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% ISSUE.title | html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield | html %][% END %]</a>
247
                                                    <a class="title" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ISSUE.biblionumber | html %]">[% ISSUE.title | html %] [% FOREACH subtitl IN ISSUE.subtitle %] [% subtitl.subfield | html %][% END %]</a>
248
                                                    [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %]
248
                                                    [% IF ( ISSUE.enumchron ) %] [% ISSUE.enumchron %][% END %]
249
                                                    [% IF ( ISSUE.recalled ) %]This item has been recalled. Please return by the new due date.[% END %]
249
                                                    [% IF ( ISSUE.recalled ) %]<br /><i>This item has been recalled. Please return by the new due date.</i>[% END %]
250
                                                </td>
250
                                                </td>
251
251
252
                                                <td class="author">[% ISSUE.author | html %]</td>
252
                                                <td class="author">[% ISSUE.author | html %]</td>
253
                                                [% IF ( ISSUE.overdue ) %]
253
                                                [% IF ( ISSUE.overdue || ISSUE.recalled ) %]
254
                                                    <td class="date_due overdue">
254
                                                    <td class="date_due overdue">
255
                                                        <span title="[% ISSUE.date_due | html %]">
255
                                                        <span title="[% ISSUE.date_due | html %]">
256
                                                            <span class="tdlabel">Date due:</span>
256
                                                            <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 248-254 if ( $pending_checkouts->count ) { # Useless test Link Here
248
            }
248
            }
249
        }
249
        }
250
250
251
        my $recall = Koha::Recalls->find($issue->{itemnumber});
251
        my $recall = Koha::Recalls->find({ itemnumber => $issue->{itemnumber} });
252
        if (defined $recall){
252
        if (defined $recall){
253
            $issue->{recalled} = 1;
253
            $issue->{recalled} = 1;
254
        }
254
        }
255
- 

Return to bug 19532