[Koha-bugs] [Bug 30289] Use Template::Toolkit WRAPPER to reduce template boilerplate

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 7 13:27:17 CEST 2022


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

--- Comment #5 from David Cook <dcook at prosentient.com.au> ---
Created attachment 133074
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=133074&action=edit
Bug 30289: Demonstrate using a WRAPPER with opac-library.pl

This patch replaces template boiler plate by using the
Template::Toolkit directive WRAPPER.

Test plan:
1. Go to http://localhost:8080/cgi-bin/koha/opac-library.pl
2. Outputs a list of libraries
3. Go to http://localhost:8080/cgi-bin/koha/opac-library.pl?branchcode=CPL
4. Outputs details for Centerville library only

FIXME: I still need to improve the handling of the <title> element
and the breadcrumbs, but those shouldn't be too challenging.

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


More information about the Koha-bugs mailing list