diegodlh / zotero-cita

Cita: a Wikidata addon for Zotero with citations metadata support
GNU General Public License v3.0
235 stars 12 forks source link

Remove irrelevant translator options from export citations dialog #125

Open diegodlh opened 3 years ago

diegodlh commented 3 years ago

Upon merge of #118, the dialog to export citations to a file will show some irrelevant translator options that may be confusing. As mentioned on that pull request:

some translator options ("Export Notes", "Export Files", "Export Tags" and "Export Collections") that show for some formats may be confusing, as citations can't have notes, files or tags, or belong to specific collections (I'm not sure what the TEI translator option "Full TEI Document" means and whether it applies to citations, or what other options may be available for other export translators). What do you think?

I think the only way to remove these options would be to reimplement Zotero's Zotero_File_Export.save method, unfortunately. Maybe by changing translators' displayOptions array property here, or by using a custom exportOptions dialog here.

In case the export dialog is redesigned, also consider adding an option to copy to clipboard instead of saving to file.