glenrobson / SimpleAnnotationServer

A simple IIIF and Mirador compatible Annotation Server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatic storage of enriched manifests

annalauraw opened this issue · comments

Is there any way to automate the following steps?

  • Enhance the annotated manifests with the JSON snippets specifying the search service and the annotation list

  • Save the enhanced manifests on the web server

Goal: The annotated manifests can be searched for annotations without the user having to copy and paste JSON snippets manually.
Would it be possible, for instance, to make a python script interact with the SAS in order to achieve this goal, similarly to the Batch downlading annotations (https://github.com/glenrobson/SimpleAnnotationServer/blob/master/doc/DownloadAnnotations.md)?

Ben's mockup:

sas-collection-ui-stage3-v06-share

Plans:

  • Implement /manifests/1245635613/1969268/5bbada360fbe7c8f72a8153896686398.json
    • /manifests/<user_id>/<manifest_short_id>.json
  • Generate manifest on first access
  • Have re-generate button
  • Pulls in remote manifest adds search service and annotation lists for each canvas (these annotation lists are empty of canvases without annotations).
    • Search service: /search-api/<user_id>/<manifest_short_id>/search
    • Annotations: /annotations/<user_id>/<canvas_short_id>.json

Ready for review.

Now complete in auth-testing branch.