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

(-)a/C4/Search.pm (-1 / +1 lines)
Lines 2136-2142 sub searchResults { Link Here
2136
                        || $item->{itemlost}
2136
                        || $item->{itemlost}
2137
                        || $item->{damaged}
2137
                        || $item->{damaged}
2138
                        || $item->{notforloan}
2138
                        || $item->{notforloan}
2139
                        || $items_count > 20) {
2139
                        || $items_count > C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck') ) {
2140
2140
2141
                    # A couple heuristics to limit how many times
2141
                    # A couple heuristics to limit how many times
2142
                    # we query the database for item transfer information, sacrificing
2142
                    # 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 217-222 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
217
('maxoutstanding','5','','maximum amount withstanding to be able make holds','Integer'),
217
('maxoutstanding','5','','maximum amount withstanding to be able make holds','Integer'),
218
('maxRecordsForFacets','20',NULL,NULL,'Integer'),
218
('maxRecordsForFacets','20',NULL,NULL,'Integer'),
219
('maxreserves','50','','Define maximum number of holds a patron can place','Integer'),
219
('maxreserves','50','','Define maximum number of holds a patron can place','Integer'),
220
('MaxSearchResultsItemsPerRecordStatusCheck','20','','Max number of items per record for which to check transit and hold status','Integer'),
220
('MembershipExpiryDaysNotice',NULL,'Send an account expiration notice that a patron\'s card is about to expire after',NULL,'Integer'),
221
('MembershipExpiryDaysNotice',NULL,'Send an account expiration notice that a patron\'s card is about to expire after',NULL,'Integer'),
221
('MergeReportFields','',NULL,'Displayed fields for deleted MARC records after merge','Free'),
222
('MergeReportFields','',NULL,'Displayed fields for deleted MARC records after merge','Free'),
222
('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'),
223
('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'),
(-)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