From: Dan Scott Date: Wed, 12 Jul 2017 14:07:23 +0000 (-0400) Subject: LP#1703678 Display foreign item location and status X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=6a144c779e4fa5b02ffd92e309eaa79f0891eb46;p=contrib%2FConifer.git LP#1703678 Display foreign item location and status 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 Signed-off-by: Mike Rylander --- diff --git a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 index 874c10e89d..0b6266dc39 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -72,8 +72,8 @@ IF has_copies or ctx.foreign_copies; [% bib.target_copy.call_number.label | html %] [% bib.target_copy.barcode | html %] - [% copy_info.copy_location | html %] - [% copy_info.copy_status | html %] + [% bib.target_copy.location.name | html %] + [% bib.target_copy.status.name | html %] [% date.format(ctx.parse_datetime(copy_info.due_date, copy_info.circ_circ_lib),DATE_FORMAT) %] [%- END; # FOREACH peer