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

Evergreen Git git at git.evergreen-ils.org
Fri Nov 4 10:02:59 EDT 2016


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  ad0f60ac409b8434a5ee3e552b2efa0358ae6a00 (commit)
      from  0dbc5053becba1e0fc453578958ccc159dac56a5 (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 ad0f60ac409b8434a5ee3e552b2efa0358ae6a00
Author: Christine Morgan <cmorgan at noblenet.org>
Date:   Thu Oct 6 11:58:20 2016 -0400

    LP 1628966: View Temporary/My Lists from Record Summary
    
    This commit adds a link to the record summary screen in the public
    opac that allows access to a temporary list or, if logged in, all your
    lists.
    
    Signed-off-by: Christine Morgan <cmorgan at noblenet.org>
    Signed-off-by: Terran McCanna <tmccanna at georgialibraries.org>
    Signed-off-by: Kathy Lussier <klussier at masslnc.org>
    Signed-off-by: Jason Stephenson <jason at sigio.com>

diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2
index 4fa0ba8..22ce3c2 100644
--- a/Open-ILS/src/templates/opac/parts/record/summary.tt2
+++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2
@@ -32,6 +32,8 @@
         <br />
     </div>
     <div id="format_actions">
+
+
         [%- IF attrs.format_label %]
           [% FOR format IN attrs.all_formats %]
               <img title="[% format.label | html %]" 
@@ -40,6 +42,7 @@
               [% format.label | html %]
           [% END %]
         [%- END %]
+
         <div id="rdetail_actions_div">
             [%- search_ou = ctx.search_ou;
                 IF ctx.place_unfillable ||
@@ -56,28 +59,37 @@
             </div>
             [%- END -%]
             <div class="rdetail_aux_utils toggle_list">
-            [%  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>
-            [% END %]
-            </div>
-            <div class="rdetail_aux_utils">
-                <img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('Print / Email Actions Image') %]" />
-                <a href="[% mkurl(ctx.opac_root _ '/record/print/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
-                <a href="[% mkurl(ctx.opac_root _ '/record/email/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
-            </div>
-            [%- IF ctx.refworks.enabled == 'true' %]
-                [%- INCLUDE 'opac/parts/record/refworks.tt2' %]
-            [%- END %]
-			[% IF !ctx.is_staff %]
+			[%  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>
+			[% END %]
+			</div>
+			<div class="rdetail_aux_utils toggle_list">
+					[% IF ctx.mylist.size %]
+						[%- IF ctx.user; %]
+						<a href="[% mkurl(ctx.opac_root _ '/myopac/lists') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('View My Lists') %]" />[% l(' View My Lists') %]</a>
+						[%- ELSE %]
+						<a href="[% mkurl(ctx.opac_root _ '/mylist') %]" class="no-dec" rel="nofollow" vocab=""><img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('View My Temporary List') %]" />[% l(' View My Temporary List') %]</a>
+						[%- END %]
+					[% END %]
+				</div>
+				<div class="rdetail_aux_utils">
+					<img src="[% ctx.media_prefix %]/images/clipboard.png" alt="[% l('Print / Email Actions Image') %]" />
+					<a href="[% mkurl(ctx.opac_root _ '/record/print/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Print') %]</a> /
+					<a href="[% mkurl(ctx.opac_root _ '/record/email/' _ ctx.bre_id) %]" class="no-dec" rel="nofollow" vocab="">[% l('Email') %]</a>
+				</div>
+				[%- IF ctx.refworks.enabled == 'true' %]
+					[%- INCLUDE 'opac/parts/record/refworks.tt2' %]
+				[%- END %]
+                         [% IF !ctx.is_staff %]
 				<div class="rdetail_aux_utils share_record">
 					<a href="[% mkurl('', {locg =>CGI.param('locg'), copy_depth =>CGI.param('copy_depth')}, 1) %]" class="no-dec">
 						 <img src="[% ctx.media_prefix %]/images/link.png" alt="[% l('Permalink') %]" />
@@ -327,7 +339,6 @@ IF num_uris > 0;
     </li>
     [%- END %]
 </ul>
-
 [%- INCLUDE "opac/parts/record/contents.tt2" %]
 [%- INCLUDE "opac/parts/record/subjects.tt2" %]
 [%- INCLUDE "opac/parts/record/series.tt2" %]

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

Summary of changes:
 .../src/templates/opac/parts/record/summary.tt2    |   57 ++++++++++++--------
 1 files changed, 34 insertions(+), 23 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list