Skip to content

Commit 3d38e4b

Browse files
committed
Fix translators with incorrect Zotero.done() calls, in preparation for change that will require it
Not being pushed to 1.0 clients
1 parent 0309b91 commit 3d38e4b

File tree

74 files changed

+152
-152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+152
-152
lines changed

Diff for: AMS Journals.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-05-05 07:45:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -74,6 +74,6 @@ function doWeb(doc, url) {
7474
];
7575
item.abstract = Zotero.Utilities.trimInternal(doc.evaluate('//td[@class="bottomCell"]/p[4]', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent.substr(10));
7676
item.complete();
77-
}, function() {Zotero.done;});
77+
}, function() {Zotero.done();});
7878
Zotero.wait();
7979
}

Diff for: APA PsycNET.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-06-23 16:45:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -77,6 +77,6 @@ function doWeb(doc, url) {
7777
item.abstractNote = associateXPath('//div[@id="rdRecord"]/div[@class="rdRecordSection"][2]', doc, nsResolver);
7878
item.complete();
7979
}
80-
}, function() {Zotero.done;});
80+
}, function() {Zotero.done();});
8181
Zotero.wait();
8282
}

Diff for: AcademicJournals.net.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-05-05 07:45:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -87,5 +87,5 @@ function doWeb(doc, url) {
8787
}
8888
item.tags = tags;
8989
item.complete();
90-
}, function() {Zotero.done;});
90+
}, function() {Zotero.done();});
9191
}

Diff for: Agencia del ISBN.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-06-08 23:00:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -60,6 +60,6 @@ function doWeb(doc, url) {
6060
if (data['Publicacin']) item.publisher = Zotero.Utilities.trimInternal(data['Publicacin']);
6161
if (data['FechaEdicin']) item.date = Zotero.Utilities.trimInternal(data['FechaEdicin']);
6262
item.complete();
63-
}, function() {Zotero.done;});
63+
}, function() {Zotero.done();});
6464
Zotero.wait();
6565
}

Diff for: Alexander Street Press.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-03-28 16:30:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -193,5 +193,5 @@ function doWeb(doc, url) {
193193
articles = [url];
194194
}
195195

196-
Zotero.Utilities.processDocuments(articles, scrape, function() {Zotero.done;});
196+
Zotero.Utilities.processDocuments(articles, scrape, function() {Zotero.done();});
197197
}

Diff for: Amazon.com.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-08-22 20:30:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -203,6 +203,6 @@ function doWeb(doc, url) {
203203
newItem.title = title;
204204
newItem.complete();
205205
}
206-
}, function() {Zotero.done;}, null);
206+
}, function() {Zotero.done();}, null);
207207
Zotero.wait();
208208
}

Diff for: Archive Ouverte en Sciences de l'Information et de la Communication (AOSIC).js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-04-18 08:55:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -70,6 +70,6 @@ function doWeb(doc, url) {
7070
{url:pdfurl, title:"AOSIC Full Text PDF", mimeType:"application/pdf"}
7171
];
7272
item.complete();
73-
}, function() {Zotero.done;});
73+
}, function() {Zotero.done();});
7474
Zotero.wait();
7575
}

Diff for: Australian Dictionary of Biography.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-05-30 08:00:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -74,5 +74,5 @@ function doWeb(doc, url) {
7474
];
7575
item.complete();
7676

77-
}, function() {Zotero.done;});
77+
}, function() {Zotero.done();});
7878
}

Diff for: BIUM.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-06-12 19:30:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -92,6 +92,6 @@ function doWeb(doc, url) {
9292
}
9393
item.creators = newauthors;
9494
item.complete();
95-
}, function() {Zotero.done;});
95+
}, function() {Zotero.done();});
9696
Zotero.wait();
9797
}

Diff for: Berkeley Electronic Press.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-04-01 04:50:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -79,6 +79,6 @@ function doWeb(doc, url) {
7979
{url:metatags['pdf_url'], title:"Berkeley Electronic Press Full Text PDF", mimeType:"application/pdf"}
8080
];
8181
item.complete();
82-
}, function() {Zotero.done;});
82+
}, function() {Zotero.done();});
8383
Zotero.wait();
8484
}

Diff for: BioOne.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-08-04 07:10:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -61,6 +61,6 @@ function doWeb(doc, url) {
6161
});
6262
translator.translate();
6363
});
64-
}, function() {Zotero.done;});
64+
}, function() {Zotero.done();});
6565
Zotero.wait();
6666
}

Diff for: Blackwell Compass.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-01-09 20:00:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -63,6 +63,6 @@ function doWeb(doc, url) {
6363

6464
translator.translate();
6565
});
66-
}, function() {Zotero.done;});
66+
}, function() {Zotero.done();});
6767
Zotero.wait();
6868
}

Diff for: Bryn Mawr Classical Review.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-05-09 23:15:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -80,6 +80,6 @@ function doWeb(doc, url) {
8080
item.date = Zotero.Utilities.trimInternal(doc.evaluate('/html/body/h3', doc, nsResolver, XPathResult.ANY_TYPE, null).iterateNext().textContent.replace("Bryn Mawr Classical Review ", "").replace(/\./g, "/"))
8181
}
8282
item.complete();
83-
}, function() {Zotero.done;});
83+
}, function() {Zotero.done();});
8484
Zotero.wait();
8585
}

Diff for: Business Standard.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-05-08 20:30:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -62,6 +62,6 @@ function doWeb(doc, url) {
6262
newItem.complete();
6363
});
6464
}
65-
}, function() {Zotero.done;});
65+
}, function() {Zotero.done();});
6666
Zotero.wait();
6767
}

Diff for: BusinessWeek.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-04-11 08:30:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -53,6 +53,6 @@ function doWeb(doc, url) {
5353
item.url = newDoc.location.href;
5454
item.date = metaTags['pub_date'].replace(/(\d{4})(\d{2})(\d{2})/, "$2/$3/$1");
5555
item.complete();
56-
}, function() {Zotero.done;});
56+
}, function() {Zotero.done();});
5757
Zotero.wait();
5858
}

Diff for: Cambridge Journals Online.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-07-08 15:35:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -85,6 +85,6 @@ function doWeb(doc, url){
8585
});
8686
translator.translate();
8787
});
88-
}, function() {Zotero.done;});
88+
}, function() {Zotero.done();});
8989
Zotero.wait();
9090
}

Diff for: CiNii.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-05-15 00:30:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -62,6 +62,6 @@ function doWeb(doc, url) {
6262
});
6363
trans.translate();
6464
});
65-
}, function() {Zotero.done;});
65+
}, function() {Zotero.done();});
6666
Zotero.wait();
6767
}

Diff for: Citebase.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-09-11 04:32:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -63,7 +63,7 @@ function doWeb(doc, url) {
6363
});
6464
translator.translate();
6565
});
66-
}, function() {Zotero.done;});
66+
}, function() {Zotero.done();});
6767
Zotero.wait();
6868
}
6969

Diff for: Code4Lib Journal.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-01-25 20:00:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -63,6 +63,6 @@ function doWeb(doc, url) {
6363

6464
newItem.attachments.push({url:newDoc.location.href, title:"Code4Lib Journal Snapshot", mimeType:"text/html"});
6565
newItem.complete();
66-
}, function() {Zotero.done;});
66+
}, function() {Zotero.done();});
6767
Zotero.wait();
6868
}

Diff for: Columbia University Press.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-05-15 18:30:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -64,6 +64,6 @@ function doWeb(doc, url) {
6464
item.ISBN = Zotero.Utilities.trimInternal(doc.evaluate('//span[@id="_isbn"]', doc, ns, XPathResult.ANY_TYPE, null).iterateNext().textContent);
6565
item.publisher = Zotero.Utilities.trimInternal(doc.evaluate('//span[@id="_publisher"]', doc, ns, XPathResult.ANY_TYPE, null).iterateNext().textContent);
6666
item.complete();
67-
}, function() {Zotero.done;});
67+
}, function() {Zotero.done();});
6868
Zotero.wait();
6969
}

Diff for: Copernicus.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"maxVersion":"",
99
"priority":100,
1010
"inRepository":true,
11-
"lastUpdated":"2008-04-24 14:30:00"
11+
"lastUpdated":"2009-01-08 08:19:07"
1212
}
1313

1414
function detectWeb(doc, url) {
@@ -67,7 +67,7 @@ function doWeb(doc, url) {
6767

6868
Zotero.Utilities.processDocuments(arts, function(doc) {
6969
scrape(doc);
70-
}, function() {Zotero.done;});
70+
}, function() {Zotero.done();});
7171
});
7272
} else {
7373
var titles = doc.evaluate('//li[a[contains(text(), "Abstract")]]/span[@class="articletitle"]', doc, null, XPathResult.ANY_TYPE, null);
@@ -81,12 +81,12 @@ function doWeb(doc, url) {
8181
for (var i in items) {
8282
arts.push(i);
8383
}
84-
Zotero.Utilities.processDocuments(arts, function(doc) { scrape(doc);}, function() {Zotero.done;});
84+
Zotero.Utilities.processDocuments(arts, function(doc) { scrape(doc);}, function() {Zotero.done();});
8585
}
8686
} else {
8787
Zotero.Utilities.processDocuments([url], function(doc) {
8888
scrape(doc);
89-
}, function() {Zotero.done;});
89+
}, function() {Zotero.done();});
9090
}
9191
Zotero.wait();
9292
}

0 commit comments

Comments
 (0)