Skip to content

v1.8.0

Compare
Choose a tag to compare
@dchandekstark dchandekstark released this 29 Jun 02:17
cae2aca
  • Deprecated settings related to SSL, since SSL now required.
  • Added Datacite compatibility (contributed by @jgondron):
    • Added a new MetadataTransformDatacite class that transforms a hashes datacite.* keys to the xml required by the datacite api.
    • Added an additional step in Metadata#to_anvl. Before the metadata is converted to anvl, it will perform an additional transformation of the metadata hash to make it compatible with datacite. A future improvement might be to do IoC here so that we can inject requested transforms and ignore ones an app doesn't care about.
    • Added an inverse transformation method for transforming metadata from the datacite api to keys required by the Metadata class
    • Added an additional step in Metadata#replace to transform the remote datacite metadata into the correct format
    • Adding a default DOI identifier type even when one is not available in the existing metadata. I've found that if you add this, the api's will generate the identifier xml for you. This is mostly for the case when you want to mint and give it the metadata in one op, since you won't have the identifier yet.
    • Datacite chokes on newlines in the xml. Likely to do with how the anvl gets parsed. Changed the transform to remove all new lines from the xml and fixed specs/fixtures to match.
    • Also fixed some issues with the readme's testing env variables