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

(-)a/C4/Circulation.pm (-2 / +14 lines)
Lines 826-833 sub CanBookBeIssued { Link Here
826
                interface      => C4::Context->interface,
826
                interface      => C4::Context->interface,
827
            }
827
            }
828
        );
828
        );
829
        ModDateLastSeen( $item_object->itemnumber ); # FIXME Move to Koha::Item
829
        my $block_lost_return = C4::Context->preference("BlockReturnOfLostItems") ? 1 : 0;
830
        return( { STATS => 1 }, {});
830
        my ( $stats_return, $stats_messages, $stats_iteminformation, $stats_borrower) =
831
        AddReturn( $item_object->barcode, C4::Context->userenv->{'branch'} );
832
        ModDateLastSeen( $item_object->itemnumber, $block_lost_return ); # FIXME Move to Koha::Item
833
        return (
834
            {
835
                STATS     => 1,
836
                CHECKEDIN => $stats_return,
837
                MESSAGES  => $stats_messages,
838
                ITEM      => $stats_iteminformation,
839
                BORROWER  => $stats_borrower,
840
            },
841
            {}
842
        );
831
    }
843
    }
832
844
833
    if ( $patron->gonenoaddress && $patron->gonenoaddress == 1 ) {
845
    if ( $patron->gonenoaddress && $patron->gonenoaddress == 1 ) {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-2 / +26 lines)
Lines 445-452 Link Here
445
445
446
                                [% IF ( STATS ) %]
446
                                [% IF ( STATS ) %]
447
                                    <li>Local use recorded</li>
447
                                    <li>Local use recorded</li>
448
                                    [% IF ( CHECKEDIN ) %]
449
                                        <li>Item returned from: [% INCLUDE 'patron-title.inc' patron=BORROWER %]</li>
450
                                    [% END %]
451
                                    [% IF ( MESSAGES.ResFound ) %]
452
                                        <li>Item on hold, please checkin.</li>
453
                                    [% END %]
454
                                    [% IF ( MESSAGES.ReturnClaims ) %]
455
                                        <li>Item claimed returned, please checkin.</li>
456
                                    [% END %]
457
                                    [% IF ( MESSAGES.RecallFound ) %]
458
                                        <li>Item can fill a recall, please checkin.</li>
459
                                    [% END %]
460
                                    [% IF ( MESSAGES.WasLost ) %]
461
                                        [% IF ( Koha.Preference('BlockReturnOfLostItems') ) %]
462
                                            <li>Item was lost, cannot be returned.</li>
463
                                        [% ELSE %]
464
                                            <li>Item was lost, now found.</li>
465
                                        [% END %]
466
                                    [% END %]
467
                                    [% IF ( MESSAGES.withdrawn ) %]
468
                                        [% IF ( Koha.Preference('BlockReturnOfWithdrawnItems') ) %]
469
                                            <li>Item was withdrawn, cannot be returned.</li>
470
                                        [% ELSE %]
471
                                            <li>Item was withdrawn</li>
472
                                        [% END %]
473
                                    [% END %]
448
                                [% END %]
474
                                [% END %]
449
450
                                [% IF ( INVALID_DATE ) %]
475
                                [% IF ( INVALID_DATE ) %]
451
                                    <li>The due date &quot;[% INVALID_DATE | $KohaDates %]&quot; is invalid</li>
476
                                    <li>The due date &quot;[% INVALID_DATE | $KohaDates %]&quot; is invalid</li>
452
                                [% END %]
477
                                [% END %]
453
- 

Return to bug 27992