Skip to content

Commit

Permalink
Merge pull request #1666 from thostetler/missing-library-link-in-abst…
Browse files Browse the repository at this point in the history
…racts

Fix Institution Links
  • Loading branch information
ehenneken authored Dec 10, 2018
2 parents 7eb019a + 261091b commit 560237f
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 560237f

Please sign in to comment.