Bug 38074

Summary: It should be possible to define the default size of the holdings table on the details page
Product: Koha Reporter: Nick Clemens (kidclamp) <nick>
Component: Staff interfaceAssignee: Nick Clemens (kidclamp) <nick>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 33568    
Bug Blocks:    
Attachments: Bug 38074: Add HoldingsTableDefaultLength system preference

Description Nick Clemens (kidclamp) 2024-10-03 13:15:37 UTC
Some systems may want to see more than 20 items by default on the holdings table - say a consortium with 25 members.

It should be possible to configure the default page length
Comment 1 Nick Clemens (kidclamp) 2024-10-03 13:48:55 UTC
Created attachment 172340 [details] [review]
Bug 38074: Add HoldingsTableDefaultLength system preference

This patch adds anew preference to allow determining the default number of items shown on the details page.

To test:
 1 - Add 100 items to a bib record
 2 - View the holdings tab on the details page
 3 - NOte default of 20 shown
 4 - Apply patch, update database
 5 - Reload the page (clear cache), no change
 6 - Set new system preference HoldingsTableDefaultLength to 32
 7 - Reload page, note 32 items loaded, dropdown of results per page includes 32
 8 - Set pref to 50
 9 - Reload page, 50 items displayed, dropdown set to 50
10 - Set pref to -1
11 - Reload page, all items displayed
12 - Set pref to 100
13 - Reload page, 100 items displayed, no page dropdown
     (This is a bug but seems to be present before this patch as well)
Comment 2 Nick Clemens (kidclamp) 2024-10-03 14:05:21 UTC
Hah, we have this feature in column settings - a bit more granularity could be nice, but closing this
Comment 3 Nick Clemens (kidclamp) 2024-10-03 14:10:03 UTC

*** This bug has been marked as a duplicate of bug 35191 ***