BibTeX export request: option to omit certain fields for less cluttered bibliographies
Currently, when I export an item to BibTeX, there are two checkbox options for what should be included: "Export Notes" and "Export Files." But there are many other fields that do get included and are superfluous for some bibliographies. Therefore, it would help if there were additional options for other "secondary" fields, such as:
- Abstract
- Tags/keywords
- DOI
- ISBN
- URL (for published items like books, journal articles, and conference papers)
- Publisher (for conference papers)
I don't think anyone at Zotero has a lot of love for dialogs with lots of boxes that users need to look at, check, uncheck, etc. - also, all of this would need to be invidiually specified in the translator etc.
If you really want this you'll likely have to hack this as a plugin (or into one of the existing plugins).
Finally - this is just aesthetics, right? Bibtex should get the citations correctly regardless.
If this is not a common problem, I understand the desire to avoid UI clutter. But it is something I have to worry about routinely (esp. for abstracts and tags); I'm not sure if it is similarly annoying to other users.
Not necessary an elegant solution, but does the job fairly quickly and efficiently and after all it's not something that needs to be done every day.
I would like to see an advance input text pain in the export option where the exact fields to be exported could be named in text. You developers would have better experience than I of whether that would be feasible in practice.
I am going to try jabref in the future. At present my work around is to delete the series name, but it seems a shame to reduce the amount of reference information in my zotero database on account of this.
When I get time in a few months, I'd be interested to try to put together a plugin if someone would point me in the direction of how to write this.
But as @adamsmith notes, you're much better off with something like:
\AtBeginDocument{
\AtEveryBibitem{\clearfield{month}}
\AtEveryBibitem{\clearfield{day}}
\AtEveryBibitem{\clearfield{endmonth}}
\AtEveryBibitem{\clearfield{endday}}
\AtEveryBibitem{\clearfield{labelmonth}}
\AtEveryBibitem{\clearfield{labelday}}
\AtEveryBibitem{\clearlist{language}}
\AtEveryBibitem{\clearfield{note}}
\DeclareFieldFormat*{issn}{}
\DeclareFieldFormat*{url}{}
\DeclareFieldFormat[online]{url}{\mkbibacro{URL}\addcolon\space\url{#1}}
\DeclareFieldFormat*{urldate}{}
\DeclareFieldFormat[online]{urldate}{\mkbibparens{\bibstring{urlseen}\space#1}}
\DeclareFieldFormat*{citetitle}{\emph{#1}}
\DeclareFieldFormat*{citeauthor}{\emph{#1}}
}
You may
• To install: Download the XPI file. In Zotero, Tools » Add-ons » ⚙ (gear, upper-right) » Install Add-on From File
• To omit abstract from exports: In Zotero, Edit » Preferences » BetterBibTeX (tab) » Fields to omit from export (comma-separated) » "abstract" (without quotes)
comment out the following lines (line numbers might vary slightly):
103: abstract:"abstractNote",
1485: writeField("file", attachmentString.substr(1));
I have tried both 'abstract' and 'abstractNote' in the textbox.
This is the only reason I installed BetterBibTeX. Very disappointing.
RTFM, just updating here in case others make the same mistake. Great to be rid of that flaming abstract.
I have installed the plug-in BetterBibtex in zotero and it happen it fix those issues pretty well.
From the ReadMe:
>Though, only 6 lines from that blog post remain. I made the idea more robust by modifying it to run from the command line, adding automatic outputfile creation, giving options on what to strip, adding input validation, and (most importantly) taking in multiple fields to strip.