zotero/chrome/content/zotero/publicationsDialog.xul
Dan Stillman fbef911cb7 Add wizard for My Publications
Show a wizard after items are dragged to My Publications choosing
whether to include files and notes and choosing sharing settings for the
items. Sharing options are Creative Commons licenses, CC0, "All rights
reserved", or keeping the existing Rights field if available.

Also blocks collections, searches, linked file attachments, and
top-level attachments/notes from My Publications at the data layer, but
not yet from the UI in all places (so it can crash if you try).

Todo:

- Block certain UI actions with nice messages
- Show a nice scrollable list of items in the wizard to allow selecting
  specific files/notes, instead of just having checkboxes for files and
  notes that apply to all dragged items
- Show an explanation of My Publications in the right-hand pane when no
  items are selected
- Maybe adjust handling when no attached files/notes, since it might be
  a bit alarming at the moment to see sharing options for metadata
  entries
2015-04-26 19:41:45 -04:00

107 lines
4.7 KiB
XML

<?xml version="1.0"?>
<!--
***** BEGIN LICENSE BLOCK *****
Copyright © 2015 Center for History and New Media
George Mason University, Fairfax, Virginia, USA
https://www.zotero.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 *****
-->
<!DOCTYPE window [
<!ENTITY % zoteroDTD SYSTEM "chrome://zotero/locale/zotero.dtd"> %zoteroDTD;
<!ENTITY % publicationsDTD SYSTEM "chrome://zotero/locale/publications.dtd"> %publicationsDTD;
]>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
<?xml-stylesheet href="chrome://zotero/skin/publicationsDialog.css" type="text/css"?>
<wizard id="zotero-publications-wizard" title="&zotero.publications.my_publications;"
width="600"
height="550"
onwizardnext="return Zotero_Publications_Dialog.onAdvance()"
onwizardfinish="return Zotero_Publications_Dialog.onFinish()"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script src="include.js"/>
<script src="publicationsDialog.js"/>
<!-- NOTES AND ATTACHMENTS? -->
<wizardpage pageid="intro" label="&zotero.publications.my_publications;"
onpageshow="Zotero_Publications_Dialog.updatePage()">
<description>&zotero.publications.intro;</description>
<separator/>
<checkbox id="include-files" label="&zotero.publications.include.checkbox.files;"
oncommand="Zotero_Publications_Dialog.updateInclude()"/>
<checkbox id="include-notes" label="&zotero.publications.include.checkbox.notes;"
oncommand="Zotero_Publications_Dialog.updateInclude()"/>
<separator/>
<checkbox id="confirm-authorship-checkbox"
label="&zotero.publications.authorship.checkbox;"
oncommand="Zotero_Publications_Dialog.updateNextButton()"/>
</wizardpage>
<wizardpage pageid="choose-sharing" label="&zotero.publications.sharing.title;"
onpageshow="Zotero_Publications_Dialog.updatePage()">
<vbox id="use-rights">
<checkbox id="use-rights-checkbox"
oncommand="Zotero_Publications_Dialog.updateUseRights(this.checked)"/>
<separator/>
</vbox>
<vbox id="choose-sharing-options">
<description>&zotero.publications.sharing.text;</description>
<separator/>
<description>&zotero.publications.sharing.prompt;</description>
<separator class="thin"/>
<radiogroup id="sharing-radiogroup"
oncommand="Zotero_Publications_Dialog.updateSharing(this.selectedItem.id)">
<radio id="sharing-cc" label="&zotero.publications.sharing.cc;"/>
<radio id="sharing-cc0" label="&zotero.publications.sharing.cc0;"/>
<radio id="sharing-reserved" label="&zotero.publications.sharing.reserved;"/>
</radiogroup>
<groupbox class="license-info"/>
<separator/>
<div xmlns="http://www.w3.org/1999/xhtml" class="license-more-info"/>
</vbox>
</wizardpage>
<wizardpage pageid="choose-license" label="&zotero.publications.chooseLicense.title;"
onpageshow="Zotero_Publications_Dialog.updatePage()">
<description>&zotero.publications.chooseLicense.text;</description>
<separator/>
<label value="&zotero.publications.chooseLicense.adaptations.prompt;" control="choose-adaptations"/>
<radiogroup id="choose-adaptations" oncommand="Zotero_Publications_Dialog.updateSharing(this.selectedItem.id)">
<radio id="adaptations-no" label="&zotero.general.no;" accesskey="N"/>
<radio id="adaptations-yes" label="&zotero.general.yes;" accesskey="Y"/>
<radio id="adaptations-sharealike" label="&zotero.publications.chooseLicense.adaptations.sharealike;" accesskey="S"/>
</radiogroup>
<separator/>
<label value="&zotero.publications.chooseLicense.commercial.prompt;" control="choose-commercial"/>
<radiogroup id="choose-commercial" oncommand="Zotero_Publications_Dialog.updateSharing(this.selectedItem.id)">
<radio id="commercial-yes" label="&zotero.general.yes;" accesskey="Y"/>
<radio id="commercial-no" label="&zotero.general.no;" accesskey="N"/>
</radiogroup>
<groupbox class="license-info"/>
<separator/>
<div xmlns="http://www.w3.org/1999/xhtml" class="license-more-info"/>
</wizardpage>
</wizard>