From 77655919001fa8688bc790a41336b9981a71c0d4 Mon Sep 17 00:00:00 2001 From: Dan Scott Date: Sat, 27 Dec 2014 17:06:18 -0500 Subject: [PATCH] LP1406013: 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 --- 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 4cca64da76..d09b7207fc 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -123,7 +123,15 @@ [%- 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.11.0