NESCent / FossilCalibrations

Fossil calibrations database
http://fossilcalibrations.org
BSD 2-Clause "Simplified" License
14 stars 4 forks source link

Smarter logic to handle DOI or URL #20

Open jimallman opened 10 years ago

jimallman commented 10 years ago

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.