Add support for macWord transaction initialization via HTTP
This commit is contained in:
parent
c124ca9738
commit
e3e607a6d4
2 changed files with 36 additions and 0 deletions
35
chrome/content/zotero/xpcom/server_integration.js
Normal file
35
chrome/content/zotero/xpcom/server_integration.js
Normal file
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
***** BEGIN LICENSE BLOCK *****
|
||||
|
||||
Copyright © 2023 Corporation for Digital Scholarship
|
||||
Vienna, Virginia, USA
|
||||
https://digitalscholar.org
|
||||
|
||||
This file is part of Zotero.
|
||||
|
||||
Zotero is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
Zotero is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with Zotero. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
***** END LICENSE BLOCK *****
|
||||
*/
|
||||
|
||||
Zotero.Server.Endpoints['/integration/macWordCommand'] = function () {};
|
||||
Zotero.Server.Endpoints['/integration/macWordCommand'].prototype = {
|
||||
supportedMethods: ["GET"],
|
||||
supportedDataTypes: ["application/json"],
|
||||
permitBookmarklet: true,
|
||||
init: function (data) {
|
||||
Zotero.Integration.execCommand(data.query.agent, data.query.command, data.query.document, data.query.templateVersion);
|
||||
return 200;
|
||||
},
|
||||
};
|
|
@ -123,6 +123,7 @@ const xpcomFilesLocal = [
|
|||
'router',
|
||||
'schema',
|
||||
'server',
|
||||
'server_integration',
|
||||
'session',
|
||||
'streamer',
|
||||
'style',
|
||||
|
|
Loading…
Add table
Reference in a new issue