0.1.1 • Published 7 years ago

primo-explore-worldcat-button v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

primo-explore-worldcat-button

installation

setting up the dev environment

(to be written)

installing the button

to install the package, from inside your package directory (e.g. /primo-explore/LCC_NEWUI), run:

npm install primo-explore-worldcat-button --save-dev

to enable the button, edit your 2_options.js (or another file in the package's js directory) and add the following lines:

addWorldcatButton({
    title: 'Your search returned zero results, but more might be available by searching WorldCat.',
    link: 'https://www.worldcat.org/'
});

configuring the button

the button has two configurable options:

  • "title": the text that will appear with the button.
  • "link": the address of the worldcat instance that should be searched. include the trailing slash.

you can edit the code in your 2_options.js to change these values.