Negative dates

Project:RUcore API's
Component:PURL API
Category:bug report
Status:Moved to JIRA

Testers are getting this DOI error when ingesting a record with negative dateOfIssue value. The WMS error message is below, but it looks like server doesn't like year = -1258:

Failed updating DOI metadata:
Server message for updating DOI metadata: 400
Publication year was not found or is in an invalid format for rutgers-lib:201760. Value found was -1258.



Assigned to:chadmills» yuyang
Status:active» test

Was checking if the string length of the publication year was 4 characters long. The negative sign was tripping it up. I am still checking is the value is numeric using the is_numeric function. If it still doesn't work then this function cannot properly determine if a negative number is valid. If that is the case then I will remove that check as well. Please test in WMS before releasing to testers to do further testing.


Assigned to:yuyang» rjantz
Status:test» active

We are getting the following error message from the EZID API when submitting negative dates:

Error changing DOI state to public: Server message for updating DOI state: 400
bad request - element 'datacite': [xml] xml error: cvc-pattern-valid: Value '-1258' is not facet-valid with respect to pattern '[\d]{4}' for type '#AnonType_publicationYearresource'.

Looks like they are checking that the date is 4 characters long, and throwing an error otherwise. Someone needs to contact EZID.


Version:7.3» 7-x

Moving to 7.x awaiting feedback from the EZID Metadata group.


Status:active» Moved to JIRA

Back to top