Skip to content

Commit 58e8d66

Browse files
authored
Merge pull request #6 from johnseguin/patch-2
Added customization instructions...
2 parents 64258ba + eb41e5b commit 58e8d66

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

js/browzine.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
$sceDelegateProvider.resourceUrlWhitelist(urlWhitelist);
88
}]);
99

10-
// Add Article In Context & Browzine Links
10+
// Add Article In Context & BrowZine Links
1111
app.controller('prmSearchResultAvailabilityLineAfterController', function($scope, $http, nodeserver) {
1212
var vm = this;
1313
if (vm.parentCtrl.result.pnx.addata.doi && vm.parentCtrl.result.pnx.display.type[0] == 'article') {
@@ -31,16 +31,21 @@
3131

3232
});
3333

34+
// Below is where you can customize the wording that is displayed (as well as the hover over text) for the BrowZine links.
35+
// St Olaf has chosen "View Journal Contents" for the "Journal Availability Link" but other great options include things such as "View Journal" or "View this Journal"
36+
// St Olaf is using "View Issue Contents" for the "Article in Context" link but another great option is "View Complete Issue" or "View Article in Context".
37+
// St Olaf also has added a hover over link that says "Via BrowZine" to emphasize the interaction being used.
38+
3439
app.component('prmSearchResultAvailabilityLineAfter', {
3540
bindings: { parentCtrl: '<' },
3641
controller: 'prmSearchResultAvailabilityLineAfterController',
3742
template: `
38-
<div ng-if="article.data.browzineWebLink"><a href="{{ article.data.browzineWebLink }}" target="_blank" title="Via Browzine"><img src="custom/01BRC_SOC/img/browzine.png" class="browzine-icon"> View Issue Contents <md-icon md-svg-icon="primo-ui:open-in-new" aria-label="icon-open-in-new" role="img" class="browzine-external-link"><svg id="open-in-new_cache29" width="100%" height="100%" viewBox="0 0 24 24" y="504" xmlns="http://www.w3.org/2000/svg" fit="" preserveAspectRatio="xMidYMid meet" focusable="false"></svg></md-icon></a></div>
39-
<div ng-if="journal.data[0].browzineWebLink"><a href="{{ journal.data[0].browzineWebLink }}" target="_blank" title="Via Browzine"><img src="custom/01BRC_SOC/img/browzine.png" class="browzine-icon"> View Journal Contents <md-icon md-svg-icon="primo-ui:open-in-new" aria-label="icon-open-in-new" role="img" class="browzine-external-link"><svg id="open-in-new_cache29" width="100%" height="100%" viewBox="0 0 24 24" y="504" xmlns="http://www.w3.org/2000/svg" fit="" preserveAspectRatio="xMidYMid meet" focusable="false"></svg></md-icon></a></div>
43+
<div ng-if="article.data.browzineWebLink"><a href="{{ article.data.browzineWebLink }}" target="_blank" title="Via BrowZine"><img src="custom/01BRC_SOC/img/browzine.png" class="browzine-icon"> View Issue Contents <md-icon md-svg-icon="primo-ui:open-in-new" aria-label="icon-open-in-new" role="img" class="browzine-external-link"><svg id="open-in-new_cache29" width="100%" height="100%" viewBox="0 0 24 24" y="504" xmlns="http://www.w3.org/2000/svg" fit="" preserveAspectRatio="xMidYMid meet" focusable="false"></svg></md-icon></a></div>
44+
<div ng-if="journal.data[0].browzineWebLink"><a href="{{ journal.data[0].browzineWebLink }}" target="_blank" title="Via BrowZine"><img src="custom/01BRC_SOC/img/browzine.png" class="browzine-icon"> View Journal Contents <md-icon md-svg-icon="primo-ui:open-in-new" aria-label="icon-open-in-new" role="img" class="browzine-external-link"><svg id="open-in-new_cache29" width="100%" height="100%" viewBox="0 0 24 24" y="504" xmlns="http://www.w3.org/2000/svg" fit="" preserveAspectRatio="xMidYMid meet" focusable="false"></svg></md-icon></a></div>
4045
`
4146
});
4247

43-
// Add Journal Cover Images from Browzine
48+
// Add Journal Cover Images from BrowZine
4449
app.controller('prmSearchResultThumbnailContainerAfterController', function($scope, $http, nodeserver) {
4550
var vm = this;
4651
var newThumbnail = '';

0 commit comments

Comments
 (0)