Skip to content
This repository was archived by the owner on Jan 12, 2023. It is now read-only.

Script for displaying access information to E-book databases in a discovery system using Google Spreadsheet's API.

Notifications You must be signed in to change notification settings

JonkopingUniversityLibrary/EbookAccess.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

EbookAccess showed in Primo

Setup

  1. Copy the Google Spreadsheet
  2. Publish it to web.
  3. Update EbookAccess.config.request.url to match the new Spreadsheet (Just change the id of the spreadsheet to the new one)
  4. Change EbookAccess.config.icon.directory to match where you will upload the images.
  5. Change EbookAccess.config.icon.fileType to match the desired format of the icons.
  6. Upload EbookAccess.js to your preferred server.
  7. Include the script in SFX.
  8. Run the script using EbookAccess.initialize(language); where language is the language code (two digit string) you're using in SFX, default available is swedish sv and english en. This is probably easiest done through the SFX-templates.

Notes

For the script to work three files must match:

  1. The spreadsheet must follow the correct format with correctly named headings for example: loantime, loantimecommentswedish, loantimecommentenglish.
  2. All the headings should be added to EbookAccess.config.icons
  3. Add the corresponsing image of the icon to the directory defined in EbookAccess.config.iconDirectory.

Links

About

Script for displaying access information to E-book databases in a discovery system using Google Spreadsheet's API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published