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

Smarter logic to handle DOI or URL #20

Open
jimallman opened this issue Sep 9, 2014 · 0 comments
Open

Smarter logic to handle DOI or URL #20

jimallman opened this issue Sep 9, 2014 · 0 comments

Comments

@jimallman
Copy link
Collaborator

From an email thread with @pdpolly:

Is there any way to parse that field into fully formed URLs (which are then linked as entered) and DOIs (which are formatted on the fly as links through dx.doi.org)?

Yes, we have some fancy code in the Open Tree webapps that does something like this. It detects a DOI using regular expressions, then forces it to a standard (URL) format. It also accepts another URL as alternate input, and will present it as-is.

This would make it easier for submitters to paste in DOI/URL values without error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant