From: Terran McCanna Date: Mon, 8 Nov 2021 20:05:38 +0000 (-0500) Subject: OPAC: Fix broken copy table X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=50d4311f0bb4dffdca4abaa2bb991a3d3240175d;p=evergreen%2Fpines.git OPAC: Fix broken copy table Signed-off-by: Terran McCanna --- diff --git a/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 b/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 index 8af0e6da7d..6a5be0896b 100755 --- a/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 +++ b/Open-ILS/src/templates-bootstrap/opac/parts/record/copy_table.tt2 @@ -319,23 +319,28 @@ END; # FOREACH bib ELSE; '-'; END %] - - [% - vActive = date.format(copy_info.active_date,'%Y%m%d'); - v6MonthsAgo = date.format(date.now - 15552000,'%Y%m%d'); - IF copy_info.age_protect && (vActive > v6MonthsAgo); - ''; - END; %] - - + [% END %] + + [%- IF ctx.geo_sort && ctx.has_valid_coords %] + [% display_ou_distance(copy_info.circ_lib) %] + [%- END %] + + + [% + vActive = date.format(copy_info.active_date,'%Y%m%d'); + v6MonthsAgo = date.format(date.now - 15552000,'%Y%m%d'); + IF copy_info.age_protect && (vActive > v6MonthsAgo); + ''; + END; %] + + [% IF copy_info.notes; %] [% FOREACH note IN copy_info.notes; %]  [% note.title | html %]: [% note.value | html %] [% END %] [% END %] - - [% IF copy_info.tags; %] + [% IF copy_info.tags; %] [% FOREACH tag IN copy_info.tags; %]   @@ -344,19 +349,16 @@ END; # FOREACH bib [% IF tag.url %] - [% END %] + [% END %] [% tag.value | html %] - [% IF tag.url %] + [% IF tag.url %] - [% END %] + [% END %] - [% END %] - [%- IF ctx.geo_sort && ctx.has_valid_coords %] - [% display_ou_distance(copy_info.circ_lib) %] - [%- END %] - + [% END %] + [% END %] [%- IF copy_info.peer_bib_marc.size > 0; '