digitalutsc / islandora_web_annotations

An Islandora module that enables annotation on Islandora objects, following the W3C Web annotation model.
GNU General Public License v3.0
7 stars 5 forks source link

Can't replace WADM datastream #217

Closed kimpham54 closed 6 years ago

kimpham54 commented 6 years ago

Islandora complains that it's not XML (it's JSON)

Natkeeran commented 6 years ago

We need to update the https://github.com/digitalutsc/islandora_web_annotations/blob/7.x/xml/webannotation_ds_composite_model.xml to specify that WADM should be application/json as below:

<dsCompositeModel xmlns="info:fedora/fedora-system:def/dsCompositeModel#">
    <dsTypeModel ID="DC">
        <form FORMAT_URI="http://www.openarchives.org/OAI/2.0/oai_dc/" MIME="text/xml"></form>
    </dsTypeModel>
    <dsTypeModel ID="RELS-EXT">
        <form FORMAT_URI="info:fedora/fedora-system:FedoraRELSExt-1.0" MIME="text/xml"></form>
    </dsTypeModel>
    <dsTypeModel ID="WADM">
        <form MIME="application/json"></form>
    </dsTypeModel>
</dsCompositeModel>
Natkeeran commented 6 years ago

Have to update the WADMContainer DS-COMPOSITE-MODEL.xml as well.

kstapelfeldt commented 6 years ago

For @Natkeeran to review

Natkeeran commented 6 years ago

This is no longer an issue.