LP#1703678 Display foreign item location and status
authorDan Scott <dan@coffeecode.net>
Wed, 12 Jul 2017 14:07:23 +0000 (10:07 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 22 Aug 2017 14:48:10 +0000 (10:48 -0400)
We were using copy_info instead of the foreign item's data to try to display
location and status of foreign items. As copy_info had not been initialized,
it displayed nothing. Use the foreign item data instead for location and
status.

Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Mike Rylander <mrylander@gmail.com>

Open-ILS/src/templates/opac/parts/record/copy_table.tt2

index 874c10e..0b6266d 100644 (file)
@@ -72,8 +72,8 @@ IF has_copies or ctx.foreign_copies;
     </td>
     <td>[% bib.target_copy.call_number.label | html %]</td>
     <td>[% bib.target_copy.barcode | html %]</td>
-    <td>[% copy_info.copy_location | html %]</td>
-    <td>[% copy_info.copy_status | 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>
 </tr>
    [%- END; # FOREACH peer