From 555f0ab32dba3f4c8a0bdf1097fcfe606a683897 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 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 %] -- 2.43.2