Bug 38108

Summary: Staff interface holdings table - table navigation only shows when "Show filters" is selected
Product: Koha Reporter: David Nind <david>
Component: Staff interfaceAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: gmcharlt, jonathan.druart
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=38110
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 38071    
Bug Blocks:    

Description David Nind 2024-10-07 19:52:05 UTC
In current main (October 2024), the holdings table for a record in the staff interface does not show the standard DataTable navigation elements until "Show filters" is clicked.

I think that the standard table navigation elements should be shown by default.

To replicate:

1. Go to a record in the staff interface with multiple items (for example record 146, The definitive guide to Catalyst : writing extensible, scalable, and maintainable Perl-based Web applications <staffinterfaceurl>/cgi-bin/koha/catalogue/detail.pl?biblionumber=146).

2. In the holdings table section, note that you have to click on "Show filters" for the standard table navigation elements to display:

   Showing 1 to 4 of 4 entries
   -------------------------------------
   Show 20 entries First Previous Next Last Search: _______ Clear filter
   ....

Other notes:
1. Behavour for previous versions - note that before 24.05.00 and bug 33568, all items were shown without any pagination, even for hundreds of items:
   . 24.05.00: navigation only shown once "Show filters" is clicked
   . 23.11.06: partial table navigation "Showing 1 of 1 entries Search______ Clear filter"
   . 23.05.14: the same as 23.11.06
2. Bug 33568 - Use the REST API to display items on the staff biblio detail view: totally rewrote the display of the items table
Comment 1 Jonathan Druart 2024-10-08 14:12:26 UTC
It is displayed if needed.

The idea here is to keep the UI as minimal as possible.
If length is 20 and you have <= 20 items, the pagination won't be displayed.

If you have more, the pagination will be displayed even if "Show filters" is not clicked.