From cd056eba75038c6a1fabd2a83ba97d81a444bc75 Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Fri, 24 Jan 2014 23:56:45 -0500 Subject: [PATCH] Fix copy_info variables for result and record view Because we yanked out the code that generates the link into a separate INCLUDE file, the function was looking for something for copy_info. The one for result was missing entirely and the one for record was backwards. Signed-off-by: Ben Shum Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/parts/record/copy_table.tt2 | 2 +- Open-ILS/src/templates/opac/parts/result/table.tt2 | 3 ++- 2 files changed, 3 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 b5fdd944ad..2681993ba1 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -94,7 +94,7 @@ END; # FOREACH bib [%- copy_info.holding_label | html; -%] [%- ELSE %] - [%- copy_info = copy; + [%- copy = copy_info; INCLUDE "opac/parts/library_name_link.tt2"; -%] diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 01221529f2..e960a63cd4 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -247,7 +247,8 @@ END; [% FOR copy IN args.holdings %] -[%- INCLUDE "opac/parts/library_name_link.tt2" %] +[%- copy = copy_info; + INCLUDE "opac/parts/library_name_link.tt2"; %] [% copy.location | html %] [% copy.label | html %] -- 2.11.0