From 462a352a44553f4815536c9de595570685bfcd83 Mon Sep 17 00:00:00 2001 From: Ben Shum Date: Sat, 8 Feb 2014 11:14:23 -0500 Subject: [PATCH] Fix copy_info variables one last time for library_name_link purposes In cd056eba75038c6a1fabd2a83ba97d81a444bc75, I fixed record by inadvertently passing around the wrong variables. In fact, we do not need the value set there, and we broke results view as a result of the swap around. Put things right what once went wrong. Signed-off-by: Ben Shum Signed-off-by: Dan Scott --- Open-ILS/src/templates/opac/parts/record/copy_table.tt2 | 4 +--- Open-ILS/src/templates/opac/parts/result/table.tt2 | 2 +- 2 files changed, 2 insertions(+), 4 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 2681993ba1..a19421885a 100644 --- a/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/copy_table.tt2 @@ -94,9 +94,7 @@ END; # FOREACH bib [%- copy_info.holding_label | html; -%] [%- ELSE %] - [%- copy = copy_info; - INCLUDE "opac/parts/library_name_link.tt2"; - -%] + [%- INCLUDE "opac/parts/library_name_link.tt2"; -%] [% END %] diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index e960a63cd4..3d77b9098b 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -247,7 +247,7 @@ END; [% FOR copy IN args.holdings %] -[%- copy = copy_info; +[%- copy_info = copy; INCLUDE "opac/parts/library_name_link.tt2"; %] [% copy.location | html %] -- 2.43.2