Bug 33893: Use template wrapper for tabs: OPAC checkout history
authorOwen Leonard <oleonard@myacpl.org>
Mon, 5 Jun 2023 13:07:35 +0000 (13:07 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 11 Jul 2023 11:52:34 +0000 (08:52 -0300)
commit28d7108624d779934aad74931ef0aebdd9e732c2
tree6c035bf1ccb6106c25ed9743dae4768705891e18
parent2bed26db3b6e0e57c0ced394b51d3a9f07e6e662
Bug 33893: Use template wrapper for tabs: OPAC checkout history

This patch updates the OPAC checkout history page so that it uses
the new WRAPPER syntax to generate tabs markup.

This patch also updates tab WRAPPER directives in html_helpers.inc to
allow us to pass a custom id for tab links in situations like this one
where we have multiple tabs requiring unique IDs but they all point to
the same panel.

To test, apply the patch and make sure the OnSiteCheckouts system
preference is set to "disabled."

- Log into the OPAC as a patron with checkouts.
- View the checkout history page. The checkout history information
  should be displayed without any tabs.
- Enable the OnSiteCheckouts system preference and if necessary check
  out some on-site checkouts to your patron.
- On the OPAC history page there should now be three tabs: All,
  Checkouts, and On-site checokuts.
  - Switching between the tabs should filter the table accordingly.
- Test that the changes to the tab wrapper have not broken tabs on other
  pages, e.g. bibliographic details or user summary.

Signed-off-by: AlexanderBlanchardAC <alexander.blanchard@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-readingrecord.tt