From 0592041f09f39b5b036b8ca8c06c0464c39765f9 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 (cherry picked from commit 1eccaeec88a99e9792b388e95732faa7576e7164) --- 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 ebf880e682..3aa262df09 100644 --- a/Open-ILS/src/templates/opac/parts/record/summary.tt2 +++ b/Open-ILS/src/templates/opac/parts/record/summary.tt2 @@ -199,7 +199,7 @@ FOREACH res IN openurls; %] - [% res.public_name | html %] + [% res.public_name | html %] [% res.target_coverage | html %] [%- IF res.target_embargo != ''; ' - '; @@ -226,7 +226,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 b2da2b31ce..1a1bfa3eea 100644 --- a/Open-ILS/src/templates/opac/parts/result/table.tt2 +++ b/Open-ILS/src/templates/opac/parts/result/table.tt2 @@ -351,7 +351,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 %] @@ -534,7 +534,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.11.0