From: Dan Scott Date: Sat, 27 Dec 2014 22:06:18 +0000 (-0500) Subject: LP1406013: Improve schema.org expression for electronic resources X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=77655919001fa8688bc790a41336b9981a71c0d4;p=contrib%2FConifer.git 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 --- 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 %]