Allow adding metadata entries with value in one step in metadata editor
Is your feature request related to a problem? Please describe.
When adding new metadata entries to a process in the metadata editor of Kitodo.Production, it is currently not possible to add a value for the new metadata at the same time:
Instead, the new metadata entry is added to the metadata table and any value must be inserted separately afterwards:
This is quite cumbersome, especially if the metadata table already contains many entries. Further exacerbating this issue is the fact that the tree table does scroll to the new metadata, but instead the user must manually search for the new entry in the list.
Describe the solution you'd like
It should be possible to directly add a value in the dialog used to add new metadata to a process. When selecting a metadata from the list, a second input field should be shown for the value:
The type of the value-input-field should depend on the type of the metadata (input text for standard metadata, calendar picker for dates, checkboxes for boolean metadata etc.).
Metadata groups shoud be exempt from this and instead of the input field display a note informing the user that metadata groups need to be populated afterwards.
In addition the metadata table should scroll to the new field and put the browser focus on it so that the user can immediately change or adjust the value if required.
Additional context This topic has been discussed at the Kitodo community meeting 2023 and has been documented at #5881 and https://github.com/kitodo/kitodo-production/wiki/Barcamp-2023:-Usability-Metadateneditor