Title, barcode and material-type should be mandatory
Description
Environment
Potential Workaround
relates to
Checklist
hideTestRail: Results
Activity
Charlotte Whitt June 22, 2017 at 4:38 PM
Okay . I'll close this issue as done
Mike Taylor June 22, 2017 at 4:36 PM
I made them mandatory to avoid https://folio-org.atlassian.net/browse/UIIT-31
Let's discuss over on that issue if you think that's the wrong thing.
Charlotte Whitt June 22, 2017 at 4:28 PM
, besides warning messages if title, barcode or material type is missing, I also get warning on missing data for permanent loan type, and temporary loan type. Are the two loan type categories expected to be mandatory as well?
Mike Taylor June 22, 2017 at 4:03 PM
Thanks, Charlotte. I fixed the spelling of "barcode".
Your suggestion about marking mandatory fields is separate: please file a separate issue for that (and close this one if you are otherwise satisfied).
Charlotte Whitt June 22, 2017 at 3:43 PMEdited
Tested in http://folio-testing.aws.indexdata.com/, version @folio/items 1.6.1-SNAPSHOT.121 has no dependencies
1) Creation of a new record, by just filling the title field and following warnings were returned:
Please specify the material-type
Please specify the bar-code
Please specify the permanent loan type
Please specify the temporary loan type
and following green check marks:
x title
x location
x status
2) Creation of a new record, by filling the barcode field and permanent loan type, resulted in following warnings (red text):
Please provide the title of the item
Please specify the material-type
Please specify the temporary loan type
and following green check marks:
x barcode
x location
x status
Expected outcome:
a warning message only if one or more of following data fields are missing:
title
barcode
material type
Additional remarks:
Right now, the warnings messages returns when hitting 'create item' button, but maybe it would be better usability to do both: mark the mandatory fields, and return warning messages, when the item record are created with missing mandatory data.
Suggestion: The form could have an * (asterix) or other symbol marking the mandatory fields.Bar-code should be spelled barcode
At present, it's possible to submit a new item with no barcode, but it is then rejected by the backend mod-inventory, with this error message:
The UI should prevent such a record from being submitted.