SIRS Knowledge Source [new translator]

New translator for SIRS Knowledge Source, a ProQuest K-12 database
(Note: this only covers Knowledge Source, not SIRS Discoverer or SIRS Decades)
It's a general rule and a best-effort sort of thing, so we'll leave it up
to you to decide what goes in the url field. You don't need to do very
stringent checking.
On Dec 12, 2014 6:38 PM, "Caistarrin Mystical" <notifications@github.com>
wrote:

> In SIRS Knowledge Source.js
> <https://github.com/zotero/translators/pull/824#discussion-diff-21783130>:
>
> > +	var headerLines = ZU.xpath(root, './cmsheader/h5/text()');
> > +	
> > +	if (headerLines.length == 0) {
> > +		headerLines = ZU.xpath(root, './h5/text()');
> > +	}
> > +	
> > +	headerLines = headerLines.map(function(node) {
> > +		return ZU.trim(node.textContent);
> > +	});
> > +	
> > +	item.title = ZU.xpathText(root, './/h1[1]');
> > +	if (!item.title) {
> > +		item.title = ZU.xpathText(root, './/strong[not(ancestor::table)]');
> > +	}
> > +	
> > +	item.url = doc.location.href;
>
> I did more digging, and it looks like SIRS Knowledge Source only has
> either full-text pages or links to external pages (assumed to have
> full-text, but may or may not have changed). The site has a "Topic Browse"
> page with subsites, categories, and subtopics, and everything is divided
> into either full-text articles or external links. The external resources
> are pretty much blank pages with a redirect message and link, and the user
> is automatically forwarded via JavaScript. If a user did land on one of
> these pages, the translator just won't find anything.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/zotero/translators/pull/824/files#r21783130>.
>