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

(-)a/C4/Search.pm (-1 / +1 lines)
Lines 2000-2006 sub searchResults { Link Here
2000
                        || $item->{itemlost}
2000
                        || $item->{itemlost}
2001
                        || $item->{damaged}
2001
                        || $item->{damaged}
2002
                        || $item->{notforloan}
2002
                        || $item->{notforloan}
2003
                        || $items_count > 20) {
2003
                        || $items_count > C4::Context->preference('MaxSearchResultsItemsPerRecordStatusCheck') ) {
2004
2004
2005
                    # A couple heuristics to limit how many times
2005
                    # A couple heuristics to limit how many times
2006
                    # we query the database for item transfer information, sacrificing
2006
                    # we query the database for item transfer information, sacrificing
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 192-197 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
192
('maxoutstanding','5','','maximum amount withstanding to be able make holds','Integer'),
192
('maxoutstanding','5','','maximum amount withstanding to be able make holds','Integer'),
193
('maxRecordsForFacets','20',NULL,NULL,'Integer'),
193
('maxRecordsForFacets','20',NULL,NULL,'Integer'),
194
('maxreserves','50','','Define maximum number of holds a patron can place','Integer'),
194
('maxreserves','50','','Define maximum number of holds a patron can place','Integer'),
195
('MaxSearchResultsItemsPerRecordStatusCheck','20','','Max number of items per record for which to check transit and hold status','Integer'),
195
('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'),
196
('minPasswordLength','3',NULL,'Specify the minimum length of a patron/staff password','free'),
196
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
197
('NewItemsDefaultLocation','','','If set, all new items will have a location of the given Location Code ( Authorized Value type LOC )',''),
197
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
198
('noissuescharge','5','','Define maximum amount withstanding before check outs are blocked','Integer'),
(-)a/installer/data/mysql/updatedatabase.pl (+7 lines)
Lines 8781-8786 if ( CheckVersion($DBversion) ) { Link Here
8781
    SetVersion($DBversion);
8781
    SetVersion($DBversion);
8782
}
8782
}
8783
8783
8784
$DBversion ="3.17.00.XXX";
8785
if ( CheckVersion($DBversion) ) {
8786
    $dbh->do("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');");
8787
    print "Upgrade to $DBversion done (Bug 9761: Add ConfirmFutureHolds pref)\n";
8788
    SetVersion($DBversion);
8789
}
8790
8784
=head1 FUNCTIONS
8791
=head1 FUNCTIONS
8785
8792
8786
=head2 TableExists($table)
8793
=head2 TableExists($table)
(-)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 hold and transit status for the first
153
            - pref: MaxSearchResultsItemsPerRecordStatusCheck
154
              class: integer
155
            - items.
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