PDC FullText with DOI translator

PDC hosts quite a large number of journals in my field (http://www.pdcnet.org/pdc/bvdb.nsf/journalindex?openform). It provides DOIs, so metadata import works fine via the DOI translator and CrossRef search translator, but that approach doesn't do anything to grab FullText. I am loathe to write a completely new translator for PDC, not only because of the time required but because it will probably be less robust/well-maintained than the existing DOI method, but I'm a little lost on how to create a skeleton that would call out to DOI for metadata and only scrape FullText URLs. Thoughts on how to do this elegantly? I'm not a great javascript programmer, but I've gotten a few things working.
  • You can see a basic idea for this here (arXiv translator looks up some additional metadata via DOI). Your translator would probably be much simpler than that. I can provide more details later if you need them.
  • So, if I understand correctly, you're suggesting the following approach:
    1. Borrow the DOI-scraping code from DOI
    2. Scrape the FullText URL myself
    3. Call out to CrossRef for the metadata
    4. Assign all the properties from CrossRef to the item as arXiv does

    Is that right? Is that the most lightweight approach?
  • Essentially, yes. Find a DOI on page, find a link to PDF on page, ask CrossRef translator to fetch metadata, attach link to the item that it returns and complete the item (no need to copy it anywhere).
  • I think my only remaining issue is that Zotero wants to interpret the attachment url as a relative url, e.g. https://gist.github.com/anonymous/d4ce7a24bfa1ae77c889 when run in scaffold despite the docs which suggest otherwise (https://www.zotero.org/support/dev/translators/coding#web_translators). Any idea why/how this could be and/or what I'm doing wrong? Thanks.
  • You're missing the http/https part

This is an old discussion that has not been active in a long time. Before commenting here, you should strongly consider starting a new discussion instead. If you think the content of this discussion is still relevant, you can link to it from your new discussion.

Sign In or Register to comment.