SAGE Knowledge translator (new)

Sample URL:
http://knowledge.sagepub.com/view/10-winning-strategies-for-leaders-in-the-classroom/SAGE.xml?rskey=yrcpOl&row=1
what @aurimasv says is right. suffix should be entered with a comma after
the first name. We should probably fix that in the cleanAuthor function.

On Thu, Dec 4, 2014 at 3:34 PM, Philipp Zumstein <notifications@github.com>
wrote:

> In SAGE Knowledge.js:
>
> > +			case "iconMajorWork":
> > +				return "book";
> > +		}
> > +	}
> > +	return false;
> > +}
> > +
> > +function getItem(doc) {
> > +	var url = doc.getElementById("_citeLink").href;
> > +	ZU.doGet(url, function(text) {
> > +		var re = /<textarea name="records".*?>([\s\S]*?)<\/textarea>/;
> > +		var match = re.exec(text)[1]
> > +					.replace(/NV\s+-\s+1\n/, "")
> > +					.replace(/AU\s+-\s+.+?(,? Ph\.?D\.?)|(,? Jr\.?)\n/g, function(match, p1, p2) {
> > +						return match.replace(p1, "").replace(p2, "");
> > +					});
>
> The names in CSL have different parts (from CSL specification
> <http://citationstyles.org/downloads/specification.html#name>):
>
> The remaining attributes, discussed below, only affect personal names.
> Personal names require a "family" name-part, and may also contain "given",
> "suffix", "non-dropping-particle" and "dropping-particle" name-parts.
>
> I don't know how the mapping works exactly here.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zotero/translators/pull/810/files#r21337907>.
>



-- 
Sebastian Karcher, PhD
Department of Political Science
Northwestern University