From 2a3a99e1d44f14da4944b8f4e9280aeaae4660ab Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Tue, 21 Oct 2014 11:02:12 -0400 Subject: [PATCH] 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 --- Open-ILS/src/templates/opac/parts/record/summary.tt2 | 10 ++++++++-- Open-ILS/src/templates/opac/parts/result/table.tt2 | 8 +++++++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2 index 313f3e5c67..cbc6904a97 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -91,8 +91,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 b481b5f06b..bbca7f3787 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -175,7 +175,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 %] -- 2.11.0