|
@@ -9,7 +9,7 @@ |
|
|
"inRepository": true,
|
|
|
"translatorType": 4,
|
|
|
"browserSupport": "gcsibv",
|
|
|
"lastUpdated": "2016-10-31 19:10:24"
|
|
|
"lastUpdated": "2017-11-11 20:05:29"
|
|
|
}
|
|
|
|
|
|
/*
|
|
@@ -79,7 +79,7 @@ function doWeb(doc, url){ |
|
|
if (!items) {
|
|
|
return true;
|
|
|
}
|
|
|
var articles = new Array();
|
|
|
var articles = [];
|
|
|
for (var i in items) {
|
|
|
articles.push(i.replace(/^\d+-/,''));
|
|
|
}
|
|
@@ -106,8 +106,8 @@ function scrape(ids){ |
|
|
if (item.place) item.place = item.place.replace(/[\[\]]/g, "");
|
|
|
if (item.tags.length) item.tags = item.tags.join("/").split("/");
|
|
|
if (item.url.substr(0,2)=="//") {
|
|
|
item.url = "https" + item.url;
|
|
|
};
|
|
|
item.url = "https:" + item.url;
|
|
|
}
|
|
|
item.attachments = [{url:item.url, title: "Hathi Trust Record", mimeType: "text/html"}];
|
|
|
item.complete();
|
|
|
});
|
|
@@ -142,7 +142,7 @@ var testCases = [ |
|
|
"numPages": "3 p.l., 192 p.",
|
|
|
"place": "Oxford",
|
|
|
"publisher": "The Clarendon press",
|
|
|
"url": "https//catalog.hathitrust.org/Record/001050654",
|
|
|
"url": "https://catalog.hathitrust.org/Record/001050654",
|
|
|
"attachments": [
|
|
|
{
|
|
|
"title": "Hathi Trust Record",
|
|
@@ -161,4 +161,4 @@ var testCases = [ |
|
|
"items": "multiple"
|
|
|
}
|
|
|
]
|
|
|
/** END TEST CASES **/
|
|
|
/** END TEST CASES **/
|
0 comments on commit
0f393b1