From c1795149934482cc3185be02ba8169ac6a9b923c Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Thu, 13 Sep 2018 11:58:48 -0700 Subject: [PATCH] LP#1559239: use rel="noopener" when opening external URLs in a new tab Signed-off-by: Jeff Davis Signed-off-by: Jason Stephenson Signed-off-by: Galen Charlton --- Open-ILS/src/templates/opac/parts/record/summary.tt2 | 4 ++-- Open-ILS/src/templates/opac/parts/result/table.tt2 | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/templates/opac/parts/record/summary.tt2 b/Open-ILS/src/templates/opac/parts/record/summary.tt2 index 3bc0ef5855..fb6f84a1e8 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -191,7 +191,7 @@ FOREACH res IN openurls; %] - [% res.public_name | html %] + [% res.public_name | html %] [% res.target_coverage | html %] [%- IF res.target_embargo != ''; ' - '; @@ -218,7 +218,7 @@ IF num_uris > 0; [%- ELSE -%]
  • [%- END -%] - + [%- IF uri.href != uri.link; '' _ uri.link _ ''; ELSE; diff --git a/Open-ILS/src/templates/opac/parts/result/table.tt2 b/Open-ILS/src/templates/opac/parts/result/table.tt2 index 21652c4069..c06f440ede 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -348,7 +348,7 @@ END; [% l('Electronic resource') %] - [% uri.link | html %][% ' - ' _ uri.note | html IF uri.note %] + [% uri.link | html %][% ' - ' _ uri.note | html IF uri.note %] [% END %] [% END %] @@ -513,7 +513,7 @@ END; [% html_text_attr('title', l('Reviews and More for [_1]', attrs.title)) %] href="[% ctx.ext_proto %]://contentcafe2.btol.com/ContentCafeClient/ContentCafe.aspx?UserID=[%- ENV.OILS_CONTENT_CAFE_USER %]&Password=[%- - ENV.OILS_CONTENT_CAFE_PASS %]&ItemKey=[% ident | uri %]&Options=Y" rel="nofollow" vocab=""> + ENV.OILS_CONTENT_CAFE_PASS %]&ItemKey=[% ident | uri %]&Options=Y" rel="noopener nofollow" vocab=""> [% l('Ratings Icon') %] [% l('Reviews & More') %] -- 2.43.2