CABI Content Delivery Network

A collection of files and libraries to aid in the use of our APIs by providing content, code snippets and insertable component

Available Packages

CAB Direct Abstract Viewer

A simple method of adding a CAB Direct abstract viewer to a web page by adding a DIV and a javascript file.

Create a div tag in the location required and give it an ID of 'cabi-abstract-viewer' and then place a script tag on the page with the src attribute set to https://cdn.cabi.org/AbstractViewer/js/cabi-abstract-viewer.js

Authentication API

Functionality to authenticate against CABI's APIs via CDN packages we offer.

Intended for use only via other CDN packages

Booklet Builder

A simple method of adding a booklet builder to a web page by adding a few SPANs, a DIV and a javascript file.

Create a span tag in the locations required for adding/removing an item to a booklet and give them a class of 'cabi-bookletbuilder-addremove' with an attribute of 'item-id' and the PAN to add. To create the cart icon, create a span tag with an ID of 'cabi-bookletbuilder-cart' and then a div for the summary/build page with an ID of cabi-bookletbuilder-summary and the ID of the search profile specified in a 'profile' attribute. Finally, place a script tag on the page with the src attribute set to https://cdn.cabi.org/BookletBuilder/js/cabi-bookletbuilder.js

JSON Transform

A library intended to transform JSON into HTML.

Create a div tag in the location required and give it a class of 'cabi-json-transform' and then place a script tag on the page with the src attribute set to https://cdn.cabi.org/JsonTransform/js/cabi-json-transform.js

Search Components

A simple method of adding a search dialog and results page to a web page by adding a few DIVs and a javascript file.

Create a div tag in the locations required and give them an ID of 'cabi-search-dialog', 'cabi-search-results' or 'cabi-search-facets' and then place a script tag on the page with the src attribute set to https://cdn.cabi.org/Search/js/cabi-search.js