|| $item->{itemlost}
|| $item->{damaged}
|| $item->{notforloan}
- || $items_count > 20) {
+ || $items_count > C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck') ) {
# A couple heuristics to limit how many times
# we query the database for item transfer information, sacrificing
--- /dev/null
+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');
('maxoutstanding','5','','maximum amount withstanding to be able make holds','Integer'),
('maxRecordsForFacets','20',NULL,NULL,'Integer'),
('maxreserves','50','','Define maximum number of holds a patron can place','Integer'),
+('MaxSearchResultsItemsPerRecordStatusCheck','20','','Max number of items per record for which to check transit and hold status','Integer'),
('MembershipExpiryDaysNotice',NULL,'Send an account expiration notice that a patron\'s card is about to expire after',NULL,'Integer'),
('MergeReportFields','',NULL,'Displayed fields for deleted MARC records after merge','Free'),
('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'),
- pref: numSearchResults
class: integer
- results per page in the staff client.
+ -
+ - For records with many items, only check the availability status for the first
+ - pref: MaxSearchResultsItemsPerRecordStatusCheck
+ class: integer
+ - 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.
-
- By default, sort search results in the OPAC by
- pref: OPACdefaultSortField