From d75c738ca6722bd395362f0f2bfab807e3d8442e Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Sun, 7 Dec 2014 10:17:42 -0500 Subject: [PATCH] LP#1400100 - Avoid extra when OpenURL is enabled When the OpenURL resolver is enabled, the record summary.tt2 page always inserts a , whether or not there actually are any OpenURL results to point at (which is the condition that triggers the opening
). This has the effect of resulting in the generated RDFa not including anything below the OpenURL section, effectvely preventing the schema.org/Offer types from being associated with the record. Which is not good for the semantic web of library data. Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/record/summary.tt2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2 index d5aacb4ccc..79ab4ffdf0 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -106,9 +106,9 @@ [%- END %] -[%- END %]
[%- END %] +[%- END %] [%- merged_uris = args.uris.merge(args.online_res); num_uris = merged_uris.size; IF num_uris > 0; -- 2.11.0