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

(-)a/catalogue/updateitem.pl (-1 / +1 lines)
Lines 74-79 if (defined $itemnotes) { # i.e., itemnotes parameter passed from form Link Here
74
74
75
ModItem($item_changes, $biblionumber, $itemnumber);
75
ModItem($item_changes, $biblionumber, $itemnumber);
76
76
77
LostItem($itemnumber, 'MARK RETURNED', 'CHARGE FEE') if $itemlost;
77
LostItem($itemnumber, C4::Context->preference("ReturnLostItems"), 'CHARGE FEE') if $itemlost;
78
78
79
print $cgi->redirect("moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber#item$itemnumber");
79
print $cgi->redirect("moredetail.pl?biblionumber=$biblionumber&itemnumber=$itemnumber#item$itemnumber");
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 314-319 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
314
('ReservesNeedReturns','1','','If ON, a hold placed on an item available in this library must be checked-in, otherwise, a hold on a specific item, that is in the library & available is considered available','YesNo'),
314
('ReservesNeedReturns','1','','If ON, a hold placed on an item available in this library must be checked-in, otherwise, a hold on a specific item, that is in the library & available is considered available','YesNo'),
315
('ReturnBeforeExpiry','0',NULL,'If ON, checkout will be prevented if returndate is after patron card expiry','YesNo'),
315
('ReturnBeforeExpiry','0',NULL,'If ON, checkout will be prevented if returndate is after patron card expiry','YesNo'),
316
('ReturnLog','1',NULL,'If ON, enables the circulation (returns) log','YesNo'),
316
('ReturnLog','1',NULL,'If ON, enables the circulation (returns) log','YesNo'),
317
('ReturnLostItems', '1', NULL, 'If enabled, items marked as lost via the librarian intranet will be automatically returned. Note, the cronjob for marking items as lost has its own command line switch and is not affected by this system preference.','YesNo'),
317
('ReturnToShelvingCart','0','','If set, when any item is \'checked in\', it\'s location code will be changed to CART.','YesNo'),
318
('ReturnToShelvingCart','0','','If set, when any item is \'checked in\', it\'s location code will be changed to CART.','YesNo'),
318
('reviewson','1','','If ON, enables patron reviews of bibliographic records in the OPAC','YesNo'),
319
('reviewson','1','','If ON, enables patron reviews of bibliographic records in the OPAC','YesNo'),
319
('RoutingListAddReserves','1','','If ON the patrons on routing lists are automatically added to holds on the issue.','YesNo'),
320
('RoutingListAddReserves','1','','If ON the patrons on routing lists are automatically added to holds on the issue.','YesNo'),
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 7067-7072 if ( CheckVersion($DBversion) ) { Link Here
7067
    SetVersion($DBversion);
7067
    SetVersion($DBversion);
7068
}
7068
}
7069
7069
7070
$DBversion ="3.13.00.XXX";
7071
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
7072
    $dbh->do("INSERT INTO systempreferences (variable,value,options,explanation,type) VALUES('ReturnLostItems', '1', '','If enabled, items marked as lost via the librarian intranet will be automatically returned. Note, the cronjob for marking items as lost has its own command line switch and is not affected by this system preference.', 'YesNo')");
7073
    print "Upgrade to $DBversion done (Add system preference ReturnLostItems)\n";
7074
    SetVersion($DBversion);
7075
}
7076
7070
=head1 FUNCTIONS
7077
=head1 FUNCTIONS
7071
7078
7072
=head2 TableExists($table)
7079
=head2 TableExists($table)
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+8 lines)
Lines 569-571 Circulation: Link Here
569
                  yes: Use
569
                  yes: Use
570
                  no: "Don't use"
570
                  no: "Don't use"
571
            - course reserves
571
            - course reserves
572
    Lost Items Policy:
573
        -
574
            - pref: ReturnLostItems
575
              type: choice
576
              choices:
577
                  yes: "Check in"
578
                  no: "Don't check in"
579
            - items marked as lost that are checked out to a patron.
(-)a/tools/batchMod.pl (-2 / +1 lines)
Lines 189-195 if ($op eq "action") { Link Here
189
			UpdateMarcWith( $marcitem, $localmarcitem );
189
			UpdateMarcWith( $marcitem, $localmarcitem );
190
			eval{
190
			eval{
191
                            if ( my $item = ModItemFromMarc( $localmarcitem, $itemdata->{biblionumber}, $itemnumber ) ) {
191
                            if ( my $item = ModItemFromMarc( $localmarcitem, $itemdata->{biblionumber}, $itemnumber ) ) {
192
                                LostItem($itemnumber, 'MARK RETURNED', 'CHARGE FEE') if $item->{itemlost};
192
                                LostItem($itemnumber, C4::Context->preference("ReturnLostItems"), 'CHARGE FEE') if $item->{itemlost};
193
                            }
193
                            }
194
                        };
194
                        };
195
		    }
195
		    }
196
- 

Return to bug 8484