sawhney17 / logseq-citation-manager

73 stars 12 forks source link

[Enhancement] parse zotero's {date} to extract {year} #27

Open kerim opened 1 year ago

kerim commented 1 year ago

Testing Zotero, everything worked pretty well, except I had to change {year} to {date}. This makes sense, since that is what the file has (the Paperpile Bibtex has {year}), but it would be nice if one could just use {year} when the metadata in Zotero contains a full date, the same way you extracted {author lastname}.

For instance, with {date} I get

Friedman (2015-09-15) Exceptional States: Chinese Immigrants and Taiwanese Sovereignty

instead of

Friedman (2015) Exceptional States: Chinese Immigrants and Taiwanese Sovereignty

Which is what I'd want.

jacobtfisher commented 1 year ago

+1 for this. I also had this issue. I figured out that you can add year manually to the bibtex file using custom post-scripting in BetterBibTex, but that's a lot of fussing around that many folks probably won't want to mess with.

carljoseph commented 1 year ago

{year} already seems to work for me in my template. Give it a try?

kerim commented 1 year ago

So I finally fixed this problem by switching from "Better BibLaTex" export to "Better BibTex" export. The latter includes "year" by default. Not sure if this will create any other problems, but at least I can have year without messing around, which is really important for my workflow.

kerim commented 1 year ago

Any progress on extracting {year} from BibLaTex files that only have {date}?

tartakis commented 8 months ago

So I finally fixed this problem by switching from "Better BibLaTex" export to "Better BibTex" export. The latter includes "year" by default. Not sure if this will create any other problems, but at least I can have year without messing around, which is really important for my workflow.

Although the BibTex file has a field named 'year', citation manager still doesn't read it (field 'journal' as well)