dlcs / iiif-presentation

Allows for the creation and management of IIIF manifests
MIT License
0 stars 0 forks source link

Hierarchical collection to return with AsJson #18

Closed JackLewis-digirati closed 6 days ago

JackLewis-digirati commented 1 week ago

Partly resolves #17

This PR moves hierarchical collects to use .AsJson found with iiif-net library over relying on internal serialization.

The reason for this change is that .AsJson contains a number of converters designed for the iiif spec which are not available through standard serialization. Additionally, the Content-Type header is now correctly set to that required by the iiif spec

This Pr does not change FlatCollection as it's currently being modified to work with the iiif-net library in #7