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

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 844-850 sub CanBookBeIssued { Link Here
844
    }
844
    }
845
845
846
    # Additional Materials Check
846
    # Additional Materials Check
847
    if ( C4::Context->preference("CircConfirmParts") ) {
847
    if ( C4::Context->preference("CircConfirmItemParts") ) {
848
        my $no_of_parts = $item_object->materials || 0;
848
        my $no_of_parts = $item_object->materials || 0;
849
        if ( $no_of_parts > 0 ) {
849
        if ( $no_of_parts > 0 ) {
850
            $needsconfirmation{additional_materials} = $no_of_parts;
850
            $needsconfirmation{additional_materials} = $no_of_parts;
(-)a/circ/returns.pl (-1 / +1 lines)
Lines 299-305 if ($barcode) { Link Here
299
299
300
    # Block return if multi-part and confirm has not been received
300
    # Block return if multi-part and confirm has not been received
301
    my $needs_confirm = 0;
301
    my $needs_confirm = 0;
302
    if ( C4::Context->preference("CircConfirmParts") ) {
302
    if ( C4::Context->preference("CircConfirmItemParts") ) {
303
        if ( $item->materials > 0 && !$query->param('multiple_confirm') ) {
303
        if ( $item->materials > 0 && !$query->param('multiple_confirm') ) {
304
                $needs_confirm = 1;
304
                $needs_confirm = 1;
305
        }
305
        }
(-)a/installer/data/mysql/atomicupdate/bug_25261.perl (-2 / +2 lines)
Lines 1-6 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('CircConfirmParts', '0', NULL, 'Require staff to confirm that all parts of an item are present at checkin/checkout.', 'YesNo') });
3
    $dbh->do(q{INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type) VALUES ('CircConfirmItemParts', '0', NULL, 'Require staff to confirm that all parts of an item are present at checkin/checkout.', 'YesNo') });
4
4
5
    NewVersion( $DBversion, 25261, "Add CircConfirmParts syspref");
5
    NewVersion( $DBversion, 25261, "Add CircConfirmItemParts syspref");
6
}
6
}
(-)a/installer/data/mysql/sysprefs.sql (-1 / +1 lines)
Lines 121-127 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
121
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
121
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
122
('CheckPrevCheckout','hardno','hardyes|softyes|softno|hardno','By default, for every item checked out, should we warn if the patron has borrowed that item in the past?','Choice'),
122
('CheckPrevCheckout','hardno','hardyes|softyes|softno|hardno','By default, for every item checked out, should we warn if the patron has borrowed that item in the past?','Choice'),
123
('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'),
123
('CircAutoPrintQuickSlip','qslip',NULL,'Choose what should happen when an empty barcode field is submitted in circulation: Display a print quick slip window, Display a print slip window or Clear the screen.','Choice'),
124
('CircConfirmParts', '0', NULL, 'Require staff to confirm that all parts of an item are present at checkin/checkout.', 'Yes/No'),
124
('CircConfirmItemParts', '0', NULL, 'Require staff to confirm that all parts of an item are present at checkin/checkout.', 'Yes/No'),
125
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
125
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
126
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
126
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
127
('CirculateILL','0','','If enabled, it is possible to circulate ILL items from within ILL','YesNo'),
127
('CirculateILL','0','','If enabled, it is possible to circulate ILL items from within ILL','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-2 / +1 lines)
Lines 7-13 Circulation: Link Here
7
                  no: Deactivate
7
                  no: Deactivate
8
            - the navigation sidebar on all Circulation pages.
8
            - the navigation sidebar on all Circulation pages.
9
        -
9
        -
10
            - pref: CircConfirmParts
10
            - pref: CircConfirmItemParts
11
              choices:
11
              choices:
12
                  yes: "Require"
12
                  yes: "Require"
13
                  no: "Don't require"
13
                  no: "Don't require"
14
- 

Return to bug 25261