Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
|| $item->{itemlost}
|| $item->{damaged}
|| $item->{notforloan}
- || $items_count > C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck') ) {
+ || ( C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck')
+ && $items_count > C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck') ) ) {
# A couple heuristics to limit how many times
# we query the database for item transfer information, sacrificing
- 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.
+ - items.
+ - <br/>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.
+ - <br/>Leave empty for no limit on the number of items for which to check the status.
-
- By default, sort search results in the OPAC by
- pref: OPACdefaultSortField