Versions Compared

Key

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

...

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,
// Begin BrowZine - Primo Integration...	

 articleAcceptedManuscriptArticleLinkViaUnpaywallText: "Read Article (Accepted Manuscript via Unpaywall)",

  var primolang = location.search.match(/lang=cy/) ? 'cy' : 'en'};
        if (primolang == "cy")} else {
        window.browzine = {
          api: "https://public-api.thirdiron.com/public/v1/libraries/XXX",
          apiKey: "ENTER API KEY",
		  
		  journalCoverImagesEnabled: true,
		  
		  journalBrowZineWebLinkTextEnabled: true,
		  journalBrowZineWebLinkText: "GweldView CynnwysJournal y CyfnodolynContents",
		  		
        		  articleBrowZineWebLinkTextEnabled: true,
		  articleBrowZineWebLinkText: "GweldView CynnwysIssue y RhifynContents",
		  
		  articlePDFDownloadLinkEnabled: true,
          articlePDFDownloadLinkText: "LawrlwythoDownload ErthyglArticle",
		  
		  articleLinkEnabled: true,
          articleLinkText: "DarllenRead ErthyglArticle",
		  
		  printRecordsIntegrationEnabled: true,
		
		  showFormatChoice: false,
      };    showLinkResolverLink: true,
 }   else {     enableLinkOptimizer: true,
  window.browzine = {
          apiarticleRetractionWatchEnabled: "https://public-api.thirdiron.com/public/v1/libraries/XXX"true,
          apiKeyarticleRetractionWatchText: "ENTERRetracted API KEYArticle",
		

        		  journalCoverImagesEnabledunpaywallEmailAddressKey: true,
		"enter-your-email@your-institution-domain.edu",
    
        		  journalBrowZineWebLinkTextEnabledarticlePDFDownloadViaUnpaywallEnabled: true,
		
          journalBrowZineWebLinkTextarticlePDFDownloadViaUnpaywallText: "View Journal ContentsDownload PDF (via Unpaywall)",
		
            articleBrowZineWebLinkTextEnabledarticleLinkViaUnpaywallEnabled: true,
		
          articleBrowZineWebLinkTextarticleLinkViaUnpaywallText: "View Issue Contents",
		Read Article (via Unpaywall)",

        		  articlePDFDownloadLinkEnabledarticleAcceptedManuscriptPDFViaUnpaywallEnabled: true,
          articlePDFDownloadLinkTextarticleAcceptedManuscriptPDFViaUnpaywallText: "Download Article",
		 PDF (Accepted Manuscript via Unpaywall)",

        		  articleLinkEnabledarticleAcceptedManuscriptArticleLinkViaUnpaywallEnabled: true,
          articleLinkTextarticleAcceptedManuscriptArticleLinkViaUnpaywallText: "Read Article", 		(Accepted Manuscript 
		  printRecordsIntegrationEnabled: truevia 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);

  //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

...