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

(-)a/C4/Search.pm (-1 / +1 lines)
Lines 2132-2138 sub searchResults { Link Here
2132
                        || $item->{itemlost}
2132
                        || $item->{itemlost}
2133
                        || $item->{damaged}
2133
                        || $item->{damaged}
2134
                        || $item->{notforloan}
2134
                        || $item->{notforloan}
2135
                        || $items_count > 20) {
2135
                        || $items_count > C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck') ) {
2136
2136
2137
                    # A couple heuristics to limit how many times
2137
                    # A couple heuristics to limit how many times
2138
                    # we query the database for item transfer information, sacrificing
2138
                    # we query the database for item transfer information, sacrificing
(-)a/installer/data/mysql/atomicupdate/bug_13022.sql (+1 lines)
Line 0 Link Here
1
INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type) VALUES('MaxSearchResultsItemsPerRecordStatusCheck','20','Max number of items per record for which to check transit and hold status','','Integer');
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 204-209 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
204
('maxoutstanding','5','','maximum amount withstanding to be able make holds','Integer'),
204
('maxoutstanding','5','','maximum amount withstanding to be able make holds','Integer'),
205
('maxRecordsForFacets','20',NULL,NULL,'Integer'),
205
('maxRecordsForFacets','20',NULL,NULL,'Integer'),
206
('maxreserves','50','','Define maximum number of holds a patron can place','Integer'),
206
('maxreserves','50','','Define maximum number of holds a patron can place','Integer'),
207
('MaxSearchResultsItemsPerRecordStatusCheck','20','','Max number of items per record for which to check transit and hold status','Integer'),
207
('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'),
208
('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'),
208
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
209
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
209
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
210
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-1 / +5 lines)
Lines 149-154 Searching: Link Here
149
              class: integer
149
              class: integer
150
            - results per page in the staff client.
150
            - results per page in the staff client.
151
        -
151
        -
152
            - For records with many items, only check the availability status for the first
153
            - pref: MaxSearchResultsItemsPerRecordStatusCheck
154
              class: integer
155
            - items. If a record has more than this number of items, they availability statuses may be incorrect in the search results, but will be correct in the record details.
156
        -
152
            - By default, sort search results in the OPAC by
157
            - By default, sort search results in the OPAC by
153
            - pref: OPACdefaultSortField
158
            - pref: OPACdefaultSortField
154
              default: relevance
159
              default: relevance
155
- 

Return to bug 13022