On May 17, 2013, at 12:32 AM, Fitchett, Deborah wrote:
> Kia ora koutou,
> Iím wanting to create a bookmarklet that will let people on a journal article webpage just click the bookmarklet and get a permalink to that article, including our proxy information so it can be accessed off-campus.
> Once Iíve got a DOI (or other permalink, but Iíll cross that bridge later), the rest is easy. The trouble is getting the DOI. The options seem to be:
> Can anyone think of anything else I should be looking at for inspiration?
4. Look for any strings that look like a DOI:
(as it sucks to code special things for each database, in case they change or you add a new one)
You can then fall back to #1 if necessary.
If depends on what you're going to do with the output -- I'd likely look through the <a href=''> values for http://dx.doi.org DOIs first, then just look at the text displaying on the page. I don't think you'd need jQuery for that.