{
"translatorID": "99f11c5d-4413-4f96-9fc7-72fbd40372ef",
"label": "EPA National Library Catalog",
"creator": "Sebastian Karcher",
"target": "^https?://cfpub\\.epa\\.gov/ols",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"inRepository": true,
"translatorType": 4,
"browserSupport": "gcv",
"lastUpdated": "2016-09-14 10:36:08"
}
/**
Copyright (c) 2014 Sebastian Karcher
This program is free software: you can redistribute it and/or
modify it under the terms of the GNU Affero General Public License
as published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public
License along with this program. If not, see
.
*/
function detectWeb(doc, url){
if (url.indexOf("records_found.cfm")!=-1){
return "multiple"
}
else {
return findItemType(doc);
}
}
function doWeb(doc, url){
if (detectWeb(doc, url)=="multiple"){
items = {};
articles = [];
var titles = ZU.xpath(doc, '//td/a[@id="results"]');
for (var i=0; i0){
var role = "editor";
if (hasAuthor) role = "author"; //if an item has multiple authors, they're listed as other authors
for (var i=0; i