0.0.2 • Published 3 years ago
axis-iiif v0.0.2
Axis IIIF
An experimental UI for interacting with IIIF Change Discovery API.

Usage
Axis allows for consuming applications to be returned an array of IIIF Presentation API resources by their id URI. From this array, a consuming application would be able to update local resources compatible with Manifest or Collection shapes.
Cart Callback
Example using cartCallback to return an array of strings string[] to your consuming application.
const id = "https://example.org/iiif/change-discovery.json";
const handleCartCallback = (resources) => {
if (resources) console.log(resources);
/**
* Output:
*
* Array [ "https://example.org/iiif/...", "https://example.org/iiif/...." ]
* 0: "https://example.org/iiif/manifest/821"
* 1: "https://example.org/iiif/manifest/1187"
* length: 2
*/
};
return <AxisIIIF id={id} cartCallback={handleCartCallback} />;Development
Environment
This will open up a local dev server with live reloading.
npm install
npm run devBuild
This will build and package the component
npm run buildThis will create a static version of the site to the /static directory
npm run build:static