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

(-)a/installer/data/mysql/mandatory/sysprefs.sql (+1 lines)
Lines 297-302 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
297
('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'),
297
('HidePatronName','0','','If this is switched on, patron\'s cardnumber will be shown instead of their name on the holds and catalog screens','YesNo'),
298
('HidePersonalPatronDetailOnCirculation', 0, '', 'Hide patrons phone number, email address, street address and city in the circulation page','YesNo'),
298
('HidePersonalPatronDetailOnCirculation', 0, '', 'Hide patrons phone number, email address, street address and city in the circulation page','YesNo'),
299
('HoldFeeMode','not_always','any_time_is_placed|not_always|any_time_is_collected','Set the hold fee mode','Choice'),
299
('HoldFeeMode','not_always','any_time_is_placed|not_always|any_time_is_collected','Set the hold fee mode','Choice'),
300
('HoldingsTableDefaultLength','0','','Default page length for the holdings table on the details page','Integer'),
300
('HoldRatioDefault','3','','Default value for the hold ratio report','Integer'),
301
('HoldRatioDefault','3','','Default value for the hold ratio report','Integer'),
301
('HoldsAutoFill','0',NULL,'If on, librarian will not be asked if hold should be filled, it will be filled automatically','YesNo'),
302
('HoldsAutoFill','0',NULL,'If on, librarian will not be asked if hold should be filled, it will be filled automatically','YesNo'),
302
('HoldsAutoFillPrintSlip','0',NULL,'If on, hold slip print dialog will be displayed automatically','YesNo'),
303
('HoldsAutoFillPrintSlip','0',NULL,'If on, hold slip print dialog will be displayed automatically','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc (+11 lines)
Lines 281-289 Link Here
281
            [offset+2] : () => all_libraries,
281
            [offset+2] : () => all_libraries,
282
        };
282
        };
283
283
284
        [% IF Koha.Preference('HoldingsTableDefaultLength') %]
285
            table_page_length = [% Koha.Preference('HoldingsTableDefaultLength') | html %];
286
            items_table_settings[tab_id].default_display_length = table_page_length;
287
            let page_size_dropdown = { 10: "10", 20: "20", 50: "50", 100: "100", "-1": "All" };
288
            if( table_page_length != -1 ){
289
                page_size_dropdown[table_page_length] = table_page_length;
290
            }
291
        [% END %]
284
        var items_table = $("#" + tab_id + '_table').kohaTable({
292
        var items_table = $("#" + tab_id + '_table').kohaTable({
285
            ajax: { url: item_table_url },
293
            ajax: { url: item_table_url },
286
            order: [],
294
            order: [],
295
            [% IF Koha.Preference('HoldingsTableDefaultLength') %]
296
                lengthMenu: [Object.keys(page_size_dropdown),Object.values(page_size_dropdown)],
297
            [% END %]
287
            embed,
298
            embed,
288
            autoWidth: false,
299
            autoWidth: false,
289
            bKohaColumnsUseNames: true,
300
            bKohaColumnsUseNames: true,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/staff_interface.pref (-1 / +6 lines)
Lines 132-137 Staff interface: Link Here
132
                  1: Allow
132
                  1: Allow
133
                  0: "Do not allow"
133
                  0: "Do not allow"
134
            - Open Document Spreadsheet (ODS) as download format in reports.
134
            - Open Document Spreadsheet (ODS) as download format in reports.
135
        -
136
            - Show
137
            - pref: HoldingsTableDefaultLength
138
              class: integer
139
            - items by default on the holdings tab of the details page.
140
            - 0 will disable this and use default of 20, -1 will default to 'All'.
135
141
136
    Options:
142
    Options:
137
        -
143
        -
138
- 

Return to bug 38074