Skip to content

Commit

Permalink
Fix Institution Links
Browse files Browse the repository at this point in the history
Resolves #1650
  • Loading branch information
thostetler committed Dec 10, 2018
1 parent 7eb019a commit 261091b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/js/mixins/link_generator_mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ define(['underscore', 'js/mixins/openurl_generator'], function (_, OpenURLGenera
let dataProducts = [];
let countOpenUrls = 0;
const property = data.property;
const hasHTMLOpenAccess = _.contains(property, 'OPENACCESS');
const hasHTMLOpenAccess = _.contains(property, 'PUB_OPENACCESS');

// check the esources property
_.forEach(data.esources, function (el, ids, sources) {
Expand Down
2 changes: 1 addition & 1 deletion src/js/widgets/resources/components/app.jsx.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ define([
target="_blank"
rel="noopener"
onClick={() => onClick(g)}
title={`${g.description} ${g.open ? 'OPEN ACCESS' : 'SIGN IN REQUIRED'}`}
title={`${g.description} ${g.open ? 'OPEN ACCESS' : g.type === 'INSTITUTION' ? '' : 'SIGN IN REQUIRED'}`}
className={`resources__content__link ${g.open ? 'unlock' : ''}`}>
{g.type === 'PDF' && <i className="fa fa-file-pdf-o" aria-hidden="true"/>}
{g.type === 'HTML' && <i className="fa fa-file-text" aria-hidden="true"/>}
Expand Down

0 comments on commit 261091b

Please sign in to comment.