Skip to content

fresnostate-library/browzine-discovery-service-adapters

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Library Developers

Overview

Use browzine-discovery-service-adapters to enhance Summon, 360 Core or Primo search results with BrowZine data.

browzine-discovery-service-adapters adds links to Journal and Article content in BrowZine, and displays BrowZine Journal covers. The BrowZine Summon adapter supports IE11+ and evergreen browsers (Chrome, Firefox, Safari, Microsoft Edge).

Summon Search Results Example

Summon Journal Search Results

360 Core Search Results Example

360 Core Journal Search Results

Primo Search Results Example

Primo Journal Search Results

How to request your library API endpoint

Visit Third Iron support to request your library API endpoint - http://support.thirdiron.com/

You will receive your api endpoint and your apiKey.

Summon Adapter Installation

BrowZine Summon Adapter Script

Update the following code snippet with the api endpoint and apiKey values:

var browzine = {
  api: "https://public-api.thirdiron.com/public/v1/libraries/XXX",
  apiKey: "ENTER API KEY",
};

browzine.script = document.createElement("script");
browzine.script.src = "https://s3.amazonaws.com/browzine-adapters/summon/browzine-summon-adapter.js";
document.head.appendChild(browzine.script);

Adding Summon Custom Script

Summon Custom Scripts are added in the Summon 2.0 External Script portion of the Summon Editor Settings: Summon 2.0 Editor Link

As a Custom Script Url: Summon 2.0 External Script

Summon Adapter Customizations

Customize the naming conventions for each type of search result - Journal/Article - by changing the wording in the quotes below:

e.g. You can customize "View the Journal", "View Complete Issue", "Browse Now" and whether to enable direct to PDF links. These customizations are optional and the defaults are shown below.

var browzine = {
  api: "https://public-api.thirdiron.com/public/v1/libraries/XXX",
  apiKey: "ENTER API KEY",
  journalWording: "View the Journal",
  articleWording: "View Complete Issue",
  journalBrowZineWebLinkText: "Browse Now",
  articleBrowZineWebLinkText: "Browse Now",
  articlePDFDownloadLinkEnabled: true,
  articlePDFDownloadWording: "Article PDF",
  articlePDFDownloadLinkText: "Download Now",
};

360 Core Adapter Installation

BrowZine 360 Core Adapter Script

Update the following code snippet with the api endpoint and apiKey values:

var browzine = {
  api: "https://public-api.thirdiron.com/public/v1/libraries/XXX",
  apiKey: "ENTER API KEY",
};

browzine.script = document.createElement("script");
browzine.script.src = "https://s3.amazonaws.com/browzine-adapters/360-core/browzine-360-core-adapter.js";
document.head.appendChild(browzine.script);

Adding 360 Core Custom Script

360 Core custom scripts are added in 360 Core > Administration Console > E-Journal Portal 2.0 > Branding Options > Reference External JavaScript > JavaScript file url: 360 Core 2.0 External Script 360 Core 2.0 External Script

360 Core Adapter Customizations

Customize the naming conventions for each type of search result - Journal - by changing the wording in the quotes below:

e.g. You can customize "View Journal in BrowZine" to be a different phrase.

var browzine = {
  api: "https://public-api.thirdiron.com/public/v1/libraries/XXX",
  apiKey: "ENTER API KEY",
  journalBrowZineWebLinkText: "View Journal in BrowZine",
};

Primo Adapter Installation

BrowZine Primo Adapter Script

Update the following code snippet with the api endpoint and apiKey values:

(function () {
  "use strict";

  var app = angular.module('viewCustom', ['angularLoad']);

  // Load BrowZine Adapter
  window.browzine = {
    api: "https://public-api.thirdiron.com/public/v1/libraries/XXX",
    apiKey: "ENTER API KEY",
  };

  browzine.script = document.createElement("script");
  browzine.script.src = "https://s3.amazonaws.com/browzine-adapters/primo/browzine-primo-adapter.js";
  document.head.appendChild(browzine.script);

  app.controller('prmSearchResultAvailabilityLineAfterController', function($scope) {
    window.browzine.primo.searchResult($scope);
  });

  app.component('prmSearchResultAvailabilityLineAfter', {
    bindings: { parentCtrl: '<' },
    controller: 'prmSearchResultAvailabilityLineAfterController'
  });
})();

Adding Primo Custom Script

Upload this custom Primo package to your Primo view or add the contents of /js/custom.js to your existing customized Primo package.

https://s3.amazonaws.com/browzine-adapters/primo/01COLSCHL_INST-BRZN.zip

Primo External Script

Primo Adapter Customizations

Customize the naming conventions for each type of search result - Journal/Article - by changing the wording in the quotes below:

e.g. You can customize "View Issue Contents" to be a different phrase.

window.browzine = {
  api: "https://public-api.thirdiron.com/public/v1/libraries/XXX",
  apiKey: "ENTER API KEY",
  journalBrowZineWebLinkText: "View Journal Contents",
  articleBrowZineWebLinkText: "View Issue Contents",
  articlePDFDownloadLinkEnabled: true,
  articlePDFDownloadLinkText: "Download PDF",
};

Contributors

Browser Compatibility and Support

Enhancements and Bugfixes should be developed against the ES5 standard and tested against evergreen browsers and IE10+.

Installation

  • git clone https://github.com/thirdiron/browzine-discovery-service-adapters.git this repository
  • change into the new directory
  • npm install

Running / Development

Running Tests

  • npm test (Runs the Karma automated acceptance tests)

Deploying

CircleCI executes deployments to S3 using the deploy-staging and deploy-production npm commands. Neither feature branches nor hotfix branches are deployed to S3.

The BrowZine Summon Adapter adapter can be found here:

Staging https://s3.amazonaws.com/browzine-adapters/summon/staging/browzine-summon-adapter.js

Production https://s3.amazonaws.com/browzine-adapters/summon/browzine-summon-adapter.js

The BrowZine 360 Core Adapter adapter can be found here:

Staging https://s3.amazonaws.com/browzine-adapters/360-core/staging/browzine-360-core-adapter.js

Production https://s3.amazonaws.com/browzine-adapters/360-core/browzine-360-core-adapter.js

The BrowZine Primo Adapter adapter can be found here:

Staging https://s3.amazonaws.com/browzine-adapters/primo/staging/browzine-primo-adapter.js

Production https://s3.amazonaws.com/browzine-adapters/primo/browzine-primo-adapter.js

About

Summon adapter to enhance journal search results with custom BrowZine API data.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.9%
  • Shell 0.1%