Skip to content

Commit e842c5b

Browse files
authored
Merge pull request #4 from SarahZum/readme-edits
Readme edits
2 parents 9d6a546 + f4274b4 commit e842c5b

3 files changed

Lines changed: 25 additions & 4 deletions

File tree

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,17 @@
11
# primo-browzine
22
Integrate Browzine's Article DOI Lookup and Journal Availability endpoints into Primo interface.
33

4-
Requirements: Browzine subscription and API Key + Customer Number.
4+
Requirements:
5+
* Browzine subscription and API Key + Customer Number.
6+
* Access to Customization Manager files for the new Primo UI.
7+
* Local server to host Node.js scripts
58

69
This project uses Node.js on a non-Primo server to query Browzine's APIs and return the data to Primo for display in results that contain journals (with an ISSN) or journal articles (with a DOI).
710

11+
To implement:
12+
13+
1. Set up the Node.js scripts on a local server. Browzine can provide some assistance with this step. I tested using Amazon's Lambda service and an API gateway. For production, St. Olaf is using a local server and ColdFusion component. I've included that code if you happen to be a CF shop.
14+
1. stoKey and stoID refer to your Browzine API key and customer number. They should be updated to reflect your institution's keys. Contact [Browzine](http://support.thirdiron.com/knowledgebase/articles/1127656-browzine-api-functionality) to obtain credentials.
15+
1. Add the browzine.js code to the custom.js file in your [Customization Package](https://knowledge.exlibrisgroup.com/Primo/Product_Documentation/New_Primo_User_Interface/New_UI_Customization_-_Best_Practices#Using_the_UI_Customization_Package_Manager). You will need to update the "nodeserver" constant with the URI for the server running the Node scripts.
16+
1. Add the browzine.css lines to custom1.css file in your [Customization Package](https://knowledge.exlibrisgroup.com/Primo/Product_Documentation/New_Primo_User_Interface/New_UI_Customization_-_Best_Practices#Using_the_UI_Customization_Package_Manager).
17+
1. Deploy the Customization Package on your Primo server.

css/browzine.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* Browzine styles */
2+
.browzine-icon {
3+
margin-right:2px;
4+
}
5+
6+
.browzine-external-link {
7+
width:15px;
8+
height:15px;
9+
min-width:15px;
10+
min-height:15px;
11+
}

js/browzine.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@
3535
bindings: { parentCtrl: '<' },
3636
controller: 'prmSearchResultAvailabilityLineAfterController',
3737
template: `
38-
<div ng-if="article.data.browzineWebLink"><a href="{{ article.data.browzineWebLink }}" target="_blank"> See article in Table of Contents!</a></div>
39-
<div ng-if="journal.data[0].browzineWebLink"><a href="{{ journal.data[0].browzineWebLink }}" target="_blank"> Browse this journal in Browzine!</a></div>
40-
`
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>
40+
`
4141
});
4242

4343
// Add Journal Cover Images from Browzine

0 commit comments

Comments
 (0)