Riksarkivet / dataplattform

Dokumentation och exempel för Riksarkivets API- och datatjänster
8 stars 0 forks source link

Collection manifests do not include a v3 @context #4

Closed benwbrum closed 2 years ago

benwbrum commented 2 years ago

While the top-level manifest contains a @context element, the leaf-node collection manifests (which list item manifests) and branch-level collection manifests are missing a @context element.

Leaf node example

URI: https://lbiiif.riksarkivet.se/collection/arkiv/lZkyF37hGIL2wcbGB1Vju6

Contents

{
  "id": "https://lbiiif.riksarkivet.se/collection/arkiv/lZkyF37hGIL2wcbGB1Vju6",
  "type": "Collection",
  "label": {"sv":["D VII Utvandrarrulla"]},
  "summary": {
    "sv": [
      "Referenskod: SE/SSA/0021/01/D VII",
      "Arkivinstitution: ",
      "Datering: "
    ]
  },
  "items": [
    {
      "id": "https://lbiiif.riksarkivet.se/arkis!A0069178/manifest",
      "type": "Manifest",
      "label": {"sv":["1 (1869-1886) - A0069178"]}
    },
    {
      "id": "https://lbiiif.riksarkivet.se/arkis!A0069179/manifest",
      "type": "Manifest",
      "label": {"sv":["2 (1886-1888) - A0069179"]}
    },
    {
      "id": "https://lbiiif.riksarkivet.se/arkis!A0069180/manifest",
      "type": "Manifest",
      "label": {"sv":["3 (1888-1904) - A0069180 - Bunt."]}
    }
  ]
}

Branch level example

URI: https://lbiiif.riksarkivet.se/collection/tid Contents (abbreviated):

{
  "id": "https://lbiiif.riksarkivet.se/collection/tid",
  "type": "Collection",
  "label": {
    "sv": [
      "Tid"
    ],
    "en": [
      "Time"
    ]
  },
  "summary": {
    "sv": [
      "Arkiv sorterade efter tid"
    ],
    "en": [
      "Archives ordered by date"
    ]
  },
  "items": [
    {
      "id": "https://lbiiif.riksarkivet.se/collection/tid/1200-1299",
      "type": "Collection",
      "label": {
        "sv": [
          "1200-tal"
        ],
        "en": [
          "13th century"
        ]
      }
    },
    {
      "id": "https://lbiiif.riksarkivet.se/collection/tid/1300-1399",
      "type": "Collection",
      "label": {
        "sv": [
          "1300-tal"
        ],
        "en": [
          "14th century"
        ]
      }
    },
    {
      "id": "https://lbiiif.riksarkivet.se/collection/tid/1400-1499",
      "type": "Collection",
      "label": {
        "sv": [
          "1400-tal"
        ],
        "en": [
          "15th century"
        ]
      }
    },
...
  ]
}
nilsw-ra commented 2 years ago

Thanks for letting us know! This is an oversight, I will fix it in the branch level manifests (which are static) and get the devs to look at the leaf level (which is dynamically generated)

nilsw-ra commented 2 years ago

This is now corrected and the update is deployed.

benwbrum commented 2 years ago

I've verified that the @context elements are now present.