Skip to content

Commit

Permalink
fix: replace popup/preview with link
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmacdonald committed Nov 5, 2018
1 parent e1c1237 commit e496de7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,16 @@ function callVIAF(url, queryString) {
let name = Array.isArray(headings) ?
headings[0].text:
headings.text;
let uriForDisplay = uri.replace('http', 'https')
return {nameType, id: uri, uri, uriForDisplay, name, repository: 'VIAF', originalQueryString: queryString}
return {
nameType,
id: uri,
uri,
uriForDisplay: null,
externalLink: uri,
name,
repository: 'VIAF',
originalQueryString: queryString
}
}) : []
})

Expand Down
1 change: 1 addition & 0 deletions test/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ test('lookup builders', (assert)=> {
id: '',
uri: '',
uriForDisplay: '',
externalLink: '',
name: '',
repository: '',
originalQueryString: ''
Expand Down

0 comments on commit e496de7

Please sign in to comment.