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

(-)a/C4/Circulation.pm (-1 / +1 lines)
Lines 898-904 sub CanBookBeIssued { Link Here
898
    }
898
    }
899
899
900
    # Additional Materials Check
900
    # Additional Materials Check
901
    if ( C4::Context->preference("CircConfirmParts") ) {
901
    if ( C4::Context->preference("CircConfirmItemParts") ) {
902
        my $no_of_parts = $item_object->materials || 0;
902
        my $no_of_parts = $item_object->materials || 0;
903
        if ( $no_of_parts > 0 ) {
903
        if ( $no_of_parts > 0 ) {
904
            $needsconfirmation{additional_materials} = $no_of_parts;
904
            $needsconfirmation{additional_materials} = $no_of_parts;
(-)a/circ/returns.pl (-1 / +1 lines)
Lines 296-302 if ($barcode) { Link Here
296
296
297
    # Block return if multi-part and confirm has not been received
297
    # Block return if multi-part and confirm has not been received
298
    my $needs_confirm = 0;
298
    my $needs_confirm = 0;
299
    if ( C4::Context->preference("CircConfirmParts") ) {
299
    if ( C4::Context->preference("CircConfirmItemParts") ) {
300
        if ( $item->materials > 0 && !$query->param('multiple_confirm') ) {
300
        if ( $item->materials > 0 && !$query->param('multiple_confirm') ) {
301
                $needs_confirm = 1;
301
                $needs_confirm = 1;
302
        }
302
        }
(-)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 124-130 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
124
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
124
('CataloguingLog','1',NULL,'If ON, log edit/create/delete actions on bibliographic data. WARNING: this feature is very resource consuming.','YesNo'),
125
('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'),
125
('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'),
126
('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'),
126
('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'),
127
('CircConfirmParts', '0', NULL, 'Require staff to confirm that all parts of an item are present at checkin/checkout.', 'Yes/No'),
127
('CircConfirmItemParts', '0', NULL, 'Require staff to confirm that all parts of an item are present at checkin/checkout.', 'Yes/No'),
128
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
128
('CircControl','ItemHomeLibrary','PickupLibrary|PatronLibrary|ItemHomeLibrary','Specify the agency that controls the circulation and fines policy','Choice'),
129
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
129
('CircSidebar','0',NULL,'Activate or deactivate the navigation sidebar on all Circulation pages','YesNo'),
130
('CirculateILL','0','','If enabled, it is possible to circulate ILL items from within ILL','YesNo'),
130
('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