You would receive pain text, so you'd have to use some regex magic
On Mar 17, 2014 2:18 PM, "zuphilip" <notifications@github.com> wrote:

> In LexisNexis.js:
>
> > -		if (prefix == 'x') return namespace; else return null;
> > -	} : null;
> > -
> > -	// define results navigation frame doc for export buttons and hidden fields
> > -	//var rfDoc = doc.importNode(doc.defaultView.window.top.frames[1].document, true);
> > -	var rfDoc = doc;
> > -	var xpath = '//img[@title="Export Bibliographic References"]';	
> > +function scrape(doc, url) {
> > +if (url.indexOf("target=results_listview_resultsNav") == -1 ) {
> > +	var frames = doc.getElementsByTagName("frame");
> > +	var gotoUrl;
> > +	for (var i=0; i<frames.length; i++) {
> > +		if (frames[i].src.indexOf("target=results_listview_resultsNav") != -1) gotoUrl=frames[i].src;
> > +	}
> > +	Z.debug(gotoUrl);
> > +	ZU.processDocuments(gotoUrl, scrape);
>
> We could also add a new function and call it from doWeb in the multiple
> item cases, i.e. ZU.processDocuments(articles, selectFrame); where
>
> function selectFrame(doc, url) {
>     if (url.indexOf("target=results_listview_resultsNav") == -1 ) {
>         var frames = doc.getElementsByTagName("frame");
>         var gotoUrl;
>         for (var i=0; i<frames.length; i++) {
>             if (frames[i].src.indexOf("target=results_listview_resultsNav") != -1) gotoUrl=frames[i].src;
>         }
>         ZU.processDocuments(gotoUrl, scrape);
>     } else {
>         scrape(doc,url);
>     }
> }
>
> The scrape function would then just the else part. In this way no infinite
> loop should be possible. What do you think? I don't know how to substitute
> the processDocuments with doGet here: how do we receive a document object?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/zotero/translators/pull/698/files#r10673691>
> .
>