delving / sip-creator

The Delving SIP-Creator
sip-creator.delving.eu
9 stars 3 forks source link

Add option to ignore errors to calculateAge and calculateAgeRange #520

Closed kiivihal closed 2 years ago

kiivihal commented 2 years ago

The groovy builtin functions for 'calculateAge' and 'calculateAgeRange' always return an error when the date cannot be parsed. This merge-requests adds support for ignoring errors and flagging ages > 130 as errors. When the errors are ignored an empty string is returned causing the sip-creator to ignore this value in the output.