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

(-)a/C4/Circulation.pm (-2 / +8 lines)
Lines 1515-1521 sub AddReturn { Link Here
1515
    my $biblio;
1515
    my $biblio;
1516
    my $doreturn       = 1;
1516
    my $doreturn       = 1;
1517
    my $validTransfert = 0;
1517
    my $validTransfert = 0;
1518
    
1518
    my $stat_type = 'return';    
1519
1519
    # get information on item
1520
    # get information on item
1520
    my $itemnumber = GetItemnumberFromBarcode( $barcode );
1521
    my $itemnumber = GetItemnumberFromBarcode( $barcode );
1521
    unless ($itemnumber) {
1522
    unless ($itemnumber) {
Lines 1532-1537 sub AddReturn { Link Here
1532
        # even though item is not on loan, it may still be transferred;  therefore, get current branch info
1533
        # even though item is not on loan, it may still be transferred;  therefore, get current branch info
1533
        $doreturn = 0;
1534
        $doreturn = 0;
1534
        # No issue, no borrowernumber.  ONLY if $doreturn, *might* you have a $borrower later.
1535
        # No issue, no borrowernumber.  ONLY if $doreturn, *might* you have a $borrower later.
1536
        # Record this as a local use, instead of a return, if the RecordLocalUseOnReturn is on
1537
        if (C4::Context->preference("RecordLocalUseOnReturn")) {
1538
           $messages->{'LocalUse'} = 1;
1539
           $stat_type = 'localuse';
1540
        }
1535
    }
1541
    }
1536
1542
1537
    my $item = GetItem($itemnumber) or die "GetItem($itemnumber) failed";
1543
    my $item = GetItem($itemnumber) or die "GetItem($itemnumber) failed";
Lines 1639-1645 sub AddReturn { Link Here
1639
    # update stats?
1645
    # update stats?
1640
    # Record the fact that this book was returned.
1646
    # Record the fact that this book was returned.
1641
    UpdateStats(
1647
    UpdateStats(
1642
        $branch, 'return', '0', '',
1648
        $branch, $stat_type, '0', '',
1643
        $item->{'itemnumber'},
1649
        $item->{'itemnumber'},
1644
        $biblio->{'itemtype'},
1650
        $biblio->{'itemtype'},
1645
        $borrowernumber
1651
        $borrowernumber
(-)a/circ/returns.pl (+3 lines)
Lines 423-428 foreach my $code ( keys %$messages ) { Link Here
423
        $err{notissued} = 1;
423
        $err{notissued} = 1;
424
        $err{msg} = $branches->{ $messages->{'IsPermanent'} }->{'branchname'};
424
        $err{msg} = $branches->{ $messages->{'IsPermanent'} }->{'branchname'};
425
    }
425
    }
426
    elsif ( $code eq 'LocalUse' ) {
427
        $err{localuse} = 1;
428
    }
426
    elsif ( $code eq 'WasLost' ) {
429
    elsif ( $code eq 'WasLost' ) {
427
        $err{waslost} = 1;
430
        $err{waslost} = 1;
428
    }
431
    }
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+6 lines)
Lines 84-89 Circulation: Link Here
84
                  yes: Show
84
                  yes: Show
85
                  no: "Don't show"
85
                  no: "Don't show"
86
            - a button to clear the current patron from the screen on the circulation screen.
86
            - a button to clear the current patron from the screen on the circulation screen.
87
        -            
88
            - pref: RecordLocalUseOnReturn
89
              choices:
90
                  yes: Record
91
                  no: "Don't record"
92
            - local use when an unissued item is checked in.
87
    Checkout Policy:
93
    Checkout Policy:
88
        -
94
        -
89
            - pref: AllowNotForLoanOverride
95
            - pref: AllowNotForLoanOverride
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt (-1 / +3 lines)
Lines 298-303 function Dopop(link) { Link Here
298
                    [% IF ( errmsgloo.notissued ) %]
298
                    [% IF ( errmsgloo.notissued ) %]
299
                        <p class="problem">Not checked out.</p>
299
                        <p class="problem">Not checked out.</p>
300
                    [% END %]
300
                    [% END %]
301
                    [% IF ( errmsgloo.localuse) %]
302
                        <p class="problem">Local Use recorded</p>
303
                    [% END %]
301
                    [% IF ( errmsgloo.waslost ) %]
304
                    [% IF ( errmsgloo.waslost ) %]
302
                        <p class="problem">Item was lost, now found.</p>
305
                        <p class="problem">Item was lost, now found.</p>
303
                    [% END %]
306
                    [% END %]
304
- 

Return to bug 6403