show only current basket when invoking the lists page from a 'create list from basket...
authorGalen Charlton <gmc@equinoxintiative.org>
Mon, 13 Aug 2018 21:47:03 +0000 (17:47 -0400)
committerGalen Charlton <gmc@equinoxintiative.org>
Mon, 13 Aug 2018 21:47:03 +0000 (17:47 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxintiative.org>
Open-ILS/src/templates/opac/myopac/lists.tt2
Open-ILS/src/templates/opac/parts/cart.tt2
Open-ILS/src/templates/opac/parts/topnav.tt2

index b34bba7..3f76517 100644 (file)
         </table>
     </form>
 
+    [% IF CGI.param('from_basket'); %]
+    <h1>[% l("... from basket") %]</h1>
+    [% INCLUDE "opac/parts/anon_list.tt2" %]
+    [% ELSE %]
     <h1>[% l("My Existing Basket and Lists") %]</h1>
     [% INCLUDE "opac/parts/anon_list.tt2" %]
     [% IF ctx.bookbags.size %]
         [% END %]
     </div>
     [% END %]
+    [% END %]
 </div>
 [% END %]
index f4e89bc..ae587bc 100644 (file)
@@ -7,7 +7,7 @@
       <option value="[% mkurl(ctx.opac_root _ '/mylist/print', {}) %]">[% l('Print Title Details') %]</option>
       <option value="[% mkurl(ctx.opac_root _ '/mylist/email', {}) %]">[% l('Email Title Details') %]</option>
       [% IF !ctx.is_browser_staff %]
-      <option value="[% mkurl(ctx.opac_root _ '/myopac/lists', { move_cart_by_default => 1 }) %]">[% l('Add Basket to Saved List') %]</option>
+      <option value="[% mkurl(ctx.opac_root _ '/myopac/lists', { move_cart_by_default => 1, from_basket => 1 }) %]">[% l('Add Basket to Saved List') %]</option>
       [% END %]
       [% IF ctx.is_browser_staff %]
       <option value="add_cart_to_bucket">[% l('Add Basket to Bucket') %]</option>
index 68fd3bb..e9b58ff 100644 (file)
@@ -36,7 +36,7 @@
                 </div>
                 <a href="[% mkurl(ctx.opac_root _ '/myopac/main', {}, ['single', 'message_id', 'sort','sort_type', 'hid']) %]"
                     class="opac-button">[% l('My Account') %]</a>
-                <a href="[% mkurl(ctx.opac_root _ '/myopac/lists', {}, ['single', 'message_id', 'hid']) %]"
+                <a href="[% mkurl(ctx.opac_root _ '/myopac/lists', {}, ['single', 'message_id', 'hid', 'from_basket']) %]"
                     class="opac-button">[% l('My Lists') %]</a>
                 <a href="[% mkurl(ctx.opac_root _ '/logout', {}, 1) %]"
                     class="opac-button" id="logout_link">[% l('Logout') %]</a>