Merge branch '3.0'
This commit is contained in:
commit
fef0970dce
2 changed files with 10 additions and 0 deletions
|
@ -677,6 +677,11 @@ Zotero.Translate.Sandbox = {
|
||||||
* @borrows Zotero.Translate.Sandbox.Web._itemDone as this._itemDone
|
* @borrows Zotero.Translate.Sandbox.Web._itemDone as this._itemDone
|
||||||
*/
|
*/
|
||||||
"_itemDone":function(translate, item) {
|
"_itemDone":function(translate, item) {
|
||||||
|
// Always set library catalog, even if we have a parent translator
|
||||||
|
if(item.libraryCatalog === undefined) {
|
||||||
|
item.libraryCatalog = translate.translator[0].label;
|
||||||
|
}
|
||||||
|
|
||||||
Zotero.Translate.Sandbox.Web._itemDone(translate, item);
|
Zotero.Translate.Sandbox.Web._itemDone(translate, item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -975,6 +975,11 @@ Zotero.Utilities = {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if(!rootDoc.evaluate && typeof installXPathIfNecessary !== undefined) {
|
||||||
|
// For IE: element.ownerDocument will not have an evaluate property,
|
||||||
|
// since this is provided by JavaScript-XPath
|
||||||
|
installXPathIfNecessary('defaultView' in rootDoc ? rootDoc.defaultView : rootDoc.parentWindow);
|
||||||
|
}
|
||||||
var xpathObject = rootDoc.evaluate(xpath, element, nsResolver, 5, // 5 = ORDERED_NODE_ITERATOR_TYPE
|
var xpathObject = rootDoc.evaluate(xpath, element, nsResolver, 5, // 5 = ORDERED_NODE_ITERATOR_TYPE
|
||||||
null);
|
null);
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|
Loading…
Reference in a new issue