Fix copy_info variables for result and record view
authorBen Shum <bshum@biblio.org>
Sat, 25 Jan 2014 04:56:45 +0000 (23:56 -0500)
committerDan Scott <dscott@laurentian.ca>
Sat, 25 Jan 2014 14:20:34 +0000 (09:20 -0500)
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 <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 b5fdd94..2681993 100644 (file)
@@ -94,7 +94,7 @@ END; # FOREACH bib
                 [%- copy_info.holding_label | html; -%]
             </td>
             [%- ELSE %]<td headers='copy_header_library'>
-            [%- copy_info = copy;
+            [%- copy = copy_info;
                 INCLUDE "opac/parts/library_name_link.tt2";
             -%]
                 <link property="businessFunction" href="http://purl.org/goodrelations/v1#LeaseOut">
index 0122152..e960a63 100644 (file)
@@ -247,7 +247,8 @@ END;
                                                                 [% FOR copy IN args.holdings %]
                                                                         <tr>
                                                                             <td>
-[%- INCLUDE "opac/parts/library_name_link.tt2" %]
+[%- copy = copy_info;
+    INCLUDE "opac/parts/library_name_link.tt2"; %]
                                                                             </td>
                                                                             <td>[% copy.location | html %]</td>
                                                                             <td>[% copy.label | html %]</td>