clover-iiif icon indicating copy to clipboard operation
clover-iiif copied to clipboard

Support Using Choice Web Annotation for Multiple Closed Caption Files

Open markpbaggett opened this issue 2 years ago • 1 comments

Currently, Clover works great for captions and subtitles where there are multiple caption files as long as the caption files are individual Text Web Annotations on the Canvas at annotation[0].items like below:

{
     "annotations": [
        {
          "id": "https:\/\/digital.lib.utk.edu\/assemble\/manifest\/rfta\/165\/canvas\/0\/page\/annotation\/rfta%3A165",
          "type": "AnnotationPage",
          "items": [
            {
              "id": "https:\/\/digital.lib.utk.edu\/assemble\/manifest\/rfta\/165\/canvas\/0\/page\/annotation\/rfta%3A165\/62656cfd60e87",
              "type": "Annotation",
              "motivation": "supplementing",
              "body": {
                "id": "https:\/\/digital.lib.utk.edu\/collections\/islandora\/object\/rfta%3A165\/datastream\/TRANSCRIPT",
                "type": "Text",
                "format": "text\/vtt",
                "label": {
                  "en": [
                    "Captions in English"
                  ]
                },
                "language": "en"
              },
              "target": "https:\/\/digital.lib.utk.edu\/assemble\/manifest\/rfta\/165\/canvas\/0"
            },
            {
              "id": "https:\/\/digital.lib.utk.edu\/assemble\/manifest\/rfta\/165\/canvas\/0\/page\/annotation\/rfta%3A165\/62656cfd60e91",
              "type": "Annotation",
              "motivation": "supplementing",
              "body": {
                "id": "https:\/\/digital.lib.utk.edu\/collections\/islandora\/object\/rfta%3A165\/datastream\/TRANSCRIPT-ES",
                "type": "Text",
                "format": "text\/vtt",
                "label": {
                  "es": [
                    "Subt\u00edtulos en espa\u00f1ol"
                  ]
                },
                "language": "es"
              },
              "target": "https:\/\/digital.lib.utk.edu\/assemble\/manifest\/rfta\/165\/canvas\/0"
            }
          ]
        }
      ]
}

That being said, Recipe 74: Using Caption and Subtitle Files in Multiple Languages with Video Content suggests that in the case that there are multiple caption files the Annotation should be modeled as Choice ( See full fixture here ):

{
      "annotations": [
        {
          "id": "https:\/\/digital.lib.utk.edu\/assemble\/manifest\/rfta\/165\/canvas\/0\/page\/annotation\/rfta%3A165",
          "type": "AnnotationPage",
          "items": [
            {
              "id": "https:\/\/digital.lib.utk.edu\/assemble\/manifest\/rfta\/165\/canvas\/0\/page\/annotation\/rfta%3A165\/62656cfd60e87",
              "type": "Annotation",
              "motivation": "supplementing",
              "body": {
                "type": "Choice",
                "items": [
                  {
                    "id": "https:\/\/digital.lib.utk.edu\/collections\/islandora\/object\/rfta%3A165\/datastream\/TRANSCRIPT",
                    "type": "Text",
                    "format": "text\/vtt",
                    "label": {
                      "en": [
                        "Captions in English"
                      ]
                    },
                    "language": "en"
                  },
                  {
                    "id": "https:\/\/digital.lib.utk.edu\/collections\/islandora\/object\/rfta%3A165\/datastream\/TRANSCRIPT-ES",
                    "type": "Text",
                    "format": "text\/vtt",
                    "label": {
                      "es": [
                        "Subt\u00edtulos en espa\u00f1ol"
                      ]
                    },
                    "language": "es"
                  }
                ]
              },
              "target": "https:\/\/digital.lib.utk.edu\/assemble\/manifest\/rfta\/165\/canvas\/0"
            }
          ]
        }
      ]
}

Is it possible for Clover to support this model?

markpbaggett avatar Apr 24 '22 16:04 markpbaggett

Please add your planning poker estimate with ZenHub @mathewjordan

adamjarling avatar Apr 27 '22 20:04 adamjarling