You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BibtexEntry e = new BibtexEntry("id", BibtexEntryTypes.ARTICLE);
What should e.getCiteKey() be?
I have expected id, but it was null. Reason: the internal id of an entry is not the cite key. I think, this has reasons. For example, when changing the key of an entry or making the entry invalid, what should happen? As a quick fix, I would suggest that the constructor should call this.setField(KEY_FIELD, id);.
Alternatively, we should use Integers (Longs because of large databases?) as Ids as done in magsilva@9bb2074. Refs JabRef#112.
The text was updated successfully, but these errors were encountered:
The key is not always present (leading to user issues, e.g., JabRef#8645). Nevertheless, we need to handle that case somehow in JabRef. We have a builder in place. Thus, this issue is obsolete.
When reading following statement:
What should
e.getCiteKey()
be?I have expected
id
, but it wasnull
. Reason: the internal id of an entry is not the cite key. I think, this has reasons. For example, when changing the key of an entry or making the entry invalid, what should happen? As a quick fix, I would suggest that the constructor should callthis.setField(KEY_FIELD, id);
.Alternatively, we should use Integers (Longs because of large databases?) as Ids as done in magsilva@9bb2074. Refs JabRef#112.
The text was updated successfully, but these errors were encountered: