From 6a144c779e4fa5b02ffd92e309eaa79f0891eb46 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Wed, 12 Jul 2017 10:07:23 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/parts/record/copy_table.tt2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.43.2