LP#1703678 Display foreign item location and status
authorDan Scott <dan@coffeecode.net>
Wed, 12 Jul 2017 14:07:23 +0000 (10:07 -0400)
committerDan Scott <dscott@laurentian.ca>
Wed, 12 Jul 2017 20:22:02 +0000 (16:22 -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>
Open-ILS/src/templates/opac/parts/record/copy_table.tt2

index 19965a0..1f81cd0 100644 (file)
@@ -67,8 +67,8 @@ END;
     </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.location.status.name | html %]</td>
     <td>[% copy_info.due_date | html %]</td>
 </tr>
    [%- END; # FOREACH peer