LP #1412218 Clear OU on Advanced Search when clicking "Clear Form" user/abowling/lp1412218_clear_advanced_search_ou
authorAdam Bowling <abowling@emeralddata.net>
Thu, 29 Jan 2015 19:30:24 +0000 (14:30 -0500)
committerAdam Bowling <abowling@emeralddata.net>
Thu, 29 Jan 2015 19:30:24 +0000 (14:30 -0500)
Currently, upon clicking the "Clear Form" button on the Advanced
Search page, the form resets, but the location in the address bar
retains the OU which was being searched. This patch removes that
upon clicking "Clear Form"

Signed-off-by: Adam Bowling <abowling@emeralddata.net>
Open-ILS/src/templates/opac/parts/advanced/search.tt2

index 5242733..0479660 100644 (file)
@@ -39,7 +39,7 @@
                 class='hidden' alt="[% l('Search in progress icon') %]"/>
         </span>
 
-        <a href="[% mkurl(ctx.opac_root _ '/advanced', {$loc_name => loc_value}, 1) %]"
+        <a href="[% ctx.opac_root _ '/advanced' %]"
             class="opac-button">[% l('Clear Form') %]</a>
     </div>