Automatically retrieve metadata when saving PDFs
Applies to dragging to the collections pane or the items pane, adding via New Item menu, or saving via the connector server If the renaming pref is enabled, the PDF is renamed after recognition. Can be disabled in the preferences Closes #917
This commit is contained in:
parent
081793f72f
commit
97661539dc
12 changed files with 192 additions and 32 deletions
|
@ -19,6 +19,16 @@ function waitForDOMEvent(target, event, capture) {
|
|||
return deferred.promise;
|
||||
}
|
||||
|
||||
async function waitForRecognizer() {
|
||||
var win = await waitForWindow('chrome://zotero/content/recognizePDFDialog.xul')
|
||||
// Wait for status to show as complete
|
||||
var completeStr = Zotero.getString("recognizePDF.complete.label");
|
||||
while (win.document.getElementById("label").value != completeStr) {
|
||||
await Zotero.Promise.delay(20);
|
||||
}
|
||||
return win;
|
||||
}
|
||||
|
||||
/**
|
||||
* Open a chrome window and return a promise for the window
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue