Copac Juice Extension

Extension Information
Extension File Name: 
copac.js
Author: 
Richard Wallis
Extension Class Name: 
copacJuice
Function Parameters: 
copacJuice(ju,src,text,defPanel,launchType,insert1,insert2)
  • ju - instance of juice
  • src - url to logo to display in selection panel
  • text - text to display in selection panel
  • launchType - type of widow to launch "new"(default) | "overlay" | "iframe" | "current" - optional
  • insert1 - option for launch window - optional
  • insert2 - option for launch window - optional
Dependencies: 

Extension is dependent on one ISBN value being stored in a Juice Meta definition named "isbns". This extension will not display in a selection panel if this value is not present. Note: Copac search only accepts single ISBNs, so only the first identified on page is used.

Example Code: 
new copacJuice( juice,
'http://copac.ac.uk/img/85x67_copac.gif',
'Search Copac'
);

Extension to launch a search window on copac.ac.uk based on ISBN data held on page. Can be launched from either text or image based selection panels.

Note: Copac search only accepts single ISBNs, so only the first identified on page is used.

Upon construction this extension inserts the passed icon & text in to the relevant selection panels with css classes set to 'juiceXInactiveIcon' and 'juiceXInactiveText'. Once initialized thes are changed to 'juiceXActiveIcon' and 'juiceXActiveText', and they become clickable. Once clicked, a window of the passed type is launched to display the site.

AttachmentSize
copac.js.txt1.36 KB