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

(-)a/C4/Search.pm (-1 / +2 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 > C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck') ) {
2139
                        || ( C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck')
2140
                        && $items_count > C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck') ) ) {
2140
2141
2141
                    # A couple heuristics to limit how many times
2142
                    # A couple heuristics to limit how many times
2142
                    # we query the database for item transfer information, sacrificing
2143
                    # we query the database for item transfer information, sacrificing
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/searching.pref (-2 / +3 lines)
Lines 152-158 Searching: Link Here
152
            - For records with many items, only check the availability status for the first
152
            - For records with many items, only check the availability status for the first
153
            - pref: MaxSearchResultsItemsPerRecordStatusCheck
153
            - pref: MaxSearchResultsItemsPerRecordStatusCheck
154
              class: integer
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.
155
            - items.
156
            - <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.
157
            - <br/>Leave empty for no limit on the number of items for which to check the status.
156
        -
158
        -
157
            - By default, sort search results in the OPAC by
159
            - By default, sort search results in the OPAC by
158
            - pref: OPACdefaultSortField
160
            - pref: OPACdefaultSortField
159
- 

Return to bug 13022