Versions Compared

Key

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

Please review our general Ex Libris Summon Overview and Step-by-Step Installation Guide first! This guide will only explain the details related to setting up multiple language support in the script. It will work best to have the default integration setup and functioning before modifying it further.

Note

On December 15, 2021 Ex Libris will be updating the User Interface for Summon. It is unknown at this time if this will break the way that Summon handles multiple languages. It is anticipated that the below script will continue to work if the updates are made using the MAIN instructions first: Ex Libris Summon Overview and Step-by-Step Installation Guide. Notably the “Version” parameter that is now required.

Summon Integration (Multiple Language Support) Overview

...

Code Block
languagejs
if(window.location.href.indexOf("gr-GR") > -1) {

	var browzine = {
		apilibraryId: "https://api.thirdiron.com/public/v1/libraries/2005XXX",
		apiKey: "353e7ed8-e44b-4bb8-9a80-eb23ca939d3cENTER API KEY",
		
		version: 2, // Required for the other parameters below to work after December 15, 2021.
 
		journalWording: "Δείτε το Περιοδικό",
		articleWording: "Δείτε το Πλήρες Τεύχος",
		journalBrowZineWebLinkText: "Πλοηγηθείτε Τώρα",
		articleBrowZineWebLinkText: "Πλοηγηθείτε Τώρα",
		articlePDFDownloadLinkEnabled: true,
		articlePDFDownloadWording: "Το Άρθρο σε PDF",
		articlePDFDownloadLinkText: "Κατεβάστε το Τώρα",
 
		articleLinkEnabled: true,
		articleLinkTextWording: "Σύνδεσμος στο Άρθρο",
		articleLinkText: "Διαβάστε το Άρθρο",
	
	};

} else {
	
	var browzine = {
		apilibraryID: "https://api.thirdiron.com/public/v1/libraries/2005XXX",
		apiKey: "353e7ed8-e44b-4bb8-9a80-eb23ca939d3c",ENTER API KEY",
		
        version: 2, // Required for the other parameters below to work after December 15, 2021.
	
		journalWording: "View the Journal",
		articleWording: "View Complete Issue",
		journalBrowZineWebLinkText: "Browse Now",
		articleBrowZineWebLinkText: "Browse Now",
		articlePDFDownloadLinkEnabled: true,
		articlePDFDownloadWording: "Article PDF",
		articlePDFDownloadLinkText: "Download Now",
 
		articleLinkEnabled: true,
		articleLinkTextWording: "Article Link",
		articleLinkText: "Read Article",
	};
}

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

...