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

(-)a/installer/data/mysql/atomicupdate/bug_41788.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  => "41788",
6
    description => "Add UseHoldsQueueFilterOptions system preference",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(
13
            q{
14
                INSERT IGNORE INTO systempreferences (variable,value,options,explanation,type)
15
                VALUES ('UseHoldsQueueFilterOptions','1','','If enabled, the holds queue will present the user with filter options before running','YesNo')
16
            }
17
        );
18
        say_success( $out, "UseHoldsQueueFilterOptions system preference added" );
19
    },
20
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-2 / +3 lines)
Lines 488-494 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
488
('OpacAllowPublicListCreation','1',NULL,'If set, allows opac users to create public lists','YesNo'),
488
('OpacAllowPublicListCreation','1',NULL,'If set, allows opac users to create public lists','YesNo'),
489
('OpacAllowSharingPrivateLists','0',NULL,'If set, allows opac users to share private lists with other patrons','YesNo'),
489
('OpacAllowSharingPrivateLists','0',NULL,'If set, allows opac users to share private lists with other patrons','YesNo'),
490
('OPACAllowUserToChangeBranch','','Pending, In-Transit, Suspended','Allow users to change the library to pick up a hold for these statuses:','multiple'),
490
('OPACAllowUserToChangeBranch','','Pending, In-Transit, Suspended','Allow users to change the library to pick up a hold for these statuses:','multiple'),
491
('OPACAllowUserToChooseBranch','1',NULL,'Allow the user to choose the branch they want to pickup their hold from','YesNo'),
491
/kohadevbox/koha/installer/data/mysql/mandatory/sysprefs.sql('OPACAllowUserToChooseBranch','1',NULL,'Allow the user to choose the branch they want to pickup their hold from','YesNo'),
492
('OPACAmazonCoverImages','0',NULL,'Display cover images on OPAC from Amazon Web Services','YesNo'),
492
('OPACAmazonCoverImages','0',NULL,'Display cover images on OPAC from Amazon Web Services','YesNo'),
493
('OPACAuthorIdentifiersAndInformation', '', NULL, 'Display author information on the OPAC detail page','multiple_sortable'),
493
('OPACAuthorIdentifiersAndInformation', '', NULL, 'Display author information on the OPAC detail page','multiple_sortable'),
494
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
494
('OpacAuthorities','1',NULL,'If ON, enables the search authorities link on OPAC','YesNo'),
Lines 578-584 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
578
('OPACShowLibraries', '1', NULL, 'If enabled, a "Libraries" link appears in the OPAC pointing to a page with library information', 'YesNo'),
578
('OPACShowLibraries', '1', NULL, 'If enabled, a "Libraries" link appears in the OPAC pointing to a page with library information', 'YesNo'),
579
('OPACShowMusicalInscripts','0',NULL,'Display musical inscripts on the OPAC record details page when available.','YesNo'),
579
('OPACShowMusicalInscripts','0',NULL,'Display musical inscripts on the OPAC record details page when available.','YesNo'),
580
('OPACShowOpenURL', '0', NULL, 'Enable display of OpenURL links in OPAC search results and detail page', 'YesNo'),
580
('OPACShowOpenURL', '0', NULL, 'Enable display of OpenURL links in OPAC search results and detail page', 'YesNo'),
581
('OpacShowRecentComments','0',NULL,'If ON a link to recent comments will appear in the OPAC masthead','YesNo'),
581
('OpacShowRecentComments','0',NULL,'If ON a link to recent c/kohadevbox/koha/installer/data/mysql/mandatory/sysprefs.sqlomments will appear in the OPAC masthead','YesNo'),
582
('OPACShowSavings', '', 'checkouthistory|summary|user', 'Show on the OPAC the total amount a patron has saved by using a library instead of purchasing, based on replacement prices', 'multiple'),
582
('OPACShowSavings', '', 'checkouthistory|summary|user', 'Show on the OPAC the total amount a patron has saved by using a library instead of purchasing, based on replacement prices', 'multiple'),
583
('OPACShowUnusedAuthorities','1',NULL,'Show authorities that are not being used in the OPAC.','YesNo'),
583
('OPACShowUnusedAuthorities','1',NULL,'Show authorities that are not being used in the OPAC.','YesNo'),
584
('OpacStarRatings','all','disable|all|details',NULL,'Choice'),
584
('OpacStarRatings','all','disable|all|details',NULL,'Choice'),
Lines 880-885 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
880
('UseLocationAsAQInSIP', '0', NULL, 'Use permanent_location instead of homebranch for AQ in SIP response', 'YesNo'),
880
('UseLocationAsAQInSIP', '0', NULL, 'Use permanent_location instead of homebranch for AQ in SIP response', 'YesNo'),
881
('UseOCLCEncodingLevels','0',NULL,'If enabled, include OCLC encoding levels in leader value builder dropdown for position 17.','YesNo'),
881
('UseOCLCEncodingLevels','0',NULL,'If enabled, include OCLC encoding levels in leader value builder dropdown for position 17.','YesNo'),
882
('UseRecalls','0',NULL,'Enable or disable recalls','YesNo'),
882
('UseRecalls','0',NULL,'Enable or disable recalls','YesNo'),
883
('UseHoldsQueueFilterOptions','1',NULL,'If enabled, the holds queue will present the user with filter options before running','YesNo'),
883
('UseTransportCostMatrix','0',NULL,'Use Transport Cost Matrix when filling holds','YesNo'),
884
('UseTransportCostMatrix','0',NULL,'Use Transport Cost Matrix when filling holds','YesNo'),
884
('UseWYSIWYGinSystemPreferences','0',NULL,'Show WYSIWYG editor when editing certain HTML system preferences.','YesNo'),
885
('UseWYSIWYGinSystemPreferences','0',NULL,'Show WYSIWYG editor when editing certain HTML system preferences.','YesNo'),
885
('viewISBD','1',NULL,'Allow display of ISBD view of bibiographic records','YesNo'),
886
('viewISBD','1',NULL,'Allow display of ISBD view of bibiographic records','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +6 lines)
Lines 798-803 Circulation: Link Here
798
                  actual: "the actual priority, which may be out of order"
798
                  actual: "the actual priority, which may be out of order"
799
                  virtual: "'virtual' priorities, where each group is numbered separately"
799
                  virtual: "'virtual' priorities, where each group is numbered separately"
800
            - .
800
            - .
801
        -
802
            - pref: UseHoldsQueueFilterOptions
803
              choices:
804
                  1: Enable
805
                  0: Disable
806
            - when running the holds queue.
801
        -
807
        -
802
            - pref: RealTimeHoldsQueue
808
            - pref: RealTimeHoldsQueue
803
              choices:
809
              choices:
804
- 

Return to bug 41788