Bug 13022 [QA Followup] - Allow the pref to be unset for unlimited item status checks

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Signed-off-by: Brendan Gallagher brendan@bywatersolutions.com
This commit is contained in:
Kyle M Hall 2015-04-17 09:51:03 -04:00 committed by Brendan Gallagher
parent d3184fa85b
commit 7ab9d7d91d
2 changed files with 5 additions and 2 deletions

View File

@ -2095,7 +2095,8 @@ sub searchResults {
|| $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

View File

@ -152,7 +152,9 @@ Searching:
- 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