Title, barcode and material-type should be mandatory

Description

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.

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

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 PM
Edited

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

Done

Details

Assignee

Reporter

Priority

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created June 21, 2017 at 11:21 PM
Updated July 11, 2017 at 10:49 AM
Resolved June 22, 2017 at 4:40 PM
TestRail: Cases
TestRail: Runs