Permalink
Browse files

Hathi Trust missing colon (#1445)

  • Loading branch information...
owcz authored and zuphilip committed Nov 11, 2017
1 parent c3136a4 commit 0f393b1ba1a62792aae502e2a351bc0ef8667939
Showing with 6 additions and 6 deletions.
  1. +6 −6 Hathi Trust.js
View
@@ -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

Please sign in to comment.