caltechlibrary / irdmtools

A Go and Python package for working with InvenioRDM repositories.
https://caltechlibrary.github.io/irdmtools
Other
1 stars 1 forks source link

Rights requires a title or id attribute #34

Closed rsdoiel closed 1 year ago

rsdoiel commented 1 year ago
    "rights": [
        {
            "description": {
                "en": "No commercial reproduction, distribution, display or performance rights in this work are provided.\n"
            }
        }
    ],

Exception: {"status": 400, "message": "A validation error occurred.", "errors": [{"field": "metadata.rights.0.rights", "messages": ["An existing id or a free text title must be present"]}]} Failed to process test-1-eprints.txt using caltechauthors.ds

tmorrell commented 1 year ago

For rights where the description is "No commercial reproduction, distribution, display or performance rights in this work are provided."

add id: "default"

Otherwise

title: {
en: "Other"
}
rsdoiel commented 1 year ago

fixed in release v0.0.22