Importing for others with an invalid author email address still allows work to be imported

Description

Steps to reproduce:

  1. Log in as an archivist

  2. Post > Import Work

  3. Fill in a URL, but it can't be from a site where we can automatically detect email addresses or names (slashdom.net or a journal site like LiveJournal) – it might be easiest to use something totally off the wall, like a JIRA issue

  4. Check "Import for others ONLY with permission"

  5. Fill in "Author Name"

  6. Fill in "Author Email Address" with something not email-address-shaped, e.g. a single letter, a word, or a sentence

  7. Press "Import"

What happens:
The work is imported. The byline lists just the current user, e.g. "CURRENT_USER" rather than "AUTHOR_NAME [archived by CURRENT_USER]". The work is added to the current user's account.

What should happen:
We should validate the format of the Author Email Address, and I should be redirected to the import form with a red flash error saying roughly, "Author Email Address does not appear to be a valid email address." (If you find an existing error message somewhere in the code, please use that.) The work should not be imported.

Assignee

Unassigned

Reporter

Sarken

Roadmap

Work Importing

Priority

Medium

Affects versions

Fix versions

None

Components

BackEnd

Difficulty

Medium

Required Access Level

Archivist

Milestone

Internal 0.9