Opened 7 years ago

Closed 5 years ago

#1509 closed enhancement (wontfix)

Grab Abstracts and Better Handle Author Names for Berkeley Electronic Press Journals

Reported by: tjowens Owned by: mcburton
Priority: minor Milestone:
Component: translators Version: 1.0
Keywords: Cc:

Description

  1. Author middle initial is being scraped as author first name leaving the last and first names in the last name field.
  1. Zotero is not grabbing Abstracts.

Example record: http://www.bepress.com/ijb/vol5/iss1/18/

See:http://forums.zotero.org/discussion/7480/

Change History (2)

comment:1 Changed 7 years ago by rmzelle

For 1, use the following lines to extract the author names:

for each (var author in authors) {
  item.creators.push({lastName: author.split(", ")[0], firstName: author.split(", ")[1], creatorType: "author"});
}

For 2, use the following lines to extract the abstract:

//abstract
var abstract = newDoc.evaluate('//div[@id="article"]/div[@id="alpha"]', newDoc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent;
abstract = abstract.replace(/[\s]*Abstract[\s]*/,"");
item.abstract = abstract.replace(/[\s]*Recommended Citation[^]*/,"");

comment:2 Changed 5 years ago by adamsmith

  • Resolution set to wontfix
  • Status changed from new to closed

this was fixed intermittently, now bepress is all published by degruyter.

Note: See TracTickets for help on using tickets.