remove the Sort by Relavance option from the bookbag sort options
authorMike Rylander <mrylander@gmail.com>
Tue, 18 Oct 2011 23:54:42 +0000 (19:54 -0400)
committerLebbeous Fogle-Weekley <lebbeous@esilibrary.com>
Wed, 19 Oct 2011 02:40:36 +0000 (22:40 -0400)
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>

Open-ILS/src/templates/opac/myopac/lists.tt2
Open-ILS/src/templates/opac/parts/filtersort.tt2

index 0e466d4..e3a308d 100644 (file)
             <form method="GET">
                 <label for="opac.result.sort">[% l("Sort list items by: ") %]</label>
                 [% INCLUDE "opac/parts/filtersort.tt2"
-                    value=CGI.param('sort') %]
+                    value=CGI.param('sort') mode='bookbag' %]
                 <input type="hidden" name="id"
                     value="[% CGI.param('id') | html %]" />
                 <input type="submit" value="[% l('Sort') %]" />
index a1b1fd4..8d47979 100644 (file)
@@ -1,5 +1,5 @@
 <select [% class ? ('class="' _ class _ '"') : '' %] id='[% id || "opac.result.sort" %]' name="[% name || 'sort' %]" [% IF submit_on_change %]onchange='this.form.submit()'[% END %]>
-    <option value=''>[% l("Sort by Relevance") %]</option>
+    [% IF mode != 'bookbag' %]<option value=''>[% l("Sort by Relevance") %]</option>[% END %]
     <optgroup label='[% l("Sort by Title") %]'>
         <option value='titlesort'[% value == 'titlesort' ? ' selected="selected"' : '' %]>[% l("Title: A to Z") %]</option>
         <option value='titlesort.descending'[% value == 'titlesort.descending' ? ' selected="selected"' : '' %]>[% l("Title: Z to A") %]</option>