Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include language in cocina-to-IIIF mapping #1222

Closed
andrewjbtw opened this issue Feb 28, 2025 · 2 comments · Fixed by #1223
Closed

Include language in cocina-to-IIIF mapping #1222

andrewjbtw opened this issue Feb 28, 2025 · 2 comments · Fixed by #1223
Assignees

Comments

@andrewjbtw
Copy link

andrewjbtw commented Feb 28, 2025

I'm reviewing before and after IIIF manifests by comparing what is in a prod manifest vs UAT manifest and I don't see language getting mapped from Cocina.

Compare:

UAT, using the new mapping:

{
  "@context": [
    "http://www.w3.org/ns/anno.jsonld",
    "http://iiif.io/api/presentation/3/context.json"
  ],
  "id": "https://sul-purl-uat.stanford.edu/wz891rq8670/iiif/manifest",
  "label": {
    "en": [
      "A Soviet Ant Takes a Walk"
    ]
  },
  "requiredStatement": {
    "label": {
      "en": [
        "Attribution"
      ]
    },
    "value": {
      "en": [
        "Copyright (c) The Board of Trustees of the Leland Stanford Junior University. All rights reserved."
      ]
    }
  },
  "provider": {
    "id": "https://library.stanford.edu/about",
    "type": "Agent",
    "label": {
      "en": [
        "Stanford University Libraries"
      ]
    },
    "homepage": [
      {
        "id": "https://library.stanford.edu/",
        "type": "Text",
        "label": {
          "en": [
            "Stanford University Libraries Homepage"
          ]
        },
        "format": "text/html"
      }
    ],
    "logo": [
      {
        "id": "https://stacks.stanford.edu/image/iiif/wy534zh7137/SULAIR_rosette/full/400,/0/default.jpg",
        "format": "image/jpeg",
        "type": "Image",
        "service": [
          {
            "@context": [
              "http://www.w3.org/ns/anno.jsonld",
              "http://iiif.io/api/presentation/3/context.json"
            ],
            "id": "https://stacks.stanford.edu/image/iiif/wy534zh7137/SULAIR_rosette",
            "type": "ImageService2",
            "profile": "http://iiif.io/api/image/2/level2.json"
          }
        ]
      }
    ]
  },
  "seeAlso": [
    {
      "id": "https://sul-purl-uat.stanford.edu/wz891rq8670.mods",
      "type": "Metadata",
      "format": "application/mods+xml"
    }
  ],
  "type": "Manifest",
  "metadata": [
    {
      "label": {
        "en": [
          "Available Online"
        ]
      },
      "value": {
        "en": [
          "<a href='https://purl.stanford.edu/wz891rq8670'>https://purl.stanford.edu/wz891rq8670</a>"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Title"
        ]
      },
      "value": {
        "en": []
      }
    },
    {
      "label": {
        "en": [
          "Contributor"
        ]
      },
      "value": {
        "en": [
          "Okhot︠s︡imskiĭ, D. E. (Creator)",
          "Platonov, A. K. (Creator)"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Contact"
        ]
      },
      "value": {
        "en": []
      }
    },
    {
      "label": {
        "en": [
          "Type"
        ]
      },
      "value": {
        "en": [
          "Computer animation films",
          "Nonfiction films"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Format"
        ]
      },
      "value": {
        "en": [
          "1 16mm film"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Description"
        ]
      },
      "value": {
        "en": [
          "Reformatted by Stanford University Libraries in 2013."
        ]
      }
    },
    {
      "label": {
        "en": [
          "Date"
        ]
      },
      "value": {
        "en": [
          "1975"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Identifier"
        ]
      },
      "value": {
        "en": [
          "https://purl.stanford.edu/wz891rq8670"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Relation"
        ]
      },
      "value": {
        "en": [
          "Stanford University, Computer Science Department, films, 1968-1977"
        ]
      }
    },
    {
      "label": {
        "en": [
          "PublishDate"
        ]
      },
      "value": {
        "en": [
          "2024-10-18T08:33:45.000+00:00"
        ]
      }
    }
  ],
  "summary": {
    "en": [
      "Reformatted by Stanford University Libraries in 2013."
    ]
  }
}

Prod, using the old mapping via DC:

{
  "@context": [
    "http://www.w3.org/ns/anno.jsonld",
    "http://iiif.io/api/presentation/3/context.json"
  ],
  "id": "https://purl.stanford.edu/wz891rq8670/iiif/manifest",
  "label": {
    "en": [
      "A Soviet Ant Takes a Walk"
    ]
  },
  "requiredStatement": {
    "label": {
      "en": [
        "Attribution"
      ]
    },
    "value": {
      "en": [
        "Copyright (c) The Board of Trustees of the Leland Stanford Junior University. All rights reserved."
      ]
    }
  },
  "logo": [
    {
      "id": "https://stacks.stanford.edu/image/iiif/wy534zh7137/SULAIR_rosette/full/400,/0/default.jpg",
      "type": "Image",
      "service": [
        {
          "id": "https://stacks.stanford.edu/image/iiif/wy534zh7137/SULAIR_rosette",
          "type": "ImageService2",
          "profile": "http://iiif.io/api/image/2/level2.json"
        }
      ]
    }
  ],
  "seeAlso": [
    {
      "id": "https://purl.stanford.edu/wz891rq8670.mods",
      "type": "Metadata",
      "format": "application/mods+xml"
    }
  ],
  "type": "Manifest",
  "metadata": [
    {
      "label": {
        "en": [
          "Available Online"
        ]
      },
      "value": {
        "en": [
          "<a href='https://purl.stanford.edu/wz891rq8670'>https://purl.stanford.edu/wz891rq8670</a>"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Title"
        ]
      },
      "value": {
        "en": [
          "A  Soviet Ant Takes a Walk"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Contributor"
        ]
      },
      "value": {
        "en": [
          "Institut teoreticheskoĭ i prikladnoĭ mekhaniki (Akademii︠a︡ nauk SSSR) (Producerpro)"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Creator"
        ]
      },
      "value": {
        "en": [
          "Okhot︠s︡imskiĭ, D. E. (Creatorcre)",
          "Platonov, A. K. (Creatorcre)"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Type"
        ]
      },
      "value": {
        "en": [
          "Computer animation films",
          "Nonfiction films",
          "MovingImage"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Format"
        ]
      },
      "value": {
        "en": [
          "1 16mm film",
          "film reel",
          "video/mp4"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Language"
        ]
      },
      "value": {
        "en": [
          "No linguistic contentzxx"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Description"
        ]
      },
      "value": {
        "en": [
          "Reformatted by Stanford University Libraries in 2013."
        ]
      }
    },
    {
      "label": {
        "en": [
          "Subject"
        ]
      },
      "value": {
        "en": [
          "Locomotion",
          "Locomotion--Computer simulation"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Date"
        ]
      },
      "value": {
        "en": [
          "1975"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Identifier"
        ]
      },
      "value": {
        "en": [
          "https://purl.stanford.edu/wz891rq8670"
        ]
      }
    },
    {
      "label": {
        "en": [
          "Relation"
        ]
      },
      "value": {
        "en": [
          "Stanford University. Libraries. Department of Special Collections and University Archives",
          "Stanford University, Computer Science Department, films, 1968-1977"
        ]
      }
    },
    {
      "label": {
        "en": [
          "PublishDate"
        ]
      },
      "value": {
        "en": [
          "2024-10-18T08:33:45Z"
        ]
      }
    }
  ],
  "summary": {
    "en": [
      "Reformatted by Stanford University Libraries in 2013."
    ]
  }
}
@jcoyne
Copy link
Contributor

jcoyne commented Feb 28, 2025

Cocina for this is https://purl.stanford.edu/wz891rq8670.json

@andrewjbtw
Copy link
Author

Sorry, I mangled the markdown formatting. I included both the UAT and prod JSON but then missed a close tag so it looked like one manifest, not two. I fixed the formatting now.

The language code is in the Purl manifest but not the newly-generated UAT manifest.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants