Fix copy_info variables one last time for library_name_link purposes
authorBen Shum <bshum@biblio.org>
Sat, 8 Feb 2014 16:14:23 +0000 (11:14 -0500)
committerDan Scott <dscott@laurentian.ca>
Sat, 8 Feb 2014 21:12:33 +0000 (16:12 -0500)
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 <bshum@biblio.org>
Signed-off-by: Dan Scott <dscott@laurentian.ca>
Open-ILS/src/templates/opac/parts/record/copy_table.tt2
Open-ILS/src/templates/opac/parts/result/table.tt2

index 2681993..a194218 100644 (file)
@@ -94,9 +94,7 @@ END; # FOREACH bib
                 [%- copy_info.holding_label | html; -%]
             </td>
             [%- ELSE %]<td headers='copy_header_library'>
-            [%- copy = copy_info;
-                INCLUDE "opac/parts/library_name_link.tt2";
-            -%]
+            [%- INCLUDE "opac/parts/library_name_link.tt2"; -%]
                 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
                 <link property="itemOffered" href="#schemarecord">
             </td>[% END %]
index e960a63..3d77b90 100644 (file)
@@ -247,7 +247,7 @@ END;
                                                                 [% FOR copy IN args.holdings %]
                                                                         <tr>
                                                                             <td>
-[%- copy = copy_info;
+[%- copy_info = copy;
     INCLUDE "opac/parts/library_name_link.tt2"; %]
                                                                             </td>
                                                                             <td>[% copy.location | html %]</td>