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>
[%- 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">
[% 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>