Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 5

...

Our example uses en for English and cy for Welsh along with English and Welsh phrasing for the text. If you are using different languages, please insert the language codes you are using and the phrasing you want in the same way shown below. You can also still customize the specific LibKey options and settings as desired:

Code Block
languagejs
articleAcceptedManuscriptArticleLinkViaUnpaywallEnabled: true,
articleAcceptedManuscriptArticleLinkViaUnpaywallText: "Read Article (Accepted Manuscript via Unpaywall)",

        };  // Begin BrowZine - Primo Integration...	

     var primolang = location.search.match(/lang=cy/) ? 'cy' : 'en';
 
      if (primolang } else== "cy") {
        window.browzine = {
          api: "https://public-api.thirdiron.com/public/v1/libraries/XXX",
          apiKey: "ENTER API KEY",
		  
		  journalCoverImagesEnabled: true,
		  
		  journalBrowZineWebLinkTextEnabled: true,
		  journalBrowZineWebLinkText: "ViewGweld Cynnwys Journaly ContentsCyfnodolyn",
		  		  
    		    articleBrowZineWebLinkTextEnabled: true,
		  articleBrowZineWebLinkText: "ViewGweld Cynnwys Issuey ContentsRhifyn",
		  
		  articlePDFDownloadLinkEnabled: true,
          articlePDFDownloadLinkText: "DownloadLawrlwytho ArticleErthygl",
		  
		  articleLinkEnabled: true,
          articleLinkText: "ReadDarllen ArticleErthygl",
		  
		  printRecordsIntegrationEnabled: true,
		
		  showFormatChoice: false,     };
     showLinkResolverLink: true,} else {
        enableLinkOptimizer: true,
window.browzine = {
              articleRetractionWatchEnabled: trueapi: "https://public-api.thirdiron.com/public/v1/libraries/XXX",
          articleRetractionWatchTextapiKey: "RetractedENTER API ArticleKEY",
		  
		        unpaywallEmailAddressKey: "enter-your-email@your-institution-domain.edu",
journalCoverImagesEnabled: true,
		  
		            articlePDFDownloadViaUnpaywallEnabledjournalBrowZineWebLinkTextEnabled: true,
		          articlePDFDownloadViaUnpaywallTextjournalBrowZineWebLinkText: "DownloadView PDF (via Unpaywall)Journal Contents",
		  
        articleLinkViaUnpaywallEnabled  articleBrowZineWebLinkTextEnabled: true,
		          articleLinkViaUnpaywallTextarticleBrowZineWebLinkText: "ReadView Article (via Unpaywall)Issue Contents",
		  
		        articleAcceptedManuscriptPDFViaUnpaywallEnabledarticlePDFDownloadLinkEnabled: true,
          articleAcceptedManuscriptPDFViaUnpaywallTextarticlePDFDownloadLinkText: "Download PDF (Accepted Manuscript via Unpaywall)Article",
		  
		        articleAcceptedManuscriptArticleLinkViaUnpaywallEnabledarticleLinkEnabled: true,
          articleAcceptedManuscriptArticleLinkViaUnpaywallTextarticleLinkText: "Read Article (Accepted Manuscript via Unpaywall)"",
		  
		  printRecordsIntegrationEnabled: true,
		  
        };
      }
  browzine.script = document.createElement("script");
  browzine.script.src = "https://s3.amazonaws.com/browzine-adapters/primo/browzine-primo-adapter.js";
  document.head.appendChild(browzine.script);

  //Continue Browzine
  app.controller('browzineController', function ($scope) {
    window.browzine.primo.searchResult($scope);
  });

  app.component('prmSearchResultAvailabilityLineAfter', {
    bindings: { parentCtrl: '<' },
    controller: 'browzineController',
    template: '<prm-toc-link parent-ctrl="$ctrl.parentCtrl"></prm-toc-link>'
  });
  //End BrowZine

...