1.5.3 • Published 10 months ago
@archival-iiif/presentation-builder v1.5.3
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.3
10 months ago
1.5.2
3 years ago
1.4.4
3 years ago
1.5.1
3 years ago
1.4.2
3 years ago
1.5.0
3 years ago
1.3.4
3 years ago
1.4.1
3 years ago
1.4.0
3 years ago
1.3.3
4 years ago
1.3.2
4 years ago
1.3.1
4 years ago
1.3.0
4 years ago
1.2.0
4 years ago
1.2.8
4 years ago
1.2.7
4 years ago
1.2.6
4 years ago
1.2.5
4 years ago
1.2.4
4 years ago
1.2.3
4 years ago
1.2.2
4 years ago
1.2.1
4 years ago
1.2.9
4 years ago
1.2.10
4 years ago
1.1.1
4 years ago
1.1.0
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago
1.0.11
4 years ago
1.0.10
4 years ago
1.0.9
4 years ago
1.0.8
4 years ago
1.0.7
4 years ago
1.0.6
4 years ago
1.0.5
4 years ago
1.0.4
4 years ago
1.0.3
4 years ago
1.0.2
4 years ago
1.0.1
4 years ago
1.0.0
4 years ago