Temporary Lists: Hide temporary list functionality until bug is resolved.
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 3 Jan 2017 22:12:00 +0000 (17:12 -0500)
committerTerran McCanna <tmccanna@georgialibraries.org>
Tue, 3 Jan 2017 22:12:00 +0000 (17:12 -0500)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/opac/parts/bookbag_actions.tt2
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2

index 611d1fc..11a41f3 100644 (file)
           [% l("Add to my list") %]
         </a>
     <ul>
+    <!-- PINES Customization: Hide Temporary List Option until Bug Fixed 
     <li class="[% tclass %]">
     <a href="[% href %]">[% l('Temporary List') %]</a>
     </li>
+    -->
     [% IF default_list;
        label = (ctx.default_bookbag) ? ctx.default_bookbag : l('Default List');
        class = (ctx.bookbags.size) ? "default divider" : "default";
index e2954d8..b00f663 100644 (file)
             [%  IF ctx.user;
                 INCLUDE "opac/parts/bookbag_actions.tt2";
             %]
-            [%  ELSE;
-                operation = ctx.mylist.grep(ctx.bre_id).size ? "delete" : "add";
-                label = (operation == "add") ? l("Add to my list") : l("Remove from my list"); 
-            %]
-                <a href="[% mkurl(ctx.opac_root _ '/mylist/' _ operation, {record => ctx.bre_id}, stop_parms) %]" class="no-dec" rel="nofollow" vocab="">
-                    <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
-                    [% label %]
-                </a>
+<!-- PINES Customization: remove Temporary List block if not logged in -->
+            [% ELSE %]
+                <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
+                <i>[% l('Log in to use Lists') %]</i>
                                <a href="http://pines.georgialibraries.org/catalog-help#my_list" target="_blank">
-                       <img src="[% ctx.media_prefix %]/images/question-mark.png" alt="Learn about lists" border=0></a>
+                               <img src="[% ctx.media_prefix %]/images/question-mark.png" alt="Learn about lists" border=0></a>
             [% END %]
             </div>
                        <!-- Hide for PINES since they do not include call number or holdings information
index 883d59b..2ba4d2e 100644 (file)
@@ -395,20 +395,10 @@ END;
                                                             [%  IF ctx.user;
                                                                 INCLUDE "opac/parts/bookbag_actions.tt2";
                                                             %]
-                                                            [%  ELSE;
-                                                                operation = ctx.mylist.grep(rec.id).size ? "delete" : "add";
-                                                                label = (operation == "add") ?  l("Add to my list") : l("Remove from my list");
-                                                                title_label = (operation == "add") ? 
-                                                                  l("Add [_1] to my list", attrs.title) : 
-                                                                  l("Remove [_1] from my list", attrs.title);
-                                                                href = mkurl(ctx.opac_root _ '/mylist/' _ operation, 
-                                                                        {record => rec.id, anchor => 'record_' _ rec.id}, 1);
-                                                            %]      
-                                                            <a href="[% href %]" class="no-dec" 
-                                                                [% html_text_attr('title', title_label) %] rel="nofollow" vocab="">
-                                                                <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
-                                                                [% label %]
-                                                            </a>
+                                                            <!-- PINES Customization: remove Temporary List block if not logged in -->
+                                                            [% ELSE %]
+                                                            <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="" />
+                                                            <i>[% l('Log in to use Lists') %]</i>
                                                                                                                        <a href="http://pines.georgialibraries.org/catalog-help#my_list" target="_blank">
                                                                                                                            <img src="[% ctx.media_prefix %]/images/question-mark.png" alt="Learn about lists" border=0></a>
                                                             [% END %]