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

(-)a/installer/data/mysql/atomicupdate/bug_23010_add_PreventWithdrawingItemsStatus.pl (+18 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "23010",
6
    description => "Add new PreventWithDrawingItemsStatus system preference",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(q{
12
            INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
13
            VALUES ('PreventWithDrawingItemsStatus',NULL,'','Prevent the withdrawing of items based on statuses','Choice')
14
        });
15
16
        say $out "Added new system preference 'PreventWithDrawingItemsStatus'";
17
    },
18
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 630-635 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
630
('PreservationNotForLoanDefaultTrainIn', '', '', 'Not for loan to apply to items removed from the preservation waiting list', 'TextArea'),
630
('PreservationNotForLoanDefaultTrainIn', '', '', 'Not for loan to apply to items removed from the preservation waiting list', 'TextArea'),
631
('PreservationNotForLoanWaitingListIn', '', '', 'Not for loan to apply to items added to the preservation waiting list', 'TextArea'),
631
('PreservationNotForLoanWaitingListIn', '', '', 'Not for loan to apply to items added to the preservation waiting list', 'TextArea'),
632
('PreserveSerialNotes','1','','When a new "Expected" issue is generated, should it be prefilled with last created issue notes?','YesNo'),
632
('PreserveSerialNotes','1','','When a new "Expected" issue is generated, should it be prefilled with last created issue notes?','YesNo'),
633
('PreventWithdrawingItemsStatus', '1', '', 'Prevent the withdrawing of items based on certain statuses' , 'multiple'),
633
('previousIssuesDefaultSortOrder','asc','asc|desc','Specify the sort order of Previous Issues on the circulation page','Choice'),
634
('previousIssuesDefaultSortOrder','asc','asc|desc','Specify the sort order of Previous Issues on the circulation page','Choice'),
634
('PrintNoticesMaxLines','0','','If greater than 0, sets the maximum number of lines an overdue notice will print. If the number of items is greater than this number, the notice will end with a warning asking the borrower to check their online account for a full list of overdue items.','Integer'),
635
('PrintNoticesMaxLines','0','','If greater than 0, sets the maximum number of lines an overdue notice will print. If the number of items is greater than this number, the notice will end with a warning asking the borrower to check their online account for a full list of overdue items.','Integer'),
635
('PrivacyPolicyConsent','','Enforced|Permissive|Disabled','Data privacy policy consent in the OPAC', 'Choice'),
636
('PrivacyPolicyConsent','','Enforced|Permissive|Disabled','Data privacy policy consent in the OPAC', 'Choice'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (+7 lines)
Lines 677-682 Circulation: Link Here
677
                  1: Block
677
                  1: Block
678
                  0: "Don't block"
678
                  0: "Don't block"
679
            - returning of items that have been withdrawn.
679
            - returning of items that have been withdrawn.
680
        -
681
            - "Prevent the ability to withdraw items with the following statuses:"
682
            - pref: PreventWithdrawingItemsStatus
683
              multiple:
684
                intransit: In-transit
685
                checkedout: Checked out
686
            -
680
        -
687
        -
681
            - pref: BlockReturnOfLostItems
688
            - pref: BlockReturnOfLostItems
682
              choices:
689
              choices:
(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js (-2 / +1 lines)
Lines 4-10 var browser = KOHA.browser(searchid, parseInt(biblionumber, 10)); Link Here
4
browser.show();
4
browser.show();
5
5
6
$(document).ready(function(){
6
$(document).ready(function(){
7
7
    $('#cataloguing_additem_newitem #f[action^="/cgi-bin/koha/cataloguing/additem.pl"]')
8
    // Remove the onclick event defined in browser.js,
8
    // Remove the onclick event defined in browser.js,
9
    // otherwise the deletion confirmation will not work correctly
9
    // otherwise the deletion confirmation will not work correctly
10
    $('a[href*="biblionumber="]').off('click');
10
    $('a[href*="biblionumber="]').off('click');
11
- 

Return to bug 23010