1.5.2 • Published 2 years ago
@archival-iiif/presentation-builder v1.5.2
Supported specifications
- Presentation API 3.0
- Presentation API 2.1
- Image API 3.0
- Image API 2.1
- Authentication API 1.0
- Search API 1.0
Installation
presentation-builder is available as an npm package.
// with npm
npm -i @archival-iiif/presentation-builder
// with yarn
yarn add @archival-iiif/presentation-builder
Usage
Code
import {Manifest} from "@archival-iiif/presentation-builder";
const m = new Manifest('https://example.org/iiif/book1/manifest', 'Book 1');
m.setContext();
JSON output
{
"id": "https://example.org/iiif/book1/manifest",
"type": "Manifest",
"@context": [
"http://www.w3.org/ns/anno.jsonld",
"http://iiif.io/api/presentation/3/context.json"
],
"label": {"none": ["Book 1"]}
}
More examples
- Manifest (Presentation API 3.0)
- Collection (Presentation API 3.0)
- Image Information (Image API 3.0)
- Manifest (Presentation API 2.1)
- Collection (Presentation API 2.1)
- Image Information (Image API 2.1)
License
This software is released under the MIT license.
1.5.2
2 years ago
1.4.4
2 years ago
1.5.1
2 years ago
1.4.2
2 years ago
1.5.0
2 years ago
1.3.4
2 years ago
1.4.1
2 years ago
1.4.0
2 years ago
1.3.3
3 years ago
1.3.2
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.0
3 years ago
1.2.8
3 years ago
1.2.7
3 years ago
1.2.6
3 years ago
1.2.5
3 years ago
1.2.4
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.2.1
3 years ago
1.2.9
3 years ago
1.2.10
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.13
3 years ago
1.0.12
3 years ago
1.0.11
3 years ago
1.0.10
3 years ago
1.0.9
3 years ago
1.0.8
3 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.4
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago
1.0.0
3 years ago