Signed-off-by: Mike Rylander <mrylander@gmail.com>
Signed-off-by: Lebbeous Fogle-Weekley <lebbeous@esilibrary.com>
<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') %]" />
<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>