On Wed, Feb 23, 2022 at 01:20:15PM -0800, Stephen Brush wrote:
> Just wondering if there is an appropriate injection point to add
> validation to supplied metadata values (e.g. via an API). I don't believe
> I've seen examples of this to date.
>
> Additionally, is there a similar point to validate an item prior to
> "deposit" -- not against any particular metadata value on it's own but
> against other metadata values.
Some clarification would help. Do you mean to validate:
1) as data are entered in the UI?
2) when the Submit button is pressed?
3) during workflow?
4) (for completeness) after the Item is installed in the repository?
Case (1) is going to require some customization of the UI, and for
that we need to know what version of DSpace and, up through v6, which
UI.
For case (2) you should look at the code in
dspace-api/src/main/java/org/dspace/content for a starting point. I
would look first at InProgressSubmission and explore from there. You
may find the WorkspaceItem* classes worth inspection too.
Curation tasks can handle cases (3) and (4).
If the Collection has a workflow attached, you can add a curation task
to any workflow step. Or you could run the same task scheduled or
ad-hoc at any time.
--
Mark H. Wood
Lead Technology Analyst
University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu