From: Dan Scott Date: Tue, 21 Oct 2014 15:02:12 +0000 (-0400) Subject: lp1383763 - Display OpenURL embargo statement X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=555f0ab32dba3f4c8a0bdf1097fcfe606a683897;p=evergreen%2Fpines.git lp1383763 - Display OpenURL embargo statement The ResolverResolver service fetches the embargo statement (such as "Last year not available") from OpenURL resolvers and stores it in a target_embargo field. In JSPAC we used to display this along with the coverage statement, because it is very important that people know that a resource may be available from 1999 but the last year isn't available online. Restore the display of this information to the TPAC. Signed-off-by: Dan Scott Signed-off-by: Galen Charlton --- diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2 index 10bba563d3..d5aacb4ccc 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -95,8 +95,14 @@ FOREACH res IN openurls; %] - [% res.public_name %] - [% res.target_coverage %] + [% res.public_name | html %] + [% res.target_coverage | html %] + [%- IF res.target_embargo != ''; + ' - '; + res.target_embargo | html; + END; + -%] + [%- END %] diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index ff9cda9611..baebf636b6 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -243,7 +243,13 @@ END; [% res.public_name | html %] - [% res.target_coverage | html %] + [% res.target_coverage | html %] + [%- IF res.target_embargo != ''; + ' - '; + res.target_embargo | html; + END; + -%] + [% END %] [% END %]