Skip to content

Instantly share code, notes, and snippets.

{
"translatorID": "e7243cef-a709-4a46-ba46-1b1318051bec",
"label": "Citavi 5 XML",
"creator": "Philipp Zumstein, Tomasz Najdek",
"target": "xml",
"minVersion": "3.0",
"maxVersion": "",
"priority": 100,
"configOptions": {
"dataMode": "xml/dom",
<?xml version="1.0" encoding="utf-8" ?>
<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml">
<linkset>
<html:link rel="localization" href="toolkit/global/wizard.ftl" />
</linkset>
<script src="chrome://global/content/customElements.js"></script>
<script>
// const { extensions, defaults } = window.arguments[0]
const extensions = ['pdf', 'docx']
const defaults = {
<?xml version="1.0" encoding="utf-8" ?><window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml"><linkset><html:link rel="localization" href="toolkit/global/wizard.ftl"/></linkset><script src="chrome://global/content/customElements.js"></script><script>// const { extensions, defaults } = window.arguments[0]
const extensions = ['pdf', 'docx']
const defaults = { pdf: 'import' }
const config = {
icon: {
ignore: '\u1F6AB',
attach: '\u1F4BE',
link: '\u1F517',
import: '\u1F5C2',
var { install, onMainWindowLoad, onMainWindowUnload, shutdown, startup, uninstall } = (() => {
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __esm = (fn, res) => function __init() {
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
};
function a0_0x4c19(){var _0x185144=['nodeType','count','decodeText','filter','source','Error\x20running\x20export','A&T\x20\x22Export\x20to\x20DEVONThink\x22\x20is\x20not\x20active.','sticky','ATTRIBUTE','(?:','chars','Bearer\x20','default','currentApplication','legacy','processInfo','An\x20error\x20was\x20suppressed\x20during\x20disposal.','rawData','nameStart','Stop','static','char','NSMutableURLRequest','DOCUMENT','pop','displayGroupSelector','dataWithContentsOfURL','div','attributeTokenPool','displayAlert','label','Please\x20provide\x20a\x20collection/item\x20URI','URLWithString','__assign','application/javascript','asyncIterator','endsAncestorAt','number','stack','<tr>','includeStandardAdditions','entries','index','critical','toUpperCase','<a\x20href=\x22','call','replace','Object\x20not\x20disposable.','</tr>','sourceEnd','99981hQklJo','getter','constructor','none','initWithUTF8String','createEntityDecoder','Zotero\x20is\x20not\x20online.\x20Is\x20extensions.zotero.httpServer.localAPI.enabled\x20set\x20
print('zotero-live-citations 7569117')
local mt, latest = pandoc.mediabag.fetch('https://retorque.re/zotero-better-bibtex/exporting/zotero.lua.revision')
latest = string.sub(latest, 1, 10)
if '7569117' ~= latest then
print('new version "' .. latest .. '" available at https://retorque.re/zotero-better-bibtex/exporting')
end
do
local _ENV = _ENV
print('zotero-live-citations bc894b4')
local mt, latest = pandoc.mediabag.fetch('https://retorque.re/zotero-better-bibtex/exporting/zotero.lua.revision')
latest = string.sub(latest, 1, 10)
if 'bc894b4' ~= latest then
print('new version "' .. latest .. '" available at https://retorque.re/zotero-better-bibtex/exporting')
end
do
local _ENV = _ENV
print('zotero-live-citations 4b9705e')
local mt, latest = pandoc.mediabag.fetch('https://retorque.re/zotero-better-bibtex/exporting/zotero.lua.revision')
latest = string.sub(latest, 1, 10)
if '4b9705e' ~= latest then
print('new version "' .. latest .. '" available at https://retorque.re/zotero-better-bibtex/exporting')
end
do
local _ENV = _ENV
print('zotero-live-citations 4b9705e')
local mt, latest = pandoc.mediabag.fetch('https://retorque.re/zotero-better-bibtex/exporting/zotero.lua.revision')
latest = string.sub(latest, 1, 10)
if '4b9705e' ~= latest then
print('new version "' .. latest .. '" available at https://retorque.re/zotero-better-bibtex/exporting')
end
do
local _ENV = _ENV
declare const Zotero: any
declare const location: any
export const is7 = (typeof location !== 'undefined' && location.search) ? ((new URLSearchParams(location.search)).get('is7') === 'true') : Zotero.platformMajorVersion >= 102
function clientname(): string {
if (typeof location !== 'undefined' && location.search) return (new URLSearchParams(location.search)).get('clientName')
// if (process.versions.node) return 'Zotero' // testing
if (Zotero.clientName) return Zotero.clientName as string
if (Zotero.BetterBibTeX?.clientName) return Zotero.BetterBibTeX.clientName as string