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

Structure Doesn't Appear in JSON for Media Objects #6136

Open
1 task
joncameron opened this issue Nov 26, 2024 · 0 comments
Open
1 task

Structure Doesn't Appear in JSON for Media Objects #6136

joncameron opened this issue Nov 26, 2024 · 0 comments

Comments

@joncameron
Copy link
Contributor

joncameron commented Nov 26, 2024

Description

The structure XML or the URI to the structure XML should be included in the json response for a media object. Currently the structure field is always null.

Currently, need to add a query param to retrieve structure info. We can set the value to be the URI if this is not present in the request URL; otherwise inline the structure data. (parameter :include_structure specifies if structure should be included in response). Better formatting of the wiki page would also be nice!

Example

https://avalon-dev.dlib.indiana.edu/media_objects/gf06g267d.json
Screenshot 2024-12-04 at 2 31 05 PM
The structure field should be the URI:
https://avalon-dev.dlib.indiana.edu/master_files/sj139194f/structure

Done Looks Like

  • URI for section structure included in the JSON media object response
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

No branches or pull requests

1 participant