diff --git a/chrome/content/zotero/bindings/itembox.xml b/chrome/content/zotero/bindings/itembox.xml
index 2bf8d055e6..20178b7f32 100644
--- a/chrome/content/zotero/bindings/itembox.xml
+++ b/chrome/content/zotero/bindings/itembox.xml
@@ -282,9 +282,8 @@
}
viewButton.setAttribute('disabled', !validURI);
- // Enable/disable "Locate =>" (OpenURL) button
- switch (this.item.itemTypeID)
- {
+ // Enable/disable "Locate =>" button
+ switch (this.item.itemTypeID) {
// DEBUG: handle descendents of these types as well?
case Zotero.ItemTypes.getID('book'):
case Zotero.ItemTypes.getID('bookSection'):
@@ -296,7 +295,20 @@
default:
var openURL = false;
}
- document.getElementById('openurl-button').setAttribute('disabled', !openURL);
+
+ var locateButton = document.getElementById('locate-button');
+
+ // TODO: move Locate service logic to separate interface
+ var wayback = this._itemHasURL();
+ if (wayback) {
+ locateButton.setAttribute('type', 'menu');
+ locateButton.setAttribute('disabled', false);
+ document.getElementById('locate-service-openurl').disabled = !openURL;
+ }
+ else {
+ locateButton.removeAttribute('type');
+ locateButton.disabled = !openURL;
+ }
this._id('go-buttons').hidden = false;
}
@@ -515,6 +527,16 @@
+
+
+
+
+
+
+
@@ -943,13 +965,34 @@
-
+
@@ -2073,10 +2116,15 @@
-
+