Comparing version 0.1.7 to 0.1.8
@@ -127,2 +127,10 @@ "use strict"; | ||
} | ||
// sort members | ||
this.indexJson.members.sort((a, b) => { | ||
if (a.label.toLowerCase() < b.label.toLowerCase()) | ||
return -1; | ||
if (a.label.toLowerCase() > b.label.toLowerCase()) | ||
return 1; | ||
return 0; | ||
}); | ||
} | ||
@@ -129,0 +137,0 @@ else { |
{ | ||
"name": "biiif", | ||
"version": "0.1.7", | ||
"version": "0.1.8", | ||
"description": "A CLI to build IIIF collections", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -6,3 +6,3 @@ # biiif (build iiif) 👷✨📃 | ||
[](http://nodejs.org/download/) | ||
 | ||
<!--  --> | ||
@@ -58,2 +58,25 @@ ``` | ||
## Linked Manifests | ||
Sometimes you may need to include IIIF manifests in your collection from elsewhere. To do this, include a `manifests.yml` file in your collection folder e.g. | ||
``` | ||
manifests: | ||
- id: http://test.com/collection/linkedmanifest1/index.json | ||
label: Linked Manifest 1 | ||
thumbnail: [ | ||
{ | ||
"id": "http://test.com/collection/linkedmanifest1/thumb.jpg", | ||
"type": "Image" | ||
} | ||
] | ||
- id: http://test.com/collection/linkedmanifest2/index.json | ||
label: Linked Manifest 2 | ||
- id: http://test.com/collection/linkedmanifest3/index.json' | ||
``` | ||
If you leave the `label` property blank, it will default to the name of the last folder in the `id` URL. | ||
Including a `manifests.yml` file in a folder without any sub-folders forces it to behave like a collection. | ||
## Examples | ||
@@ -60,0 +83,0 @@ |
25564
486
121