Skip to content
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

Feature request: citation key per library and/or collection #2927

Closed
bwakkie opened this issue Aug 6, 2024 · 7 comments
Closed

Feature request: citation key per library and/or collection #2927

bwakkie opened this issue Aug 6, 2024 · 7 comments

Comments

@bwakkie
Copy link

bwakkie commented Aug 6, 2024

Debug log ID

VZK7ZJUU-fio-tl3ML416QAe2

What happened?

Hello,

I have been using betterbibtex extensively for converting multiple bib(la)tex files for different purposes especially exporting the bib(la)tex file locally and love it! (also in combination with jabref/vim regex for different functionalities I could not find in Zotero)

I created a personal citation key formula for a specific project ...
auth.substring(1,3).upper+year.substring(3,2)+title.skipwords.select(1,1).substring(1,3).upper
... however I'd like an other one for different libraries/collections.

It would be extremely useful if I can assign different formulae to different libraries/collections which the preferences tab suggests: [Citation keys]

Cheers and keep up the good work!

@retorquere
Copy link
Owner

Per-collection is not possible, since the same item can exist in multiple collections. Per-library is in principle possible, I'll look into it, but it'll be a major change, so it's not a short-term thing.

@failiz
Copy link

failiz commented Sep 5, 2024

I would like also this. In my case, I have my own citation key, but I am now collaborating with other persons in a survey paper with a shared library and they use a different citation key.

@FlowyCoder
Copy link

I would also appreciate this. Working on different papers where we have chosen different citation key styles.

Is there any way to help?

@retorquere
Copy link
Owner

The primary issue, believe it or not, is to create the ui for it in the preferences. The rest isn't trivial but not hard.

@retorquere
Copy link
Owner

No wait, I have an idea.

Copy link

🤖 this is your friendly neighborhood build bot announcing test build 6.7.263.7444 ("group/library")

This update may name other issues, but the build just dropped here is for you; it just means problems already fixed in other issues have been folded into the work we are doing here. Install in Zotero by downloading test build 6.7.263.7444, opening the Zotero "Tools" menu, selecting "Add-ons", open the gear menu in the top right, and select "Install Add-on From File...".

@retorquere
Copy link
Owner

this build adds two functions:

library will return nothing but will jump to the next formula if the item is not in your library, so

library + year; title

will use just the year for items in your library, just the title for all else. Inversely, group(name) will return nothing but jump to the next formula if the item is in your library, or in a group that isn't "name"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants