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

(-)a/installer/data/mysql/atomicupdate/bug_23010_add_PreventWithdrawingItemsStatus.pl (+20 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(
12
            q{
13
            INSERT IGNORE INTO systempreferences (`variable`,`value`,`options`,`explanation`,`type`)
14
            VALUES ('PreventWithDrawingItemsStatus',NULL,'','Prevent the withdrawing of items based on statuses','Choice')
15
        }
16
        );
17
18
        say $out "Added new system preference 'PreventWithDrawingItemsStatus'";
19
    },
20
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +2 lines)
Lines 631-636 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
631
('PreservationNotForLoanDefaultTrainIn', '', '', 'Not for loan to apply to items removed from the preservation waiting list', 'TextArea'),
631
('PreservationNotForLoanDefaultTrainIn', '', '', 'Not for loan to apply to items removed from the preservation waiting list', 'TextArea'),
632
('PreservationNotForLoanWaitingListIn', '', '', 'Not for loan to apply to items added to the preservation waiting list', 'TextArea'),
632
('PreservationNotForLoanWaitingListIn', '', '', 'Not for loan to apply to items added to the preservation waiting list', 'TextArea'),
633
('PreserveSerialNotes','1','','When a new "Expected" issue is generated, should it be prefilled with last created issue notes?','YesNo'),
633
('PreserveSerialNotes','1','','When a new "Expected" issue is generated, should it be prefilled with last created issue notes?','YesNo'),
634
('PreventWithdrawingItemsStatus', '1', '', 'Prevent the withdrawing of items based on certain statuses' , 'multiple'),
634
('previousIssuesDefaultSortOrder','asc','asc|desc','Specify the sort order of Previous Issues on the circulation page','Choice'),
635
('previousIssuesDefaultSortOrder','asc','asc|desc','Specify the sort order of Previous Issues on the circulation page','Choice'),
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'),
636
('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'),
636
('PrivacyPolicyConsent','','Enforced|Permissive|Disabled','Data privacy policy consent in the OPAC', 'Choice'),
637
('PrivacyPolicyConsent','','Enforced|Permissive|Disabled','Data privacy policy consent in the OPAC', 'Choice'),
Lines 873-876 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
873
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
874
('z3950AuthorAuthFields','701,702,700',NULL,'Define the MARC biblio fields for Personal Name Authorities to fill biblio.author','free'),
874
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
875
('z3950NormalizeAuthor','0','','If ON, Personal Name Authorities will replace authors in biblio.author','YesNo'),
875
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
876
('z3950Status','','','This syspref allows to define custom YAML based rules for marking items unavailable in z3950 results.','Textarea')
876
;
877
;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +8 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:
Lines 1514-1517 Circulation: Link Here
1514
              choices:
1521
              choices:
1515
                  1: Enable
1522
                  1: Enable
1516
                  0: Disable
1523
                  0: Disable
1517
            - "the curbside pickup module."
1524
            - "the curbside pickup module."
(-)a/koha-tmpl/intranet-tmpl/prog/js/cataloging_additem.js (-1 / +3 lines)
Lines 4-9 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
    $(
8
        '#cataloguing_additem_newitem #f[action^="/cgi-bin/koha/cataloguing/additem.pl"]'
9
    );
7
    // Remove the onclick event defined in browser.js,
10
    // Remove the onclick event defined in browser.js,
8
    // otherwise the deletion confirmation will not work correctly
11
    // otherwise the deletion confirmation will not work correctly
9
    $('a[href*="biblionumber="]').off("click");
12
    $('a[href*="biblionumber="]').off("click");
10
- 

Return to bug 23010