Removing Status and Due Date from copy table.
authorChris Sharp <csharp@georgialibraries.org>
Thu, 28 Jul 2016 14:37:45 +0000 (10:37 -0400)
committerChris Sharp <csharp@georgialibraries.org>
Mon, 22 Aug 2022 18:12:54 +0000 (14:12 -0400)
Open-ILS/src/templates/opac/parts/record/copy_table.tt2

index 23988f8..e955ad8 100644 (file)
@@ -121,30 +121,22 @@ IF has_copies or ctx.foreign_copies;
     </thead>
     <tbody class="copy_details_table">
 [%- FOREACH peer IN ctx.foreign_copies;
-    FOREACH bib IN peer.foreign_copy_maps; %]
-        <tr class="copy_details_row"><td>
-            [%- bib_lib_name = ctx.get_aou(bib.target_copy.circ_lib).name | html;
-                l("[_1] (foreign item)", bib_lib_name); -%]
-                <ul><li>
-                    <span class="bib_peer_type">[% bib.peer_type.name | html %]</span>:
-                    <a href="[% mkurl(ctx.opac_root _ '/record/' _ bib.target_copy.call_number.record) %]">
-                        <span class="bib_peer_title">[% peer.title | html %]</span> / 
-                        <span class="bib_peer_author">[% peer.author | html %]</span>
-                    </a>
-                </li></ul>
-            </td>
-            <td>[% bib.target_copy.call_number.label | html %]</td>
-            <td>[% bib.target_copy.barcode | html %]</td>
-            <td>[% bib.target_copy.location.name | html %]</td>
-            <td>[% bib.target_copy.status.name | html %]</td>
-            <td>[% date.format(ctx.parse_datetime(copy_info.due_date, copy_info.circ_circ_lib),DATE_FORMAT) %]</td>
-            [%- IF use_courses %]
-            <td></td>
-            [%- END %]
-            [%- IF ctx.geo_sort && ctx.has_valid_coords %]
-            <td>[% display_ou_distance(bib.target_copy.circ_lib) %]</td>
-            [%- END %]
-        </tr>
+        FOREACH bib IN peer.foreign_copy_maps; %]
+    <tr class="copy_details_row"><td>
+    [%- bib_lib_name = ctx.get_aou(bib.target_copy.circ_lib).name | html;
+        l("[_1] (foreign item)", bib_lib_name); -%]
+        <ul><li>
+            <span class="bib_peer_type">[% bib.peer_type.name | html %]</span>:
+            <a href="[% mkurl(ctx.opac_root _ '/record/' _ bib.target_copy.call_number.record) %]">
+                <span class="bib_peer_title">[% peer.title | html %]</span> / 
+                <span class="bib_peer_author">[% peer.author | html %]</span>
+            </a>
+        </li></ul>
+    </td>
+    <td>[% bib.target_copy.call_number.label | html %]</td>
+    <td>[% bib.target_copy.barcode | html %]</td>
+    <td>[% bib.target_copy.location.name | html %]</td>
+</tr>
    [%- END; # FOREACH peer
 END; # FOREACH bib
 -%]