LP#1549505: tweak default sort
authorGalen Charlton <gmc@esilibrary.com>
Wed, 30 Mar 2016 20:14:45 +0000 (16:14 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 30 Mar 2016 20:14:45 +0000 (16:14 -0400)
Changed to *always* use the default sort order (if set),
unless the invoker of searchbar.tt2 is making arrangements
to display a drop-down for sort order.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/templates/opac/parts/searchbar.tt2

index 53ee4bc..3066412 100644 (file)
     </div>
     [%- END %]
     [% UNLESS took_care_of_form %]
-        [% IF NOT CGI.param('sort').defined AND ctx.default_sort %]
+        [% IF ctx.default_sort %]
             <input type="hidden" name="sort" value="[% ctx.default_sort %]"/>
         [% END %]
         </form>