Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Anchor
ViewJournalContents
ViewJournalContents

...

"View Journal Contents" to enhance the Journal Search Results in Primo  

...


This interaction is made possible via our Journal Availability API.  Both the journals covers and the dynamic links are created by the BrowZine API.  You can read more details about what it does here.

...

The code itself causes the link into BrowZine to appear dynamically, so only items active and available within BrowZine are shown so there are no dead links!


Info

The journals are linked to BrowZine by either the ISSN or EISSN value in Primo.  If for some reason these items are missing, no matching can occur with BrowZine.

...

Anchor
ViewIssueContents
ViewIssueContents

...

"View Issue Contents" to enhance the Article Search Results in Primo

...

This interaction is made possible via our Journal Availability API.  Both the journal covers and the links to BrowZine are made possible by the BrowZine API!  You can read more details about what it does here.

(See the interaction described by clicking here) 

These links are triggered by articles rather than journal results and serve to provide a unique form of serendipitous discovery.  While the user has found a specific article, in one click, the user can be taken to the exact issue and place IN the issue where the article was originally published.

...

This not only provides a nice pedagogical discussion point about how articles are grouped into issues and journals but also a great serendipitous discovery path to perhaps find other articles in that same issue which may be of interest to the researcher as well as all the advantages of BrowZine outlined above (allowing them to find other journals in their research area, tracking the journal for new articles to be published, a consistent browsing experience, etc.)

Note: When using the general Primo search, both the "View Journal Contents" and the "View Issue Contents" links will appear based on the resulting material (journals or articles).  When using the "Journals A-Z" tab in Primo, only journals are returned so only the "View Journal Contents" interaction occurs.


Info

The articles are matched in BrowZine via their DOI.  If the article does not contain a DOI either because the publisher does not utilize one or Primo does not have this information, no matching can occur.

...

Code Block
languagejs
(function () {
"use strict";
'use strict';

var app = angular.module('viewCustom', ['angularLoad']);
/****************************************************************************************************/
/*In case of CENTRAL_PACKAGE - comment out the below line to replace the other module definition*/
/*var app = angular.module('centralCustom', ['angularLoad']);*/
/****************************************************************************************************/

// Begin BrowZine - Primo Integration...
  window.browzine = {
    api: "https://public-api.thirdiron.com/public/v1/libraries/222",
    apiKey: "d690efde-2f6f-124b-z87b-8df112f4f42f",

    journalCoverImagesEnabled: true,

    journalBrowZineWebLinkTextEnabled: true,
    journalBrowZineWebLinkText: "View Journal Contents",

    articleBrowZineWebLinkTextEnabled: true,
    articleBrowZineWebLinkText: "View Issue Contents",

	articlePDFDownloadLinkEnabled: true,
    articlePDFDownloadLinkText: "Download PDF",

    articleLinkEnabled: true,
    articleLinkText: "Read Article",

    printRecordsIntegrationEnabled: true,

    unpaywallEmailAddressKey: "melvil.dewey@greatuniversity.edu",

    articlePDFDownloadViaUnpaywallEnabled: true,
    articlePDFDownloadViaUnpaywallText: "Download PDF (via Unpaywall)",

    articleLinkViaUnpaywallEnabled: true,
    articleLinkViaUnpaywallText: "Read Article (via Unpaywall)",

    articleAcceptedManuscriptPDFViaUnpaywallEnabled: true,
    articleAcceptedManuscriptPDFViaUnpaywallText: "Download PDF (Accepted Manuscript via Unpaywall)",

    articleAcceptedManuscriptArticleLinkViaUnpaywallEnabled: true,
    articleAcceptedManuscriptArticleLinkViaUnpaywallText: "Read Article (Accepted Manuscript via Unpaywall)",
  };

  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'
  });
// ... End BrowZine - Primo Integration

})();

Info

Customizations

  1. You may elect to change the wording that appears for the BrowZine integration by changing the area in the integration where you can see "View Journal Contents" or "View Issue Contents" to whatever phrase you would prefer.  If your primary language is something other than English, this is a good chance to localize! An example and further details are available here: Primo Integration (Multiple Language Support)

  2. If you do not want these enhancements to appear on PRINT records (items with a PNX delcategory of "ALMA-P") then change the "printRecordsIntegrationEnabled" from "true" to "false" in the integration code above.

  3. You can turn and/off any of the features by changing the "... Enabled" flag from true to false.

3) Save the custom.js file with these modifications.  


Anchor
step3
step3

Step 3: Upload and Deploy the modified Customization Package to Primo

...