[Koha-devel] An idea for consolidating staff interface header search forms

Owen Leonard oleonard at myacpl.org
Thu Jul 9 19:25:32 CEST 2020


I'm playing around with the idea of eliminating all the many search
form include files (serials-search.inc, cat-search.inc,
checking-search.inc, etc.) and replacing them with a single template
which can be processed in different ways.

For instance, in the circulation-home.tt template, "[% INCLUDE
'circ-search.inc' %]" would be replaced with "[% PROCESS
header_searches.inc searches="circulation_searches" %]"

In header_searches.inc (see https://gitlab.com/snippets/1994424), an
array of search forms and their labels would be output according to
the "searches" variable passed to the include file for processing.

Unfortunately this doesn't appear to be translatable, but Bug 20988
might make it possible.

Does this sound like a worthwhile pursuit? A sensible way to leverage
Template toolkit's functionality?

Thanks,

 -- Owen

-- 
Web Developer
Athens County Public Libraries
(740) 737-6006
https://www.myacpl.org


More information about the Koha-devel mailing list