Closed kimwdavidson closed 4 years ago
Notes:
Creating custom widget —> https://react-jsonschema-form.readthedocs.io/en/latest/advanced-customization/custom-widgets-fields/ This custom widget should have two options: one for adding a URL and other for uploading a file
If user chooses url —> we should validate if it is a valid url. If user chooses a file upload —> we should validate if the resulting uri corresponds to an existing file.
This would be out of the box, nothing else needs to be done, the widget should return a valid URI and that's what is going to be used.
The library react-jsonschema-form provides working widgets:
We're thinking about these tickets:
Implementation tickets:
DKAN1 had three options, so to provide an upgrade path we need some equivalent/mapping for all three.
Feedback from our users was that they found those default labels confusing so we ended up customising the terminology to this:
User story
As a data publisher, I want to be able to upload files through a user interface, so that I can share my data without having to use a remote file.
Details/Tasks