atom
atom copied to clipboard
Fix accession type option in clipboard export
Closes #2221 Closes #2222
These issues are closely related so I addressed them both in this PR.
There is some JS that watches for changes in the Type selector on the clipboard export page, and "accession" was not one of the expected types, so it always fell back to "informationObject". This is why it wasn't possible to select the Accession option.
And now I'm only showing the Accession option in that dropdown when the user is an editor or admin.
Looks like a network issue cause the Electron integration tests to fail. I don't have permission to retry the job but I'd expect it to succeed if it was retried