Pubmed translator not working
I have been getting an error saving to Zotero 2.0b6.5 (FF 3.0.13) from Pubmed: see 484626930.
[JavaScript Error: "TypeError: text.match(/PMC\d+/) is null" {file: "file:///C:/Documents%20and%20Settings/David_/Application%20Data/Mozilla/Firefox/Profiles/uawroo9x.default/zotero/translators/PubMed%20Central.js" line: 0}]
I wonder if this is related to the line:
newItem.extra = text.match(/PMC\d+/)[0];
and should this change to:
newItem.extra = text.match(/PMCID:\d+/)[0];
??
Also, I have been getting an error from Google patents -- see http://forums.zotero.org/discussion/7489/google-patents-could-not-save-item-error/
Cheers, David
[JavaScript Error: "TypeError: text.match(/PMC\d+/) is null" {file: "file:///C:/Documents%20and%20Settings/David_/Application%20Data/Mozilla/Firefox/Profiles/uawroo9x.default/zotero/translators/PubMed%20Central.js" line: 0}]
I wonder if this is related to the line:
newItem.extra = text.match(/PMC\d+/)[0];
and should this change to:
newItem.extra = text.match(/PMCID:\d+/)[0];
??
Also, I have been getting an error from Google patents -- see http://forums.zotero.org/discussion/7489/google-patents-could-not-save-item-error/
Cheers, David
Example URL:
http://www.pubmedcentral.nih.gov/articlerender.fcgi?artid=367614&tool=pmcentrez
Hope this helps.
Edit: Sorry, I of course mean the Zotero translator for the search results pages is treating the identifiers incorrectly, the pages themselves are fine as far as I know.
Plus a PMID can always be linked to with the simple syntax:
www.ncbi.nlm.nih.gov/pubmed/PMID
but no such luck with PMCID, for which the best I can figure out is:www.pubmedcentral.nih.gov/articlerender.fcgi?artid=PMCID&tool=pmcentrez
If an article has a PMCID, it is open access & you know where to find it. Not every reference with a PMID is open access & being in PubMed does not help you locate an article. So: PMCIDs are useful. Hopefully LibX, etc. will link them.
You can use a slightly shorter link
http://pubmedcentral.nih.gov/articlerender.fcgi?artid=PMCID
& you can create a keyword search in Firefox that types the bulk of the URI for you.That said, I agree that getting rid of that articlerender.fcgi in the uri would be nice..
I use keyword searches all the time for PM, DOI, etc, and I agree it's a reasonable thing to do for PMC as well. Incidentally, PubMed does automatically link to PMCID papers, so in a pinch the PubMed ID gets you to the PMCID page.
But I don't agree that PMCIDs are actually useful unless I'm missing something. Other than the PMC prefix, there's nothing implicit in the number itself that tells you it's a PMCID, it's just a 7 digit string. So why not have an article's PMCID numeric string be identical to the PMID? I think it's reasonable to assume that PMC papers are a fully contained subset of PubMed papers, so every PMC paper ought to map to a PMID, though obviously not vice versa. So a single unique identifier could be searched at either the PM or PMC sites without the profoundly silly PMID<=>PMCID translator.
At the very least, PMC should recognize PMID as a valid search term, which AFAIK it does not.
That said, it's a shame that PMC full text isn't just another way of looking at a PubMed record.
An upcoming release of PMC (I don't know when exactly) will support clean URLs for PMC articles, like in PubMed. There will be auxiliary URL forms in PMC for addressing PMC articles by their PubMed IDs, journal-volume-issue numbers, and DOIs.