NCEAS / metacatui

MetacatUI: A client-side web interface for DataONE data repositories
https://nceas.github.io/metacatui
Apache License 2.0
41 stars 26 forks source link

add ability to reorder EMLParties #521

Closed mbjones closed 4 years ago

mbjones commented 6 years ago

Creator order is preserved in the citation. Need to be able to reorder creators easily. Probably easiest with drag and drop on the rows with a drag handle. But could also be done with Move up/Move down arrow butttons.

vchendrix commented 4 years ago

We just got this feature request from one of our users.

laurenwalker commented 4 years ago

Thanks, Val. I'm going to incorporate this feature into a release soon.

laurenwalker commented 4 years ago

To start, this feature should use a simple move up/down buttons, rather than drag-and-drop, since the EMLPartyView tends to be pretty tall.

When designing the Portal Editor, we came up with a redesign of the EMLPartyView that would make drag-and-drop reordering much simpler. When we redesign the EMLPartyView, we can introduce drag-and-drop reordering at the same time. I created a new issue to contain that iterative enhancement: #1239

amoeba commented 4 years ago

Partial support pushed up in https://github.com/NCEAS/metacatui/commit/64ea4f67d18509f7f5f08ee23c037c0b56f46817. Will continue on this tomorrow AM. You can currently move a party down and it moves the party down the page and in the serialized EML doc. Want to find a nice way to display the move buttons and catch a few edge cases.

amoeba commented 4 years ago

Simple up down button implementation PR'd in #1334.

Action shot of reversing the order of three creators:

Kapture 2020-04-16 at 16 25 38