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

Integrity check should report empty BibTexKey as problem, too #1779

Closed
Siedlerchr opened this issue Aug 18, 2016 · 10 comments
Closed

Integrity check should report empty BibTexKey as problem, too #1779

Siedlerchr opened this issue Aug 18, 2016 · 10 comments

Comments

@Siedlerchr
Copy link
Member

JabRef version 3.6dev
Steps to reproduce:

  1. Create an entry with no BibTeyKey but otherwise all fields set
  2. run Integrity Check
  3. Integrity check reports no problem

Warning about empty BibtexKey occurs only at startup. However, the integrity checker should report the empty bibtex key, too.

@Patent{,
  author    = {Abraham Lincoln},
  title     = {The Vampire Hunter},
  number    = {12345677},
  year      = {1978},
}
@grimes2
Copy link
Contributor

grimes2 commented Aug 19, 2016

Empty required fields are indicated with a red entry number field. So it might be more intuitive, that an empty bibtexkey field is also red.

@Siedlerchr
Copy link
Member Author

Refs: JabRef#152

@grimes2
Copy link
Contributor

grimes2 commented Sep 20, 2016

I try to implement this. This is the result:

emptybibtexkey

I've added AuthorTitleYear, because bibtexkey is missing. This is in agreement with the warning on startup.

@Siedlerchr
Copy link
Member Author

Looks good! That would be enough.
If you create PR, we would be pleased 👍

@simonharrer
Copy link
Contributor

Does the "click on item jumps to entry in main table" still work if there is no citekey?

@grimes2
Copy link
Contributor

grimes2 commented Sep 20, 2016

Unfortunately no.

@Siedlerchr
Copy link
Member Author

Siedlerchr commented Sep 21, 2016

@simonharrer I have not looked into the code, but I think that the key is used as reference to located the entry...Maybe we should switch that to id?

@tobiasdiez
Copy link
Member

We should switch it to BibEntry, i.e. just keep a reference to the entry and the use/create a method highlight(BibEntry)

@tobiasdiez
Copy link
Member

The checker for empty keys is now in place with #2022. I'll keep this open nonetheless as a reminder that we should fix the highlight functionality at some point.

@stefan-kolb
Copy link
Member

Follow up in #2181

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

5 participants