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
Actually, thinking some more about this, we do want to keep Jr., since
that's part of the name. @adam3smith can correct me if I'm wrong.
On Dec 2, 2014 8:00 PM, "Caistarrin Mystical" <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, "");
> > +					});
>
> I adjusted your suggestion a bit and it now does get both PhD and Jr if
> they both occur.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zotero/translators/pull/810/files#r21208363>.
>