From 511f7ec77d113030d6fefcb3dbc8d389ccbd1bc7 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Mon, 18 Dec 2006 08:01:04 +0000 Subject: [PATCH] - add DB load and save features to Scaffold - add ECL notice to XUL files that were missing it --- chrome/content/zotero/ingester/browser.js | 2 +- chrome/content/zotero/ingester/browser.xul | 21 ++ chrome/content/zotero/ingester/progress.xul | 22 ++- scrapers.sql | 207 +++++++++++++++----- 4 files changed, 198 insertions(+), 54 deletions(-) diff --git a/chrome/content/zotero/ingester/browser.js b/chrome/content/zotero/ingester/browser.js index 39643a3e6..846e787d4 100644 --- a/chrome/content/zotero/ingester/browser.js +++ b/chrome/content/zotero/ingester/browser.js @@ -173,7 +173,6 @@ Zotero_Ingester_Interface.contentLoad = function(event) { // if there's already a scrapable page in the browser window, and it's // still there, ensure it is actually part of the page, then return if(data.translators && data.translators.length && data.document.location) { - Zotero.debug("already scrapable?"); if(Zotero_Ingester_Interface.searchFrames(rootDoc, data.document)) { return; } else { @@ -327,6 +326,7 @@ Zotero_Ingester_Interface._getData = function(browser) { * Deletes the document object associated with a given browser window object */ Zotero_Ingester_Interface._deleteData = function(browser) { + if(!browser) return false; try { var key = browser.getAttribute("zotero-key"); if(Zotero_Ingester_Interface.browserData[key]) { diff --git a/chrome/content/zotero/ingester/browser.xul b/chrome/content/zotero/ingester/browser.xul index fe2313af5..d9a2bf502 100755 --- a/chrome/content/zotero/ingester/browser.xul +++ b/chrome/content/zotero/ingester/browser.xul @@ -1,4 +1,25 @@ +