From: Ben Shum Date: Sat, 8 Feb 2014 16:14:23 +0000 (-0500) Subject: Fix copy_info variables one last time for library_name_link purposes X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=462a352a44553f4815536c9de595570685bfcd83;p=evergreen%2Fpines.git 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 --- 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 %]