[open-ils-commits] [GIT] Evergreen ILS branch master updated. a42f0289fd4608e47410ff2f88012052d72e4798

Evergreen Git git at git.evergreen-ils.org
Tue Oct 18 22:40:43 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  a42f0289fd4608e47410ff2f88012052d72e4798 (commit)
      from  8d941d04b0f831c125e7c0b00ce03b25f680959e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a42f0289fd4608e47410ff2f88012052d72e4798
Author: Mike Rylander <mrylander at gmail.com>
Date:   Tue Oct 18 19:54:42 2011 -0400

    remove the Sort by Relavance option from the bookbag sort options
    
    Signed-off-by: Mike Rylander <mrylander at gmail.com>
    Signed-off-by: Lebbeous Fogle-Weekley <lebbeous at esilibrary.com>

diff --git a/Open-ILS/src/templates/opac/myopac/lists.tt2 b/Open-ILS/src/templates/opac/myopac/lists.tt2
index 0e466d4..e3a308d 100644
--- a/Open-ILS/src/templates/opac/myopac/lists.tt2
+++ b/Open-ILS/src/templates/opac/myopac/lists.tt2
@@ -129,7 +129,7 @@
             <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') %]" />
diff --git a/Open-ILS/src/templates/opac/parts/filtersort.tt2 b/Open-ILS/src/templates/opac/parts/filtersort.tt2
index a1b1fd4..8d47979 100644
--- a/Open-ILS/src/templates/opac/parts/filtersort.tt2
+++ b/Open-ILS/src/templates/opac/parts/filtersort.tt2
@@ -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>

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/src/templates/opac/myopac/lists.tt2     |    2 +-
 Open-ILS/src/templates/opac/parts/filtersort.tt2 |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list