Updates to adjust layout issues with new UI changes.
authorTerran McCanna <tmccanna@georgialibraries.org>
Tue, 23 Dec 2014 21:09:53 +0000 (16:09 -0500)
committerChris Sharp <csharp@georgialibraries.org>
Sat, 9 Dec 2017 19:33:58 +0000 (14:33 -0500)
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Open-ILS/src/templates/opac/parts/record/summary.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2

index 2db60aa..644ee9c 100644 (file)
@@ -207,6 +207,28 @@ IF ebook_api.enabled == 'true';
 END;
 [%- END %]
 
+[%- merged_uris = args.uris.merge(args.online_res);
+num_uris = merged_uris.size;
+IF num_uris > 0;
+-%]
+<h2 class="rdetail_uris" style="margin-top:50px;" >[% l("Related electronic resources") %]</h2>
+<div class="rdetail_uris">
+    [%- IF num_uris > 1 %]<ul>[% END %]
+    [%- FOR uri IN merged_uris %]
+        [%- IF num_uris == 1 -%]
+            <p class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
+        [%- ELSE -%]
+            <li class="rdetail_uri" property="offers" vocab="http://schema.org/" typeof="Offer">
+        [%- END -%]
+        <a href="[% uri.href %]">[% uri.link %]</a>[% ' - ' _ uri.note IF uri.note %]
+        <link property="availability" href="http://schema.org/OnlineOnly" />
+        [%- IF attrs.gtin13; '<meta property="gtin13" content="' _ attrs.gtin13 _ '" />'; END; %]
+        [%- IF num_uris == 1 %]</p>[% ELSE %]</li>[% END %]
+    [%- END %]
+    [%- IF num_uris > 1 %]</ul>[% END %]
+</div>
+[%- END %]
+
 [%- # Hold/copy summary
     IF ctx.copy_summary.0.count
 %]
index c23525a..417635c 100644 (file)
@@ -148,8 +148,10 @@ END;
                                                                 src="[% format.icon %]" /> 
                                                             [% format.label | html %]
                                                         [% END %]
-                                                    [%- END %]
-                                                    [%- UNLESS show_detail_view;
+                                                    [%- END %]<br/>
+                                                    [%- UNLESS CGI.param('detail_record_view')
+                                                            OR (show_more_details.default == 'true'
+                                                            OR show_more_details.default == 'hide');
                                                             IF attrs.pubdate;
                                                                 pubdate_clean = attrs.pubdate | html;
                                                                 l("Publication Date: ([_1])", pubdate_clean);
@@ -174,9 +176,9 @@ END;
                                                            [% IF args.holdings.size > 0 %]
                                                         <tr name='bib_cn_list' class='result_table_title_cell'>
                                                             <td valign='top'>
-                                                                <strong>[% l('Call number:') %]</strong>
+                                                                <strong>[% l('Call Number:') %]</strong>
                                                             </td>
-                                                            <td>[% args.holdings.0.label | html %]</td>
+                                                            <td><strong>[% args.holdings.0.label | html %]</strong></td>
                                                         </tr>
                                                            [% END %]
                                                         [% END %]