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

(-)a/installer/data/mysql/atomicupdate/bug_33117.pl (-2 / +2 lines)
Lines 9-17 return { Link Here
9
9
10
        $dbh->do(q{
10
        $dbh->do(q{
11
            INSERT INTO systempreferences (`variable`,`value`,`explanation`,`options`,`type`)
11
            INSERT INTO systempreferences (`variable`,`value`,`explanation`,`options`,`type`)
12
            VALUES ('PatronAutoCompleteSearchMethod','starts_with','Allows staff to set a default method when searching for patrons with autocomplete','starts_with|contains','Choice');
12
            VALUES ('DefaultPatronSearchMethod','starts_with','Allows staff to set a default method when searching for patrons with autocomplete','starts_with|contains','Choice');
13
        });
13
        });
14
14
15
        say $out "Added new system preference 'PatronAutoCompleteSearchMethod'";
15
        say $out "Added new system preference 'DefaultPatronSearchMethod'";
16
    },
16
    },
17
};
17
};
(-)a/installer/data/mysql/mandatory/sysprefs.sql (-1 / +1 lines)
Lines 184-189 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
184
('DefaultLongOverdueDays', '', NULL, "Set the LOST value of an item when the item has been overdue for more than n days.", 'integer'),
184
('DefaultLongOverdueDays', '', NULL, "Set the LOST value of an item when the item has been overdue for more than n days.", 'integer'),
185
('DefaultLongOverdueLostValue', '', NULL, "Set the LOST value of an item to n when the item has been overdue for more than defaultlongoverduedays days.", 'integer'),
185
('DefaultLongOverdueLostValue', '', NULL, "Set the LOST value of an item to n when the item has been overdue for more than defaultlongoverduedays days.", 'integer'),
186
('DefaultPatronSearchFields',    'firstname,middle_name,surname,othernames,cardnumber,userid',NULL,'Comma separated list defining the default fields to be used during a patron search using the "standard" option. If empty Koha will default to "firstname,surname,othernames,cardnumber,userid". Additional fields added to this preference will be added as search options in the dropdown menu on the patron search page.','free'),
186
('DefaultPatronSearchFields',    'firstname,middle_name,surname,othernames,cardnumber,userid',NULL,'Comma separated list defining the default fields to be used during a patron search using the "standard" option. If empty Koha will default to "firstname,surname,othernames,cardnumber,userid". Additional fields added to this preference will be added as search options in the dropdown menu on the patron search page.','free'),
187
('DefaultPatronSearchMethod','starts_with','Choose which search method to use by default when searching with PatronAutoComplete','starts_with|choice','Choice'),
187
('DefaultSaveRecordFileID','biblionumber','biblionumber|controlnumber','Defines whether the advanced cataloging editor will use the bibliographic record number or control number field to populate the name of the save file','Choice'),
188
('DefaultSaveRecordFileID','biblionumber','biblionumber|controlnumber','Defines whether the advanced cataloging editor will use the bibliographic record number or control number field to populate the name of the save file','Choice'),
188
('defaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
189
('defaultSortField','relevance','relevance|popularity|call_number|pubdate|acqdate|title|author','Specify the default field used for sorting','Choice'),
189
('defaultSortOrder','dsc','asc|dsc|az|za','Specify the default sort order','Choice'),
190
('defaultSortOrder','dsc','asc|dsc|az|za','Specify the default sort order','Choice'),
Lines 552-558 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
552
('PassItemMarcToXSLT','0',NULL,'If enabled, item fields in the MARC record will be made avaiable to XSLT sheets. Otherwise they will be removed.','YesNo'),
553
('PassItemMarcToXSLT','0',NULL,'If enabled, item fields in the MARC record will be made avaiable to XSLT sheets. Otherwise they will be removed.','YesNo'),
553
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
554
('PatronAnonymizeDelay','',NULL,'Delay for anonymizing patrons', 'Integer'),
554
('PatronAutoComplete','1','Try|Don\'t try','to guess the patron being entered while typing a patron search for circulation or patron search. Only returns the first 10 results at a time.','YesNo'),
555
('PatronAutoComplete','1','Try|Don\'t try','to guess the patron being entered while typing a patron search for circulation or patron search. Only returns the first 10 results at a time.','YesNo'),
555
('PatronAutoCompleteSearchMethod','starts_with','Choose which search method to use by default when searching with PatronAutoComplete','starts_with|choice','Choice'),
556
('PatronDuplicateMatchingAddFields','surname|firstname|dateofbirth', NULL,'A list of fields separated by "|" to deduplicate patrons when created','Free'),
556
('PatronDuplicateMatchingAddFields','surname|firstname|dateofbirth', NULL,'A list of fields separated by "|" to deduplicate patrons when created','Free'),
557
('patronimages','0',NULL,'Enable patron images for the staff interface','YesNo'),
557
('patronimages','0',NULL,'Enable patron images for the staff interface','YesNo'),
558
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer'),
558
('PatronRemovalDelay','',NULL,'Delay for removing anonymized patrons', 'Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/js_includes.inc (-1 / +1 lines)
Lines 71-77 Link Here
71
71
72
<script>
72
<script>
73
    var defaultPatronSearchFields = "[% Koha.Preference('DefaultPatronSearchFields') || 'firstname,middle_name,surname,othernames,cardnumber,userid' | html %]";
73
    var defaultPatronSearchFields = "[% Koha.Preference('DefaultPatronSearchFields') || 'firstname,middle_name,surname,othernames,cardnumber,userid' | html %]";
74
    var patronAutoCompleteSearchMethod = "[% Koha.Preference('PatronAutoCompleteSearchMethod') || 'contains' | html %]";
74
    var defaultPatronSearchMethod = "[% Koha.Preference('DefaultPatronSearchMethod') || 'contains' | html %]";
75
    var loggedInLibrary = '[% Branches.GetLoggedInBranchcode | html %]';
75
    var loggedInLibrary = '[% Branches.GetLoggedInBranchcode | html %]';
76
    var singleBranchMode = '[% singleBranchMode | html %]';
76
    var singleBranchMode = '[% singleBranchMode | html %]';
77
</script>
77
</script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-6 lines)
Lines 26-37 Circulation: Link Here
26
                  0: "Don't try"
26
                  0: "Don't try"
27
            - to guess the patron being entered while typing a patron search for circulation or patron search.
27
            - to guess the patron being entered while typing a patron search for circulation or patron search.
28
            - Only returns the first 10 results at a time.
28
            - Only returns the first 10 results at a time.
29
        -
30
            - pref: PatronAutoCompleteSearchMethod
31
              choices:
32
                  starts_with: "Starts with"
33
                  contains: "Contains"
34
            - Enable this search method to determine whether to use Starts with or Contains for autocomplete patron searches.
35
        -
29
        -
36
            - pref: itemBarcodeInputFilter
30
            - pref: itemBarcodeInputFilter
37
              choices:
31
              choices:
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +6 lines)
Lines 60-65 Patrons: Link Here
60
         - pref: DefaultPatronSearchFields
60
         - pref: DefaultPatronSearchFields
61
           class: multi
61
           class: multi
62
         - "If empty Koha will default to \"firstname,middle_name,surname,othernames,cardnumber,userid\". Additional fields added to this preference will be added as search options in the dropdown menu on the patron search page."
62
         - "If empty Koha will default to \"firstname,middle_name,surname,othernames,cardnumber,userid\". Additional fields added to this preference will be added as search options in the dropdown menu on the patron search page."
63
        -
64
            - pref: DefaultPatronSearchMethod
65
              choices:
66
                  starts_with: "Starts with"
67
                  contains: "Contains"
68
            - Enable this search method to determine whether to use Starts with or Contains for autocomplete patron searches.
63
     -
69
     -
64
         - "Show the following fields from the items database table as columns on the statistics tab on the patron record: "
70
         - "Show the following fields from the items database table as columns on the statistics tab on the patron record: "
65
         - pref: StatisticsFields
71
         - pref: StatisticsFields
66
- 

Return to bug 33117