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

(-)a/installer/data/mysql/atomicupdate/bug_32707.pl (+14 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(q{
10
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
11
            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')
12
        });
13
    },
14
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 249-254 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
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
('ExcludeHolidaysFromMaxPickUpDelay', '0', NULL, 'If ON, reserves max pickup delay takes into accountthe closed days.', 'YesNo'),
251
('ExcludeHolidaysFromMaxPickUpDelay', '0', NULL, 'If ON, reserves max pickup delay takes into accountthe closed days.', 'YesNo'),
252
('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'),
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'),
254
('ExpireReservesAutoFillEmail','', NULL,'Send email notification of hold filled from automatically expired/cancelled hold to this address. If not defined, Koha will fallback to the library reply-to address','Free'),
255
('ExpireReservesAutoFillEmail','', NULL,'Send email notification of hold filled from automatically expired/cancelled hold to this address. If not defined, Koha will fallback to the library reply-to address','Free'),
(-)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