Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify error handling for DOI service #987

Merged
merged 1 commit into from
Jul 16, 2019

Conversation

jabrah
Copy link
Contributor

@jabrah jabrah commented Jul 8, 2019

Closes #986

Errors are now displayed more plainly to the user when bad things are returned by the DOI service (bad things such as service error messages, or Crossref errors). Error messages now displayed under the DOI input field, instead of a Toastr popup in the top corner

@jabrah jabrah added minor Minor changes: does not have breaking effects on related code Cosmetic Requires changes strictly related to look and feel, text, layout, images, etc., i.e. non-functional labels Jul 8, 2019
@markpatton
Copy link
Contributor

markpatton commented Jul 16, 2019

Error handling seems to work well.

One issue I note is that the doi lookup occurs again and again even when the doi doesn't change, for example, clicking on the text box. Not sure if this was the behavior before. This can be fixed by using the oninput event in the template.

    input=(action "lookupDOI" true)

@markpatton markpatton merged commit 934c1e2 into eclipse-pass:master Jul 16, 2019
@jabrah jabrah deleted the issue-986-doi-service-errors branch July 22, 2019 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Cosmetic Requires changes strictly related to look and feel, text, layout, images, etc., i.e. non-functional minor Minor changes: does not have breaking effects on related code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Extend DOI validation to include errors from DOI service
2 participants