Skip to content
Snippets Groups Projects
Commit 219a368a authored by Anthony's avatar Anthony
Browse files

Update Script and add new manifest

parent 55bd074e
No related branches found
No related tags found
No related merge requests found
Pipeline #1343 failed
{
"@context": "http://iiif.io/api/presentation/3/context.json",
"id": "https://iiif.io/api/cookbook/recipe/0021-tagging/manifest.json",
"type": "Manifest",
"label": {
"en": [
"Picture of Göttingen taken during the 2019 IIIF Conference"
]
},
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0021-tagging/canvas/p1",
"type": "Canvas",
"height": 3024,
"width": 4032,
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0021-tagging/page/p1/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0021-tagging/annotation/p0001-image",
"type": "Annotation",
"motivation": "painting",
"body": {
"id": "https://iiif.io/api/image/3.0/example/reference/918ecd18c2592080851777620de9bcb5-gottingen/full/max/0/default.jpg",
"type": "Image",
"format": "image/jpeg",
"height": 3024,
"width": 4032,
"service": [
{
"id": "https://iiif.io/api/image/3.0/example/reference/918ecd18c2592080851777620de9bcb5-gottingen",
"profile": "level1",
"type": "ImageService3"
}
]
},
"target": "https://iiif.io/api/cookbook/recipe/0021-tagging/canvas/p1"
}
]
}
],
"annotations": [
{
"id": "https://iiif.io/api/cookbook/recipe/0021-tagging/page/p2/1",
"type": "AnnotationPage",
"items": [
{
"id": "https://iiif.io/api/cookbook/recipe/0021-tagging/annotation/p0002-tag",
"type": "Annotation",
"motivation": "tagging",
"body": {
"type": "TextualBody",
"value": "Gänseliesel-Brunnen https://monURl#manifest un autre https://maDeuxiemeURl#manifest ",
"language": "de",
"format": "text/plain"
},
"target": "https://iiif.io/api/cookbook/recipe/0021-tagging/canvas/p1#xywh=265,661,1260,1239"
},
{
"id": "https://iiif.io/api/cookbook/recipe/0021-tagging/annotation/p0002-tag",
"type": "Annotation",
"motivation": "tagging",
"body": {
"type": "TextualBody",
"value": "Mon maifest",
"language": "de",
"format": "text/plain"
},
"target": "https://iiif.io/api/cookbook/recipe/0021-tagging/canvas/p1#xywh=265,661,1260,1239"
}
]
}
]
}
]
}
\ No newline at end of file
...@@ -2,6 +2,7 @@ Manifests availables : ...@@ -2,6 +2,7 @@ Manifests availables :
- [folder/](folder//manifest.md) - [folder/](folder//manifest.md)
- [folder2/](folder2//manifest.md) - [folder2/](folder2//manifest.md)
- [www-COESO-TEST/](www-COESO-TEST//manifest.md)
- [test3.json](test3.json), [View in Mirador](https://projectmirador.org/embed/?iiif-content=https://iiif.pages.tetras-libre.fr/IIIF-Publisher/manifests/test3.json) - [test3.json](test3.json), [View in Mirador](https://projectmirador.org/embed/?iiif-content=https://iiif.pages.tetras-libre.fr/IIIF-Publisher/manifests/test3.json)
- [test4.json](test4.json), [View in Mirador](https://projectmirador.org/embed/?iiif-content=https://iiif.pages.tetras-libre.fr/IIIF-Publisher/manifests/test4.json) - [test4.json](test4.json), [View in Mirador](https://projectmirador.org/embed/?iiif-content=https://iiif.pages.tetras-libre.fr/IIIF-Publisher/manifests/test4.json)
- [test5.json](test5.json), [View in Mirador](https://projectmirador.org/embed/?iiif-content=https://iiif.pages.tetras-libre.fr/IIIF-Publisher/manifests/test5.json) - [test5.json](test5.json), [View in Mirador](https://projectmirador.org/embed/?iiif-content=https://iiif.pages.tetras-libre.fr/IIIF-Publisher/manifests/test5.json)
#!/bin/bash #!/bin/bash
viewer_url=https://projectmirador.org/embed/?iiif-content= VIEWER_URL=https://projectmirador.org/embed/?iiif-content=
root_dir=docs ROOT_DIR=docs
manifest_dir=manifests MANIFEST_DIR=manifests
manifest_file=manifest.md MANIFEST_FILE=manifest.md
default_publisher=https://iiif.pages.tetras-libre.fr/IIIF-Publisher/ DEFAULT_PUBLISHER=https://iiif.pages.tetras-libre.fr/IIIF-Publisher/
if [ -z ${CI_PAGES_URL+x} ]; then if [ -z ${CI_PAGES_URL+x} ]; then
publisher=$default_publisher PUBLISHER=$DEFAULT_PUBLISHER
else else
publisher=$CI_PAGES_URL PUBLISHER=$CI_PAGES_URL
fi fi
...@@ -23,30 +23,30 @@ walk_through_manifest(){ ...@@ -23,30 +23,30 @@ walk_through_manifest(){
echo "P1 $1 / P2 $2 / path $(pwd)" echo "P1 $1 / P2 $2 / path $(pwd)"
echo " " echo " "
echo "Manifests availables :" > $manifest_file echo "Manifests availables :" > $MANIFEST_FILE
echo " " >> $manifest_file echo " " >> $MANIFEST_FILE
if [ -n "$2" ]; then if [ -n "$2" ]; then
echo "- [..]($publisher$2manifest)" >> $manifest_file echo "- [..]($PUBLISHER$2manifest)" >> $MANIFEST_FILE
fi fi
for d in $(ls -d */); for d in $(ls -d */);
do do
echo "- [$d]($d/$manifest_file)" >> $manifest_file echo "- [$d]($d/$MANIFEST_FILE)" >> $MANIFEST_FILE
walk_through_manifest $d $2$1 walk_through_manifest $d $2$1
done done
for entry in *.json for entry in *.json
do do
echo "- [$entry]($entry), [View in Mirador]($viewer_url$publisher$2$1$entry)" >> $manifest_file echo "- [$entry]($entry), [View in Mirador]($VIEWER_URL$PUBLISHER$2$1$entry)" >> $MANIFEST_FILE
done done
cd .. cd ..
} }
cd $root_dir cd $ROOT_DIR
walk_through_manifest $manifest_dir/ "" walk_through_manifest $MANIFEST_DIR/ ""
# annotation # annotation
annotation_dir=annotations annotation_dir=annotations
...@@ -57,5 +57,5 @@ echo "Annotations available" > $annotation_file ...@@ -57,5 +57,5 @@ echo "Annotations available" > $annotation_file
echo "" >> $annotation_file echo "" >> $annotation_file
for entry in *.json for entry in *.json
do do
echo "- [$entry]($entry), [View in Mirador]($viewer_url$publisher/$annotation_dir/$entry)" >> $annotation_file echo "- [$entry]($entry), [View in Mirador]($VIEWER_URL$PUBLISHER/$annotation_dir/$entry)" >> $annotation_file
done done
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment