-
Notifications
You must be signed in to change notification settings - Fork 751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the possibility to select which fields should be exported to TeX #2028
Conversation
Thanks, but not going to take this. The people using BibTeX in Zotero without BBT generally just use it as a standard exchange format, and I don't think this sort of configurability is necessary or desirable for that kind of usage. Data doesn't have to be used in all contexts, but throwing it out seems like bad practice to me in most situations. @retorquere may be willing to consider this — or something like it — in BBT, if it's not already possible. |
Throwing it out is indeed bad practice when the aim is data exchange, but I'd say for data exchange, the only redeeming feature of BibTeX is that is is widely accepted; it is ill-standardised in both what is generated by the myriad implementations, and how it is interpreted back by that same myriad. If you want data exchange I'd generally recommend RIS or CSL. Exporting to BibTeX, whether with stock Zotero or even with all fields enabled in BBT, already incurs data loss, as not all fields find a home in bibtex. I reckon BBT users are generally not using it as a data exchange format though, but stock Zotero export and BBT live happily side by side in this regard I think. |
Unfortunately that applies equally, if not more so, to RIS. Even EndNote does different things in each version. When there isn't a better option, we recommend them both pretty equally. |
Did not know that. MODS then? Even CSL doesn't carry everything Zotero does. |
I think MODS is better, but most programs don't support it. And no, I've personally never thought of CSL-JSON as an exchange format unless your concern is entirely what's citable. The only (nearly?) lossless format is Zotero RDF, but that's a nightmare to support and not realistically going to be used by anything else. In theory something with no knowledge of Zotero that supported various RDF ontologies would be able import some data from it, but in the real world it's pretty much just for moving stuff between Zotero installs. Our API JSON is entirely lossless and much easier to support, but that's tightly coupled to our data model and not something I've ever particularly wanted to expose as an exchange format. |
@dstillman Could the paths in BibTeX to the attachments been made optional? I see the complete path on my computer or network drive to this attachment, which I may not want to share with someone else. E.g. file = {:C$\backslash$:/Users/amitrani/Documents/Mendeley/Yang, Leong - 2017 - Using Reward Programs as Public Policy Insights from a Field Experiment on Subway Trains.pdf:pdf}, |
Here my 2 cents. I perfectly understand your concerns. Anyway, thank you for your work! Cheers |
If BibTeX is a central part of your workflow, you should be using BBT. Zotero isn't a BibTeX manager. As @retorquere said, this is already possible in BBT. |
This is all legit and dandy |
You can still use JabRef on the same system, and it would understand those paths. |
Sorry, missed this. That's a fair point, and I'd be fine with an option to exclude file paths. The problem is that there's already an "Export FIles" option, and the file paths option would really only make sense when "Export FIles" was disabled. But I don't think we have that sort of conditional configurability in the export dialog now, so we would have to either add generic handling to allow translators to define conditional options or hard-code some logic that applies specifically to "Export Files". UI-wise, I guess when "Export Files" was checked, "Include File Paths" below it would be disabled and checked, and if "Export Files" was unchecked, "Include Files Paths" would become enabled and could be unchecked by the user? I'll reopen this for discussion of this specific issue. |
The export dialog for BibTeX looks currently like this: The new option could be named to
The path is then either a local path to the newly exported files or the global path where the files are at the moment. The current available options are number 1 and 3, and you still only need to click once to switch between those. Number 2 may be a strange choice, because you want to export the files but not export paths to the files, but why not provide that option as well? The difference to what you suggested is, that you assume implicitly that if someone wants to export files then they also want to export the paths to these files. This has now just clicked explicitly on. But it avoids any conditional behavior this way. What do you think? |
An alternative would be to offer a 3-option dropdown menu. Option 2 doesn't make much sense to me tbh. |
Another request from the forum to make it possible to toggle of the paths in BibTeX: https://forums.zotero.org/discussion/80399/dont-export-file-field-to-bibtex |
It would be awesome to let the users choose what kind of fields should be exported when BibTeX/BibLaTeX format is chosen. While I perfectly get that it could be done via proper citation styles, or even with Better BibTeX for Zotero, I think that giving a much easier way to do that would be willingly accepted by the users.
In particular, in the commit I added the possibility to enable or disable the export of the following fields:
Also the Zotero repository should be updated introducing the corresponding setting strings
Thank you for considering my request.