From 6877d33e612634a659af815b8bd0f4eaa992095f Mon Sep 17 00:00:00 2001 From: David Norton Date: Wed, 9 Aug 2006 15:44:11 +0000 Subject: [PATCH] Closes #172, add preference for EndNote MIME type stealing feature Addresses #169, add OpenURL interface hooks Addresses #170, Put "Link" option before "Import" in drop-down menu Fixes some advanced search flaws (there are still bugs) --- .../scholar/bindings/scholarsearch.xml | 33 ++++++++++++------ .../chromeFiles/content/scholar/itemPane.js | 6 ++++ .../chromeFiles/content/scholar/itemPane.xul | 13 ++++--- chrome/chromeFiles/content/scholar/overlay.js | 5 --- .../chromeFiles/content/scholar/overlay.xul | 15 ++------ .../content/scholar/preferences.js | 24 +++++++++++-- .../content/scholar/preferences.xul | 33 ++++++++++++++---- .../content/scholar/searchDialog.js | 2 +- .../content/scholar/searchDialog.xul | 2 -- .../locale/en-US/scholar/preferences.dtd | 8 +++++ .../locale/en-US/scholar/scholar.dtd | 1 + .../skin/default/scholar/overlay.css | 5 +++ .../skin/default/scholar/toolbar-openurl.png | Bin 0 -> 410 bytes .../default/scholar/treesource-search.png | Bin 659 -> 679 bytes 14 files changed, 101 insertions(+), 46 deletions(-) create mode 100644 chrome/chromeFiles/skin/default/scholar/toolbar-openurl.png diff --git a/chrome/chromeFiles/content/scholar/bindings/scholarsearch.xml b/chrome/chromeFiles/content/scholar/bindings/scholarsearch.xml index 5c2b03495..28cfb7055 100644 --- a/chrome/chromeFiles/content/scholar/bindings/scholarsearch.xml +++ b/chrome/chromeFiles/content/scholar/bindings/scholarsearch.xml @@ -35,24 +35,21 @@ var conditions = this.search.getSearchConditions(); if(conditions.length) - { for(var i = 0, len = conditions.length; i + @@ -81,6 +78,20 @@ ]]> + + + + + @@ -104,7 +115,7 @@ - + @@ -214,7 +225,7 @@ - + @@ -222,7 +233,7 @@ - + diff --git a/chrome/chromeFiles/content/scholar/itemPane.js b/chrome/chromeFiles/content/scholar/itemPane.js index fae57a867..a3963478d 100644 --- a/chrome/chromeFiles/content/scholar/itemPane.js +++ b/chrome/chromeFiles/content/scholar/itemPane.js @@ -37,6 +37,7 @@ ScholarItemPane = new function() this.viewItem = viewItem; this.loadPane = loadPane; this.changeTypeTo = changeTypeTo; + this.onOpenURLClick = onOpenURLClick; this.addCreatorRow = addCreatorRow; this.removeCreator = removeCreator; this.showEditor = showEditor; @@ -263,6 +264,11 @@ ScholarItemPane = new function() } } + function onOpenURLClick() + { + window.open(Scholar.OpenURL.resolve(_itemBeingEdited)); + } + function addDynamicRow(label, value, beforeElement) { var row = document.createElement("row"); diff --git a/chrome/chromeFiles/content/scholar/itemPane.xul b/chrome/chromeFiles/content/scholar/itemPane.xul index 74705f5bd..eb566da18 100644 --- a/chrome/chromeFiles/content/scholar/itemPane.xul +++ b/chrome/chromeFiles/content/scholar/itemPane.xul @@ -29,9 +29,12 @@ - - - + + + + + + @@ -58,10 +61,10 @@