diff --git a/Zotero.dot b/Zotero.dot new file mode 100755 index 0000000000..665544e9f8 Binary files /dev/null and b/Zotero.dot differ diff --git a/chrome/chromeFiles/content/scholar/bibliography.js b/chrome/chromeFiles/content/scholar/bibliography.js index 8418d1b649..7d692ad53a 100644 --- a/chrome/chromeFiles/content/scholar/bibliography.js +++ b/chrome/chromeFiles/content/scholar/bibliography.js @@ -43,6 +43,13 @@ var Scholar_File_Interface_Bibliography = new function() { if(Scholar.isMac && document.getElementById("copy-to-clipboard")) { document.getElementById("copy-to-clipboard").hidden = "true"; } + + // move to center of screen + window.sizeToContent(); + window.moveTo( + (self.screen.width-window.innerWidth)/2, + (self.screen.height-window.innerHeight)/2 + ); } function acceptSelection() { diff --git a/chrome/chromeFiles/content/scholar/ingester/browser.js b/chrome/chromeFiles/content/scholar/ingester/browser.js index ee8a26c807..f3d473577b 100644 --- a/chrome/chromeFiles/content/scholar/ingester/browser.js +++ b/chrome/chromeFiles/content/scholar/ingester/browser.js @@ -458,7 +458,7 @@ Scholar_Ingester_Interface.Progress = new function() { _progressWindow.sizeToContent(); _progressWindow.moveTo( window.screenX + window.outerWidth - _progressWindow.outerWidth - 30, - window.screenY + window.outerHeight - _progressWindow.outerHeight + window.screenY + window.outerHeight - _progressWindow.outerHeight - 10 ); } diff --git a/chrome/chromeFiles/content/scholar/selectItemsDialog.js b/chrome/chromeFiles/content/scholar/selectItemsDialog.js index 76e194e5f2..76c357185d 100644 --- a/chrome/chromeFiles/content/scholar/selectItemsDialog.js +++ b/chrome/chromeFiles/content/scholar/selectItemsDialog.js @@ -14,6 +14,13 @@ function doLoad() collectionsView = new Scholar.CollectionTreeView(); document.getElementById('collections-tree').view = collectionsView; + + // move to center of screen + window.sizeToContent() + window.moveTo( + (self.screen.width-window.innerWidth)/2, + (self.screen.height-window.innerHeight)/2 + ); } function doUnload() diff --git a/chrome/chromeFiles/content/scholar/xpcom/integration.js b/chrome/chromeFiles/content/scholar/xpcom/integration.js index 3f29da44e1..199760019f 100644 --- a/chrome/chromeFiles/content/scholar/xpcom/integration.js +++ b/chrome/chromeFiles/content/scholar/xpcom/integration.js @@ -337,7 +337,7 @@ Scholar.Integration.SOAP = new function() { // get items var io = {dataIn: null, dataOut: null}; window.openDialog('chrome://scholar/content/selectItemsDialog.xul','', - 'chrome,popup,modal,centerscreen',io); + 'chrome,popup,modal',io); if(io.dataOut) { // cancel was not pressed var field = (io.dataOut.join(","))+"_"+Scholar.randomString(); @@ -451,20 +451,21 @@ Scholar.Integration.SOAP = new function() { function setDocPrefs(vars) { var io = new Object(); - if(!vars || vars[0] == "!") { + if(!vars || !vars[0] || vars[0] == "!") { // no session ID; generate a new one var sessionID = Scholar.randomString(); var session = _generateSession(sessionID); } else { // session ID exists var sessionID = vars[0]; + Scholar.debug(vars.toSource()); var session = _sessions[sessionID]; var originalStyle = session.styleID; io.style = originalStyle; } window.openDialog('chrome://scholar/content/integrationDocPrefs.xul','', - 'chrome,popup,modal,centerscreen',io); + 'chrome,popup,modal',io); session.styleID = io.style; var style = Scholar.Cite.getStyle(io.style); diff --git a/scrapers.sql b/scrapers.sql index d29ca7b818..0512d709e7 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -1,4 +1,4 @@ --- 71 +-- 72 -- Set the following timestamp to the most recent scraper update date REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-08-31 22:44:00'));