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

(-)a/installer/data/mysql/atomicupdate/bug_32707.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "32707",
5
    description => "Add `ESPreventAutoTruncate` preference",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        $dbh->do(
10
            q{
11
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
12
            VALUES ('ESPreventAutoTruncate', 'barcode|control-number|control-number-identifier|date-of-acquisition|date-of-publication|date-time-last-modified|identifier-standard|isbn|issn|itype|lc-card-number|number-local-acquisition|other-control-number|record-control-number', NULL, 'List of searchfields (separated by | or ,) that should not be autotruncated by Elasticsearch even if QueryAutoTruncate is set to Yes', 'Free')
13
        }
14
        );
15
    },
16
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 248-253 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
248
('ERMProviderEbscoApiKey', '', '', 'API key for EBSCO', 'free'),
248
('ERMProviderEbscoApiKey', '', '', 'API key for EBSCO', 'free'),
249
('ERMProviderEbscoCustomerID', '', '', 'Customer ID for EBSCO', 'free'),
249
('ERMProviderEbscoCustomerID', '', '', 'Customer ID for EBSCO', 'free'),
250
('ERMProviders', 'local', 'local|ebsco', 'Set the providers for the ERM module', 'Choice'),
250
('ERMProviders', 'local', 'local|ebsco', 'Set the providers for the ERM module', 'Choice'),
251
('ESPreventAutoTruncate', 'barcode|control-number|control-number-identifier|date-of-acquisition|date-of-publication|date-time-last-modified|identifier-standard|isbn|issn|itype|lc-card-number|number-local-acquisition|other-control-number|record-control-number', NULL, 'List of searchfields (separated by | or ,) that should not be autotruncated by Elasticsearch even if QueryAutoTruncate is set to Yes', 'free'),
251
('ExcludeHolidaysFromMaxPickUpDelay', '0', NULL, 'If ON, reserves max pickup delay takes into accountthe closed days.', 'YesNo'),
252
('ExcludeHolidaysFromMaxPickUpDelay', '0', NULL, 'If ON, reserves max pickup delay takes into accountthe closed days.', 'YesNo'),
252
('expandedSearchOption','0',NULL,'If ON, set advanced search to be expanded by default','YesNo'),
253
('expandedSearchOption','0',NULL,'If ON, set advanced search to be expanded by default','YesNo'),
253
('ExpireReservesAutoFill','0',NULL,'Automatically fill the next hold with a automatically canceled expired waiting hold.','YesNo'),
254
('ExpireReservesAutoFill','0',NULL,'Automatically fill the next hold with a automatically canceled expired waiting hold.','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-1 / +5 lines)
Lines 8-13 Searching: Link Here
8
                  1: automatically.
8
                  1: automatically.
9
                  0: only if * is added.
9
                  0: only if * is added.
10
            - "<br />(The * character would be used like so: <cite>Har*</cite> or <cite>*logging</cite>.)"
10
            - "<br />(The * character would be used like so: <cite>Har*</cite> or <cite>*logging</cite>.)"
11
            - <strong>NOTE:</strong> record identifiers (biblionumber, authid) will never be autotruncated.
11
        -
12
        -
12
            - pref: QueryFuzzy
13
            - pref: QueryFuzzy
13
              type: boolean
14
              type: boolean
Lines 94-99 Searching: Link Here
94
                  1: Enable
95
                  1: Enable
95
                  0: Disable
96
                  0: Disable
96
            - "the option for staff with permission to create/edit custom saved search filters."
97
            - "the option for staff with permission to create/edit custom saved search filters."
98
        -
99
            - 'List of searchfields (separated by | or ,) that should not be autotruncated by Elasticsearch even if <a href="/cgi-bin/koha/admin/preferences.pl?op=search&searchfield=UseCashRegisters">QueryAutoTruncate</a> is set to Yes:'
100
            - pref: ESPreventAutoTruncate
101
              class: long
97
    Search form:
102
    Search form:
98
        -
103
        -
99
            - pref: LoadSearchHistoryToTheFirstLoggedUser
104
            - pref: LoadSearchHistoryToTheFirstLoggedUser
100
- 

Return to bug 32707