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

Required fields in entry editor are incomplete #5853

Closed
systemoperator opened this issue Jan 20, 2020 · 3 comments
Closed

Required fields in entry editor are incomplete #5853

systemoperator opened this issue Jan 20, 2020 · 3 comments
Labels
status: stale status: waiting-for-feedback The submitter or other users need to provide more information about the issue

Comments

@systemoperator
Copy link
Contributor

systemoperator commented Jan 20, 2020

I have looked at the different entry types of biblatex in http://mirror.easyname.at/ctan/macros/latex/contrib/biblatex/doc/biblatex.pdf (p. 8ff, 2.1 Entry Types). Here, I have observed that some entry types define that either the entry field "year" or "date" (year/date) is required. Contrarily, JabRef only shows the entry field "date" as required. The entry field "date" is only shown in "Other fields". This can confuse some users.

One example:

Entry type: article
biblatex: Required fields: author, title, journaltitle, year/date
JabRef shows the following entry fields as required: author, title, journaltitle, date

This could also lead to a problem, when pasting references, where only year={yyyy} is set.

Maybe it could be defined more clearly in the required fields, that either the field "year" or "date" is required. (Of course I see, that the date also includes the year.)

Affected entry types are:

article, book, mvbook, inbook, booklet, collection, mvcollection, incollection, dataset, manual, misc, online, patent, periodical, proceedings, mvproceedings, inproceedings, report, thesis, unpublished

Furthermore, for the entry types:

  • "misc" the following is defined as required: author/editor, title, year/date
    • But in JabRef required are: author, title, date
  • "online" the following is defined as required: author/editor, title, year/date, doi/eprint/url
    • But in JabRef required are: author, title, date, url
@Siedlerchr
Copy link
Member

Siedlerchr commented Jan 20, 2020

@systemoperator
Are you sure you have your library in biblatex mode?

Year + month are aliases to the field date. JabRef can interpret date from year + month and also the other way round to some extend. Not all biblatex date formats can be entered atm. See #2753
Therefore it's only necessary to show the date field. And biblatex is backwards compatible see section §2.3.9.

author/editor: Those are both present:
grafik

And JabRef has also special logic to serialize them and parse them.
You can see all EntryType/Field related defintions in JabRef here:
https://github.com/JabRef/jabref/tree/master/src/main/java/org/jabref/model/entry

@Siedlerchr Siedlerchr added the status: waiting-for-feedback The submitter or other users need to provide more information about the issue label Jan 20, 2020
@systemoperator
Copy link
Contributor Author

systemoperator commented Jan 20, 2020

@Siedlerchr Yes, I have biblatex mode enabled: I have set it for the current library as well as in the JabRef settings in general ("Default bibliography mode").

I'm using the latest JabRef 5 master build (JabRef-5.0-portable_linux.tar.gz, JabRef 5.0-beta.357--2020-01-18--6319d05, Linux 4.4.0-171-generic amd64, Java 13.0.2) on Ubuntu 16.04.

Concerning the entry type "misc", there is no "Editor" field visible:

image

Add: I have now also tested the latest jabref_5.0-1_amd64.deb master build. I can observe the same here: When I create a new reference with the entry type "misc", then no "Editor" field is visible in the "Required fields" tab of the entry editor.

I have tried pasting a new biblatex entry, where the entry field "date" is not declared but the entry fields "year" and "month" are set:

@Article{Xxx2007,
  author       = {Xxx, Abc},
  journaltitle = {jtitle},
  title        = {title},
  pages        = {1906--1920},
  month        = jul,
  year         = {2007},
}

After saving the library and selecting a different reference and switching back to the newly added one, I see that in the tab "Required fields" the required field "Date" is still empty. Is this fine? A user could think, that this reference is incomplete, although a year and month is declared.

@github-actions
Copy link
Contributor

This issue will be closed in 7 days due to inactivity 💤 Please provide the requested information if the problem persists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: stale status: waiting-for-feedback The submitter or other users need to provide more information about the issue
Projects
None yet
Development

No branches or pull requests

2 participants