imo this is way too broad. At the very least, define a function to retrieve links for multiples and check if it returns anything here. Then use the same function in doWeb.

Something like
```
function getMultiples(doc) {
  var table = doc.getElementById('searchResult');
  return ZU.xpath(table, './tbody/tr/a[@class="viewoption" and (normalize-space(text()) = "Full Text" or normalize-space(text()) = "Abstract")][1]/@onclick';
}