hipstas / AudiAnnotate

Workflows for generating AV editions and exhibits using IIIF manifests by HiPSTAS and Brumfield Labs.
https://hipstas.github.io/AudiAnnotate/
Apache License 2.0
15 stars 8 forks source link

No annotations when importing existing manifest #249

Closed zillingworth closed 1 year ago

zillingworth commented 1 year ago

Describe the bug When I import an existing manifest, I see "no data available in table" where my annotations should be. Annotations do not appear under annotation files. I can click on individual layers like "Transcription" and when I do I see screenshot 2, but no annotation file exists.

To Reproduce Steps to reproduce the behavior:

  1. Go to http://audiannotate.brumfieldlabs.com/project/zillingworth/multiple-manifests-2
  2. Click on Import Existing Manifest
  3. Insert IIIF manifest URL and save
  4. See error

Expected behavior My annotation file loaded and presented on the following screen

Screenshots

Screen Shot 2022-10-07 at 9 33 30 AM Screen Shot 2022-10-07 at 9 42 36 AM

Additional context Add any other context about the problem here.

benwbrum commented 1 year ago

Hi @zillingworth -- can you add the manifest you're trying to import to the issue here?

zillingworth commented 1 year ago

Yes! Here you go: https://zillingworth.github.io/virtual-poem-on-screen/clip-of-claudia-rankine-for-wpr/manifest.json

If you need anything else let me know!

benwbrum commented 1 year ago

It turns out that the problem is not in the import code, but rather in the manifest to be imported. The problem seems to be that the virtual poem on screen manifest refers to https://zillingworth.github.io/virtual-poem-on-screen/annotations/clip-of-claudia-rankine-for-wpr-canvas-1-clip-of-claudia-rankine-for-wpr-canvas-1-poem.json instead of https://zillingworth.github.io/virtual-poem-on-screen/annotations/clip-of-claudia-rankine-for-wpr-canvas-1-poem.json, which does work.

There was a bug with AA which we fixed a few days ago, changing the ways we create annotation page slugs -- can you delete that layer, then re-upload the annotations?

zillingworth commented 1 year ago

Woo hoo! I did that. It worked when I re-uploaded the annotations on the "multiple-manifests-2" project. Quick question: does this mean that I will need to have access to the annotations files for each contributor to a collaborative project in the future?

https://zillingworth.github.io/multiple-manifests-2/clip-of-claudia-rankine-for-wpr

benwbrum commented 1 year ago

You'll need to have programmatic access to the annotation pages on the Jekyll sites, but that shouldn't be a problem -- any repository created since September/Octoberish should work, though the delete/reupload trick might be necessary for a few.