mirror of
https://github.com/zotero/zotero.git
synced 2026-10-06 02:50:03 +00:00
- closes #69, notification system for broken scrapers
- don't put "Page" before page in WaPo scraper
This commit is contained in:
parent
d4576d3d55
commit
67f6ae3ed2
2 changed files with 4 additions and 4 deletions
|
|
@ -931,8 +931,8 @@ Scholar.Translate.prototype._translationComplete = function(returnValue, error)
|
|||
* runs an HTTP request to report a translation error
|
||||
*/
|
||||
Scholar.Translate.prototype._reportTranslationFailure = function(errorData) {
|
||||
if(Scholar.Prefs.get("reportTranslationFailure")) {
|
||||
var postBody = "id="+escape(this.translator[0].translatorID)+
|
||||
if(this.translator[0].inRepository && Scholar.Prefs.get("reportTranslationFailure")) {
|
||||
var postBody = "ids[]="+escape(this.translator[0].translatorID)+
|
||||
"&lastUpdated="+escape(this.translator[0].lastUpdated)+
|
||||
"&errorData="+escape(errorData);
|
||||
Scholar.Utilities.HTTP.doPost("http://www.zotero.org/repo/report", postBody);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
-- 87
|
||||
-- 88
|
||||
|
||||
-- Set the following timestamp to the most recent scraper update date
|
||||
REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-08-31 22:44:00'));
|
||||
|
|
@ -3805,7 +3805,7 @@ REPLACE INTO "translators" VALUES ('d1bf1c29-4432-4ada-8893-2e29fc88fd9e', '2006
|
|||
XPathResult.ANY_TYPE, null);
|
||||
var font;
|
||||
while(font = fonts.iterateNext()) {
|
||||
var pageRe = /([^;]+);([\xA0 ]+Pages?[\xA0 ]+([A-Z0-9\-]+))?/
|
||||
var pageRe = /([^;]+);(?:[\xA0 ]+Pages?[\xA0 ]+([A-Z0-9\-]+))?/
|
||||
// grab pages and date
|
||||
Scholar.Utilities.debug(Scholar.Utilities.cleanString(font.nodeValue));
|
||||
var m = pageRe.exec(font.nodeValue);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue