https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20732
--- Comment #5 from Arthur Suzuki <[email protected]> --- Created attachment 209049 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209049&action=edit Bug 20732: Hide Holdings tab on OPAC detail pages when record has no items The Holdings tab was always displayed, showing 'Holdings (0)' for records without physical items. This misled users into thinking the library did not have the item, when in fact it may be online or a component of a larger record. The OPAC (opac-detail.tt) now hides the Holdings tab nav item and panel when the record has no items. The default tab JavaScript falls back to the first available tab when the Holdings panel is absent. The 'No physical items' and ALTERNATEHOLDINGS branches inside the holdings panel were removed as they are unreachable when the panel is hidden. Test plan: 1. Create a bibliographic record with no items, e.g. an online resource. 2. Open the record's detail page in the OPAC. => The Holdings tab is not displayed and the first available tab is shown by default. 3. Add an item to the record and reload the page. => The Holdings tab is displayed again, with the item count. -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected] website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
