[Koha-bugs] [Bug 17367] Showing all items must keep show holdings tab in OPAC details

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Oct 11 15:47:29 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17367

--- Comment #4 from sandboxes at biblibre.com <sandboxes at biblibre.com> ---
Created attachment 56193
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=56193&action=edit
Bug 17367 - Showing all items must keep show holdings tab in OPAC details

In OPAC details page, when record as too many items (depending on syspref
OpacMaxItemsToDisplay), they are not displayed in holdings tab.
You can click on link "Click here to view them all" to show them : page reloads
with a new arg viewallitems=1.
Also you can choose which tab is shown by default using syspref
opacSerialDefaultTab.

The bug is that when default tab is not holdings, clicking on link to show all
items will show another tab. So one must reclick on holings tab to see all
items.

This patch corrects by forcing holdings tab when arg viewallitems is defined.

Test plan :
- Create a serial record with more items than syspref OpacMaxItemsToDisplay (or
decrease this syspref)
- Select "Subscriptions tab" for syspref opacSerialDefaultTab
- Go to opac details on this record :
/cgi-bin/koha/opac-detail.pl?biblionumber=xxx
=> You see Subscriptions tab selected
- Click on Holdings tab
=> You see no items but a link "Click here to view them all"
- Click on this link
=> Without patch you see Subscriptions tab selected
=> Wih patch you see Holdings tab selected and the items

Signed-off-by: Juliette <juliette.levast at iepg.fr>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list