Encoded URLs and "dx" in parsing DOIs
Hi, I found two small issues in DOI validation in the "add item by identifier" section.
First one is that some DOI urls start with "dx.doi.org" instead of just "doi.org", zotero doesn't accept them even though they're valid DOI urls.
The second issue is that zotero doesn't accept urls that have encoded characters in them. For example, if I copy the DOI url from "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7366851/", what would be pasted is "https://dx.doi.org/10.15585/mmwr.mm6928a2" which has "%2F" instead of "/". That's the only encoded character that I've seen so far in doi urls, so a simple search and replace might be enough.
Unfortunately, I don't know anything about JS to make these little changes, so I though I should tell the developers about them, so they can consider it in the next release.
Thank you!
First one is that some DOI urls start with "dx.doi.org" instead of just "doi.org", zotero doesn't accept them even though they're valid DOI urls.
The second issue is that zotero doesn't accept urls that have encoded characters in them. For example, if I copy the DOI url from "https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7366851/", what would be pasted is "https://dx.doi.org/10.15585/mmwr.mm6928a2" which has "%2F" instead of "/". That's the only encoded character that I've seen so far in doi urls, so a simple search and replace might be enough.
Unfortunately, I don't know anything about JS to make these little changes, so I though I should tell the developers about them, so they can consider it in the next release.
Thank you!
The dx.doi prefix shouldn't be a problem, otoh.
I didn't know URLs were not officially supported. I'll use browser addon.
Thanks