Skip to content

Commit

Permalink
manual manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
BernhardKoschicek committed Sep 22, 2023
1 parent e5ddd72 commit 923485c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions openatlas/views/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ def convert_image_to_iiif(id_):

def getManifest(img_id):
entity = Entity.get_by_id(img_id)
path = request.base_url
path = request.url_root
manifest = {
"@context": "http://iiif.io/api/presentation/2/context.json",
"@id": f"{path}{img_id}.json",
"@id": f"{request.base_url}",
"@type": "sc:Manifest",
"label": entity.name,
"metadata": [],
Expand All @@ -120,12 +120,12 @@ def getManifest(img_id):
"@type": "oa:Annotation",
"motivation": "sc:painting",
"resource": {
"@id": f"{path}/iiif/{img_id}/full/full/0/default.jpg",
"@id": f"{path}iiif/{img_id}/full/full/0/default.jpg",
"@type": "dctypes:Image",
"format": "image/jpeg",
"service": {
"@context": "http://iiif.io/api/image/2/context.json",
"@id": "{path}/iiif/{img_id}",
"@id": f"{path}iiif/{img_id}",
"profile": [
"http://iiif.io/api/image/2/level1.json",
{"formats": [
Expand Down

0 comments on commit 923485c

Please sign in to comment.