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

(-)a/installer/data/mysql/atomicupdate/bug_36798.pl (+21 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "36798",
6
    description => "Add `SearchCancelAndInvalidISBNandISSN` 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 ('SearchCancelAndInvalidISBNandISSN','0',NULL,'Enable search for cancelled or invalid forms of ISBN/ISSN when performing ISBN/ISSN search (when using ES)','YesNo')
16
            }
17
        );
18
19
        say_success( $out, "Added new system preference 'SearchCancelAndInvalidISBNandISSN'" );
20
    },
21
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 686-691 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
686
('SCOLoadCheckoutsByDefault','1','','If enabled, load the list of a patrons checkouts when they log in to the Self Checkout','YesNo'),
686
('SCOLoadCheckoutsByDefault','1','','If enabled, load the list of a patrons checkouts when they log in to the Self Checkout','YesNo'),
687
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
687
('SCOUserCSS','',NULL,'Add CSS to be included in the SCO module in an embedded <style> tag.','free'),
688
('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'),
688
('SCOUserJS','',NULL,'Define custom javascript for inclusion in the SCO module','free'),
689
('SearchCancelAndInvalidISBNandISSN','0',NULL,'Enable search for cancelled or invalid forms of ISBN/ISSN when performing ISBN/ISSN search (when using ES)','YesNo'),
689
('SearchEngine','Zebra','Elasticsearch|Zebra','Search Engine','Choice'),
690
('SearchEngine','Zebra','Elasticsearch|Zebra','Search Engine','Choice'),
690
('SearchLimitLibrary', 'homebranch', 'homebranch|holdingbranch|both', "When limiting search results with a library or library group, use the item's home library, or holding library, or both.", 'Choice'),
691
('SearchLimitLibrary', 'homebranch', 'homebranch|holdingbranch|both', "When limiting search results with a library or library group, use the item's home library, or holding library, or both.", 'Choice'),
691
('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'),
692
('SearchMyLibraryFirst','0',NULL,'If ON, OPAC searches return results limited by the user\'s library by default if they are logged in','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-1 / +7 lines)
Lines 99-104 Searching: Link Here
99
            - "List of search fields (separated by | or ,) that should not be autotruncated by Elasticsearch even if <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=QueryAutoTruncate'>QueryAutoTruncate</a> is set to 'Yes':"
99
            - "List of search fields (separated by | or ,) that should not be autotruncated by Elasticsearch even if <a href='/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=QueryAutoTruncate'>QueryAutoTruncate</a> is set to 'Yes':"
100
            - pref: ESPreventAutoTruncate
100
            - pref: ESPreventAutoTruncate
101
              class: long
101
              class: long
102
        -
103
            - pref: SearchCancelAndInvalidISBNandISSN
104
              default: 0
105
              choices:
106
                  1: Do
107
                  0: "Don't"
108
            - "search for cancelled or invalid forms of ISBN/ISSN when performing ISBN/ISSN search (when using Elasticsearch)."
102
    Search form:
109
    Search form:
103
        -
110
        -
104
            - pref: LoadSearchHistoryToTheFirstLoggedUser
111
            - pref: LoadSearchHistoryToTheFirstLoggedUser
105
- 

Return to bug 36798