Bug 7508 - Collapsable items on items tab
Summary: Collapsable items on items tab
Status: Failed QA
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Owen Leonard
QA Contact:
URL: /cgi-bin/koha/catalogue/moredetail.pl...
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-07 16:58 UTC by Nicole C. Engard
Modified: 2024-11-22 19:08 UTC (History)
5 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Small patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Screenshot showing the proposed menu expansion (24.52 KB, image/png)
2019-04-15 16:08 UTC, Owen Leonard
Details
Bug 7508: Collapsable items on items tab (8.90 KB, patch)
2024-07-17 16:19 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 7508: Collapsable items on items tab (8.96 KB, patch)
2024-08-21 18:42 UTC, Brendan Lawlor
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Nicole C. Engard 2012-02-07 16:58:52 UTC
It would be nice if on the items detail tab in the staff client you could click a little arrow to collapse the item details so you only see the one or ones you want without having to scroll too much.
Comment 1 Owen Leonard 2019-04-15 16:08:41 UTC
Created attachment 88025 [details]
Screenshot showing the proposed menu expansion

I don't know if this is still an issue for anyone, but this screenshot shows an idea I had about making it easier to navigate to specific items. I suspect barcode wouldn't necessarily be the best identifier for everyone, but not sure what would make more sense.
Comment 2 Katrin Fischer 2019-04-28 21:46:15 UTC
Hi Owen, I like the idea :)

Wondering about the best identifier too. The only other thing I could think of is using callnumber + copynumber. But that might not differ for all libraries.

Could some kind of accordeon view also make sense? The selected or linked to item would be uncollapsed, the others collapsed.
Comment 3 Owen Leonard 2024-07-17 16:19:28 UTC
Created attachment 169102 [details] [review]
Bug 7508: Collapsable items on items tab

Since we recently updated the patron entry form in the staff interface
to have more visibly-collapsible sections I thought there might be
interest in picking up this old bug.

The patch implements collapsible sections on the item detail page,
allowing the user to hide sections by clicking the item barcode header.
The patch includes relocation of some JS code from the authority and
MARC editors into the global JS file. This is the code that helps jump
the user to a certain scroll point on the page.

To test, apply the patch and clear your browser cache.

- In the staff interface, locate a bibliographic record with items and
  view the detail page.
- Click the "Items" tab in the sidebar.
- On the item detail page, each section should have an icon indicating
  that they are expanded. Hovering your mouse over the section heading
  should highlight the clickable area.
- Test that each section collapses correctly and that the next section
  is moved into view.

- Go to Cataloging -> New record. Test that the links to specific tags
  under the main tab bar still work to jump you to the correct part of
  the page.
- Go to Authorities -> New authority and perform the same test.

Sponsored-by: Athens County Public Libraries
Comment 4 Owen Leonard 2024-07-17 16:20:28 UTC
I don't know if this is a change that folks want, but I thought it would be fun to try it out. Please comment if you think it's a bad idea.
Comment 5 Martin Renvoize (ashimema) 2024-07-22 08:08:06 UTC
I quite like this.. but I also like the screenshot where you proposed a collapsible left side menu addition.
Comment 6 Myka Kennedy Stephens 2024-07-23 14:15:02 UTC
I haven't had a chance to test the patch yet, but this does sound like it would help library systems that have a lot of items on a record. Another similar suggestion I received from a librarian was to make clicking the barcode from the holdings table in the bib record show only the item with that barcode with a link to view all items -- the same behavior that Koha has when clicking on a barcode from the holds queue or the patron checkouts table. Would these collapsible sections in the items detail tab replace the need for that hidden items and view all link behavior? In other words, could clicking a barcode from all these places take you to the item details page (moredetail.pl) where all items are collapsed except for the one related to the barcode that was clicked on?
Comment 7 Brendan Lawlor 2024-08-21 18:42:11 UTC
Created attachment 170575 [details] [review]
Bug 7508: Collapsable items on items tab

Since we recently updated the patron entry form in the staff interface
to have more visibly-collapsible sections I thought there might be
interest in picking up this old bug.

The patch implements collapsible sections on the item detail page,
allowing the user to hide sections by clicking the item barcode header.
The patch includes relocation of some JS code from the authority and
MARC editors into the global JS file. This is the code that helps jump
the user to a certain scroll point on the page.

To test, apply the patch and clear your browser cache.

- In the staff interface, locate a bibliographic record with items and
  view the detail page.
- Click the "Items" tab in the sidebar.
- On the item detail page, each section should have an icon indicating
  that they are expanded. Hovering your mouse over the section heading
  should highlight the clickable area.
- Test that each section collapses correctly and that the next section
  is moved into view.

- Go to Cataloging -> New record. Test that the links to specific tags
  under the main tab bar still work to jump you to the correct part of
  the page.
- Go to Authorities -> New authority and perform the same test.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Comment 8 Brendan Lawlor 2024-08-21 18:45:33 UTC
This works well and would be really useful on records with many items attached.

By the way I also like the idea from the og screenshot of the collapsible list of barcodes under items in the left pane menu.
Comment 9 Lucas Gass (lukeg) 2024-11-22 18:52:52 UTC
This is wonderful and gives me pure joy.
Comment 10 Lucas Gass (lukeg) 2024-11-22 19:08:55 UTC
Koha does allow me to create items without barcodes, I don't know how common that is but I can do it. Without a barcode the heading just reads 'Barcode' that is a bit confusing. 

Can we use itemnumber, or fall back to itemnumber?