From: Bill Erickson <berick@esilibrary.com>
Date: Mon, 12 Sep 2011 16:17:52 +0000 (-0400)
Subject: TPac: Do not URI-escape index class/names in search dropdown
X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=5366725511ca29ddeef81f92be9a92b9638ad8a2;p=evergreen%2Fmasslnc.git

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>
---

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 -%]