Open drn05r opened 9 months ago
Doing this in JavaScript is trivial: just delete the row element in the DOM and the EPrints workflow code will sort it out from there.
Although the change may be trivial the impact could be large and therefore a lot of edge cases may need testing. I think this is best left to the next release.
Most
MetaField::Compound
fields tend to have multiple values (i.e. rows). If a compound field has lots of subfields, having to delete all the values on a row is annoying. This is a particular problem if a repository uses theorcid_support_advance
plugin as this disables the ORCID sub-field. Therefore, if a user realises they have added the wrong creator/editor they cannot delete the ORCID. Although the plugin will unset or update the ORCID field based on the ID (e.g. email) field for creators/editors this is not apparent in the user interface. Also, up until recently (not fix yet available in a released version)orcid_support
'scgi/users/lookup/name
has AND-ed the ORCID in the lookup, making it impossible to find any creator/editor other than the one previously entered.It should be fairly simple to added a cross icon next to the existing up/down arrows that will clear the adjacent row. This would make it quicker to edit multiple compound fields and also avoid any confusion to the user about what metadata will be saved to the record, where disabled sub-fields exist.