From 19b03c7da77a917351ab400ad5f41ef7d8668fb2 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Sat, 27 Dec 2014 17:06:18 -0500 Subject: [PATCH] LP#1406013: Improve schema.org expression for electronic resources Specify the URL from which an electronic resource is available as the schema:url of the associated schema:Offer. Also, if we have descriptive link text and/or a note about the electronic resource, mark it up with schema:description. Signed-off-by: Dan Scott Signed-off-by: Ben Shum --- Open-ILS/src/templates/opac/parts/record/summary.tt2 | 10 +++++++++- 1 file changed, 9 insertions(+), 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 79ab4ffdf0..2db3a65dc8 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -122,7 +122,15 @@ IF num_uris > 0; [%- ELSE -%]
  • [%- END -%] - [% uri.link %][% ' - ' _ uri.note IF uri.note %] + + [%- IF uri.href != uri.link; + '' _ uri.link _ ''; + ELSE; + uri.link; + END; + -%] + + [%- ' - ' _ uri.note _ '' IF uri.note %] [%- IF attrs.gtin13; ''; END; %] [%- IF num_uris == 1 %]

    [% ELSE %]
  • [% END %] -- 2.43.2