2007-10-23 07:11:59 +00:00
|
|
|
<?xml version="1.0"?>
|
2009-12-28 09:47:49 +00:00
|
|
|
<!--
|
|
|
|
***** BEGIN LICENSE BLOCK *****
|
|
|
|
|
2013-03-20 08:47:52 +00:00
|
|
|
Copyright © 2007 Center for History and New Media
|
2009-12-28 09:47:49 +00:00
|
|
|
George Mason University, Fairfax, Virginia, USA
|
|
|
|
http://zotero.org
|
|
|
|
|
|
|
|
This file is part of Zotero.
|
|
|
|
|
|
|
|
Zotero is free software: you can redistribute it and/or modify
|
2011-05-18 18:34:22 +00:00
|
|
|
it under the terms of the GNU Affero General Public License as published by
|
2009-12-28 09:47:49 +00:00
|
|
|
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
|
2011-05-18 18:34:22 +00:00
|
|
|
GNU Affero General Public License for more details.
|
2009-12-28 09:47:49 +00:00
|
|
|
|
2011-05-18 18:34:22 +00:00
|
|
|
You should have received a copy of the GNU Affero General Public License
|
2009-12-28 09:47:49 +00:00
|
|
|
along with Zotero. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
|
|
|
***** END LICENSE BLOCK *****
|
|
|
|
-->
|
|
|
|
|
2007-10-23 07:11:59 +00:00
|
|
|
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
|
|
|
|
<?xml-stylesheet href="chrome://zotero/skin/preferences.css"?>
|
|
|
|
|
2015-05-15 04:25:06 +00:00
|
|
|
|
|
|
|
<!DOCTYPE window [
|
|
|
|
<!ENTITY % prefWindow SYSTEM "chrome://zotero/locale/preferences.dtd">
|
|
|
|
%prefWindow;
|
|
|
|
<!ENTITY % common SYSTEM "chrome://zotero/locale/zotero.dtd">
|
|
|
|
%common;
|
|
|
|
]>
|
|
|
|
|
2007-10-23 07:11:59 +00:00
|
|
|
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
|
|
|
title="" buttons="cancel,accept"
|
|
|
|
id="zotero-quickCopySiteEditor"
|
2021-05-16 08:39:08 +00:00
|
|
|
onload="Zotero_QuickCopySiteEditor.onLoad(); Zotero_Preferences.Export.updateQuickCopyUI(); sizeToContent()"
|
2007-10-23 07:11:59 +00:00
|
|
|
ondialogaccept="Zotero_QuickCopySiteEditor.onAccept();">
|
|
|
|
|
2013-02-18 21:15:44 +00:00
|
|
|
<script src="chrome://zotero/content/include.js"/>
|
|
|
|
<script src="preferences.js"/>
|
2015-02-03 02:23:59 +00:00
|
|
|
<script src="preferences_export.js"/>
|
2007-10-23 07:11:59 +00:00
|
|
|
|
|
|
|
<vbox id="zotero-preferences-quickCopySiteEditor">
|
Merged revisions 1986,1988-1990,1996,1998,2000-2004,2006,2008-2010,2013,2020-2028,2032-2034,2037,2039,2044-2049,2052-2056,2059,2065-2066,2068-2072,2075,2077-2079,2081,2083-2084,2086,2088-2094,2096,2099,2101,2103-2104,2107-2110,2115,2118,2120-2122,2126-2128,2131,2140,2142-2145,2149-2153,2155-2159,2165,2167-2168,2170-2171,2173-2176,2179-2183,2185-2186 via svnmerge from
https://www.zotero.org/svn/extension/branches/1.0
2008-01-30 09:53:19 +00:00
|
|
|
<label value="&zotero.preferences.quickCopy.siteEditor.domainPath; &zotero.preferences.quickCopy.siteEditor.domainPath.example;" control="zotero-quickCopy-domain"/>
|
2017-07-19 07:38:18 +00:00
|
|
|
<textbox id="zotero-quickCopy-domain" oninput="Zotero_QuickCopySiteEditor.onDomainInput(event)"/>
|
2015-02-03 02:23:59 +00:00
|
|
|
|
Merged revisions 1986,1988-1990,1996,1998,2000-2004,2006,2008-2010,2013,2020-2028,2032-2034,2037,2039,2044-2049,2052-2056,2059,2065-2066,2068-2072,2075,2077-2079,2081,2083-2084,2086,2088-2094,2096,2099,2101,2103-2104,2107-2110,2115,2118,2120-2122,2126-2128,2131,2140,2142-2145,2149-2153,2155-2159,2165,2167-2168,2170-2171,2173-2176,2179-2183,2185-2186 via svnmerge from
https://www.zotero.org/svn/extension/branches/1.0
2008-01-30 09:53:19 +00:00
|
|
|
<separator class="thin"/>
|
2015-02-03 02:23:59 +00:00
|
|
|
|
2017-07-19 07:52:08 +00:00
|
|
|
<label value="&zotero.preferences.quickCopy.siteEditor.format;" control="zotero-quickCopy-menu"/>
|
Merged revisions 1986,1988-1990,1996,1998,2000-2004,2006,2008-2010,2013,2020-2028,2032-2034,2037,2039,2044-2049,2052-2056,2059,2065-2066,2068-2072,2075,2077-2079,2081,2083-2084,2086,2088-2094,2096,2099,2101,2103-2104,2107-2110,2115,2118,2120-2122,2126-2128,2131,2140,2142-2145,2149-2153,2155-2159,2165,2167-2168,2170-2171,2173-2176,2179-2183,2185-2186 via svnmerge from
https://www.zotero.org/svn/extension/branches/1.0
2008-01-30 09:53:19 +00:00
|
|
|
<menulist id="zotero-quickCopy-menu"/>
|
2015-02-03 02:23:59 +00:00
|
|
|
|
Merged revisions 1986,1988-1990,1996,1998,2000-2004,2006,2008-2010,2013,2020-2028,2032-2034,2037,2039,2044-2049,2052-2056,2059,2065-2066,2068-2072,2075,2077-2079,2081,2083-2084,2086,2088-2094,2096,2099,2101,2103-2104,2107-2110,2115,2118,2120-2122,2126-2128,2131,2140,2142-2145,2149-2153,2155-2159,2165,2167-2168,2170-2171,2173-2176,2179-2183,2185-2186 via svnmerge from
https://www.zotero.org/svn/extension/branches/1.0
2008-01-30 09:53:19 +00:00
|
|
|
<separator class="thin"/>
|
2015-02-03 02:23:59 +00:00
|
|
|
|
2015-05-15 04:25:06 +00:00
|
|
|
<label id="zotero-quickCopy-locale-menu-label" value="&zotero.preferences.quickCopy.siteEditor.locale;" control="zotero-quickCopy-locale-menu"/>
|
2015-02-03 02:23:59 +00:00
|
|
|
<hbox align="center">
|
2015-05-15 04:25:06 +00:00
|
|
|
<menulist id="zotero-quickCopy-locale-menu" oncommand="Zotero_Preferences.Export._lastSelectedLocale = this.value"/>
|
2015-02-03 02:23:59 +00:00
|
|
|
</hbox>
|
|
|
|
|
|
|
|
<separator class="thin"/>
|
|
|
|
|
Merged revisions 1986,1988-1990,1996,1998,2000-2004,2006,2008-2010,2013,2020-2028,2032-2034,2037,2039,2044-2049,2052-2056,2059,2065-2066,2068-2072,2075,2077-2079,2081,2083-2084,2086,2088-2094,2096,2099,2101,2103-2104,2107-2110,2115,2118,2120-2122,2126-2128,2131,2140,2142-2145,2149-2153,2155-2159,2165,2167-2168,2170-2171,2173-2176,2179-2183,2185-2186 via svnmerge from
https://www.zotero.org/svn/extension/branches/1.0
2008-01-30 09:53:19 +00:00
|
|
|
<checkbox id="zotero-quickCopy-copyAsHTML" label="&zotero.preferences.quickCopy.copyAsHTML;"
|
2014-08-13 01:32:53 +00:00
|
|
|
oncommand="Zotero_Preferences.Export.buildQuickCopyFormatDropDown(
|
2015-06-27 20:59:58 +00:00
|
|
|
document.getElementById('zotero-quickCopy-menu'),
|
|
|
|
this.checked ? 'html' : '',
|
|
|
|
null,
|
|
|
|
io.translators
|
2013-03-20 08:47:52 +00:00
|
|
|
)"/>
|
2007-10-23 07:11:59 +00:00
|
|
|
</vbox>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<![CDATA[
|
2017-07-19 07:38:18 +00:00
|
|
|
var Zotero_QuickCopySiteEditor = new function () {
|
|
|
|
var menu = document.getElementById('zotero-quickCopy-menu');
|
|
|
|
|
2021-05-16 08:39:08 +00:00
|
|
|
this.onLoad = function () {
|
|
|
|
// Hide OK button initially if domain field is empty
|
|
|
|
document.documentElement.getButton('accept').disabled
|
|
|
|
= document.getElementById('zotero-quickCopy-domain').value.trim() === '';
|
|
|
|
};
|
|
|
|
|
2017-07-19 07:38:18 +00:00
|
|
|
this.onAccept = function () {
|
|
|
|
var io = window.arguments[0];
|
|
|
|
io.domain = document.getElementById('zotero-quickCopy-domain').value;
|
|
|
|
io.format = menu.value;
|
|
|
|
|
|
|
|
io.locale = '';
|
|
|
|
if (!document.getElementById('zotero-quickCopy-locale-menu').disabled) {
|
|
|
|
io.locale = document.getElementById('zotero-quickCopy-locale-menu').value;
|
|
|
|
}
|
|
|
|
|
|
|
|
io.ok = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
this.onDomainInput = function (event) {
|
2021-05-16 08:39:08 +00:00
|
|
|
// Hide OK button if domain field is empty
|
|
|
|
document.documentElement.getButton('accept').disabled = event.target.value.trim() === '';
|
|
|
|
|
|
|
|
// Auto-select Wikipedia Citation Templates
|
2017-07-19 07:38:18 +00:00
|
|
|
if (event.target.value == 'wikipedia.org') {
|
|
|
|
menu.value = 'export=3f50aaac-7acc-4350-acd0-59cb77faf620';
|
|
|
|
Zotero_Preferences.Export.updateQuickCopyUI();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2007-10-23 07:11:59 +00:00
|
|
|
var io = window.arguments[0];
|
2015-02-03 02:23:59 +00:00
|
|
|
var contentType = io.asHTML ? 'html' : '';
|
2007-10-23 07:11:59 +00:00
|
|
|
document.getElementById('zotero-quickCopy-domain').value = io.domain ? io.domain : '';
|
2014-08-13 01:32:53 +00:00
|
|
|
Zotero_Preferences.Export.buildQuickCopyFormatDropDown(
|
2013-03-20 08:47:52 +00:00
|
|
|
document.getElementById('zotero-quickCopy-menu'),
|
2015-02-03 02:23:59 +00:00
|
|
|
contentType,
|
2015-06-27 20:59:58 +00:00
|
|
|
io.format,
|
|
|
|
io.translators
|
2013-03-20 08:47:52 +00:00
|
|
|
);
|
2015-05-15 04:25:06 +00:00
|
|
|
Zotero.Styles.populateLocaleList(
|
|
|
|
document.getElementById('zotero-quickCopy-locale-menu')
|
2013-03-20 08:47:52 +00:00
|
|
|
);
|
2015-02-03 02:23:59 +00:00
|
|
|
document.getElementById('zotero-quickCopy-copyAsHTML').checked = io.asHTML;
|
2015-05-15 04:25:06 +00:00
|
|
|
Zotero_Preferences.Export._lastSelectedLocale = io.locale;
|
2007-10-23 07:11:59 +00:00
|
|
|
]]>
|
|
|
|
</script>
|
|
|
|
</dialog>
|