This commit adds a link to the record summary screen in the public opac that allows...
authorChristine Morgan <cmorgan@noblenet.org>
Thu, 29 Sep 2016 15:22:03 +0000 (11:22 -0400)
committerChristine Morgan <cmorgan@noblenet.org>
Thu, 29 Sep 2016 15:22:03 +0000 (11:22 -0400)
Signed-off-by: Christine Morgan <cmorgan@noblenet.org>
Open-ILS/src/templates/opac/parts/record/summary.tt2

index b2bd5e5..fdee08c 100644 (file)
@@ -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 ||
             </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 %]
-            <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') %]" />
-                     [% l('Permalink') %]
-                </a>
-            </div>
+                       [%  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 %]
+                               [% 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 %]
+
+
+                               <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') %]" />
+                                                [% l('Permalink') %]
+                                       </a>
+                               </div>
+
             [%- IF ctx.is_staff %]
             <div class="rdetail_aux_utils clear_addedcontent_cache">
                 <a href="[% ctx.media_prefix %]/opac/extras/ac/clearcache/all/r/[% ctx.bre_id | uri %]" class="no-dec" target="_blank">
@@ -181,6 +207,21 @@ IF num_uris > 0;
 [%- END %]
 
 <h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 <ul>
     [%- IF attrs.isbns.0;
           FOR isbn IN attrs.isbns;
@@ -209,6 +250,12 @@ IF num_uris > 0;
         <span class='rdetail_value'>[% attrs.phys_desc | html %]</span>
     </li>
     [%- END %]
+
+
+
+
+
+
     [%- IF attrs.edition %]
     <li id='rdetail_edition'>
         <strong class='rdetail_label'>[% l("Edition:") %]</strong>
@@ -323,10 +370,159 @@ IF num_uris > 0;
         [%- END -%]
         </span>
     </li>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
     [%- END %]
 </ul>
 
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 [%- INCLUDE "opac/parts/record/contents.tt2" %]
 [%- INCLUDE "opac/parts/record/subjects.tt2" %]
 [%- INCLUDE "opac/parts/record/series.tt2" %]
+
+
+
+
+
 [%- INCLUDE "opac/parts/record/extras.tt2" %]
+
+
+
+
+
+
+