From: Jeff Godin Date: Wed, 3 Oct 2012 18:08:01 +0000 (-0400) Subject: HACK: Use hardcoded fi:format selector X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=59da076b927c7b4e520425ba3bdb9fedf6c12f51;p=evergreen%2Ftadl.git HACK: Use hardcoded fi:format selector This is a hack / proof of concept which may be rendered unnecessary by changes in post-2.2 releases of Evergreen. The intent is to allow searching for "E-Books" and "Large Print Books" by switching to a "format" search filter instead of an "item_type" filter. We are hardcoding the choices of format, and generating the +[% IF none_ok %] + +[% END; +FOR o IN item_formats; %] + +[% END -%] + + diff --git a/templates_tadlskin/opac/parts/searchbar.tt2 b/templates_tadlskin/opac/parts/searchbar.tt2 index b47e3ae65a..da24ffef14 100644 --- a/templates_tadlskin/opac/parts/searchbar.tt2 +++ b/templates_tadlskin/opac/parts/searchbar.tt2 @@ -28,7 +28,7 @@ [% IF ctx.bookbag %]