From 5366725511ca29ddeef81f92be9a92b9638ad8a2 Mon Sep 17 00:00:00 2001 From: Bill Erickson <berick@esilibrary.com> Date: Mon, 12 Sep 2011 12:17:52 -0400 Subject: [PATCH] TPac: Do not URI-escape index class/names in search dropdown id|bibcn, for example, through the |uri filter turns into "id%7Cbibcn" in the option value. Pipe through |html instead, just to be safe. Signed-off-by: Bill Erickson <berick@esilibrary.com> --- Open-ILS/src/templates/opac/parts/qtype_selector.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/qtype_selector.tt2 b/Open-ILS/src/templates/opac/parts/qtype_selector.tt2 index 4b91a477bf..50896063fc 100644 --- a/Open-ILS/src/templates/opac/parts/qtype_selector.tt2 +++ b/Open-ILS/src/templates/opac/parts/qtype_selector.tt2 @@ -9,7 +9,7 @@ <select name="qtype"> [% query_type = query_type || CGI.param('qtype'); FOR qt IN query_types -%] - <option value='[% qt.value | uri %]'[% + <option value='[% qt.value | html %]'[% query_type == qt.value ? ' selected="selected"' : '' %]>[% qt.label | html %]</option> [% END -%] -- 2.11.0