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

Camel key doesn't seem to be working #2589

Closed
traversc opened this issue Feb 24, 2017 · 5 comments
Closed

Camel key doesn't seem to be working #2589

traversc opened this issue Feb 24, 2017 · 5 comments
Labels
bug Confirmed bugs or reports that are very likely to be bugs keygenerator

Comments

@traversc
Copy link

Hi, I can't get the camel key in the key pattern to work for some reason. I'm using the latest release:

Here is my key pattern:
[auth][year][camel]

Here is my bibtex file:

% Encoding: UTF-8

@Article{Trapnell2009,
author = {Trapnell, Cole and Pachter, Lior and Salzberg, Steven L.},
title = {TopHat: discovering splice junctions with RNA-Seq},
journal = {Bioinformatics},
year = {2009},
volume = {25},
number = {9},
pages = {1105-1111},
issn = {1367-4803, 1460-2059},
doi = {10.1093/bioinformatics/btp120},
type = {Journal Article},
url = {http://bioinformatics.oxfordjournals.org/content/25/9/1105
http://www.ncbi.nlm.nih.gov/pubmed/19289445
http://bioinformatics.oxfordjournals.org/content/25/9/1105.abstract},
}

@comment{jabref-meta: databaseType:bibtex;}

@lenhard
Copy link
Member

lenhard commented Feb 28, 2017

Hi @traversc

What exactly is the error? Looking at the description here http://help.jabref.org/en/BibtexKeyPatterns I would say that the key Trapnell2009 is exactly what I would expect from the key pattern [auth][year][camel].

Do you expect more author names? Then you should use [authors][year][camel].

@lenhard lenhard added status: waiting-for-feedback The submitter or other users need to provide more information about the issue keygenerator labels Feb 28, 2017
@traversc
Copy link
Author

traversc commented Feb 28, 2017

Apologies if I misunderstood the documentation.

It says:

[camel]: Capitalize and concatenate all the words of the title. For example, An awesome paper on JabRef will become AnAwesomePaperOnJabref

So following that pattern when I use just [camel], shouldn't it output: TophatDiscoveringSpliceJunctionsWithRnaseq (or something similar)? However, I just get a blank.

Thanks

@Siedlerchr
Copy link
Member

Siedlerchr commented Feb 28, 2017

@traversc You are right. Apparently that does not work correctly.

@Siedlerchr
Copy link
Member

Siedlerchr commented Feb 28, 2017

I took a look at the code and interestingly there is no check for the [camel] option in the class BibtexKeyPatternUtil class where all the labels are checked

Edit// In the meantime I would suggest using the [title] and doing a camel case cleanup before generating the bibtex key. Then you would get a

@Siedlerchr Siedlerchr added bug Confirmed bugs or reports that are very likely to be bugs and removed status: waiting-for-feedback The submitter or other users need to provide more information about the issue labels Mar 1, 2017
@matthiasgeiger
Copy link
Member

Hi!
Thanks to @RolfStarre the problem should be fixed in the recent development builds.
You can check out fixed versions at: https://builds.jabref.org/master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs or reports that are very likely to be bugs keygenerator
Projects
None yet
Development

No branches or pull requests

4 participants