APS articles missing page number in add by DOI
When I use "Add Item(s) by Identifier" in both Standalone and Firefox to add a paper from APS Physics journals (like PRL etc.) the page number field is not populated. However, when I add the article using the Zotero toolbar button in Firefox while on the article's web page, the page number is populated correctly in Zotero.
This problem, interestingly, also affects EndNote, and is specific to APS Physics journals. I suspect the source of the problem lies in the fact that APS Physics papers don't have page numbers, but article numbers instead. It's possible that the article number is transmitted in a strange field that Zotero ignores.
Can anyone with knowledge of the Zotero code confirm this hypothesis? Fixing the bug might be as simple as finding out in what field the article number is hidden and making sure it ends up in the page number. Or it could require talking to APS or whatever organization's server Zotero contacts when searching by DOI.
This problem, interestingly, also affects EndNote, and is specific to APS Physics journals. I suspect the source of the problem lies in the fact that APS Physics papers don't have page numbers, but article numbers instead. It's possible that the article number is transmitted in a strange field that Zotero ignores.
Can anyone with knowledge of the Zotero code confirm this hypothesis? Fixing the bug might be as simple as finding out in what field the article number is hidden and making sure it ends up in the page number. Or it could require talking to APS or whatever organization's server Zotero contacts when searching by DOI.
It's going to be one of the two issues you suggest --different field or not there at all. If the former, we can fix it, if the latter, we'd ask you to talk to APS about this (we can tell you what precisely to say)
(full UnixRef XML at http://www.crossref.org/openurl/?pid=zter:zter321&url_ver=Z39.88-2004&&rft_id=info:doi/10.1103/PhysRevLett.102.230402&noredirect=true&format=unixref )
line 163 added the reportnumber:
+ item.reportNumber = ZU.xpathText(refXML, 'c:publisher_item/c:item_number', ns);
item.publicationTitle = ZU.xpathText(metadataXML, 'c:full_title[1]', ns);
in the section on pages, line 322, add article-number as pages if these are empty:
if (pages.length) {
item.pages = ZU.xpathText(pages, 'c:first_page[1]', ns);
var lastPage = ZU.xpathText(pages, 'c:last_page[1]', ns);
if (lastPage) item.pages += "-"+lastPage;
}
+ else{
+ item.pages=item.reportNumber;
+ }