kpac : honor no-search propagation (nosprop) param on homesearch
authorBill Erickson <berick@esilibrary.com>
Tue, 29 May 2012 13:43:07 +0000 (09:43 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 30 Jul 2012 19:05:04 +0000 (15:05 -0400)
When performing category-based searches, do not propagate the searches
into the search box on the home page, similar to the results page search
box.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/templates/kpac/home.tt2

index 513d8fe..ab70a89 100644 (file)
@@ -35,7 +35,8 @@
                                 [% IF qtype == 'author' %]checked="checked"[% END %]/></td>
                             <td class="st_label st_author_box"><label for="st_author">[% l('Author') %]</label></td>
 
-                            <td><input type="text" class="search_box" name="query" value="[% CGI.param('query') | html %]"/></td>
+                            <td><input type="text" class="search_box" name="query" 
+                                value="[% CGI.param('nosprop') ? '' : CGI.param('query') | html  %]"/></td>
                             <td><input type="image" src="[% ctx.media_prefix %]/images/kpac/search_btn.png" alt="search" /></td>
                         </tr>
                     </table>