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

Bugs in jabref. #405

Open
marcfehling opened this issue Sep 13, 2022 · 4 comments
Open

Bugs in jabref. #405

marcfehling opened this issue Sep 13, 2022 · 4 comments

Comments

@marcfehling
Copy link
Member

I noticed two issues when looking for E. Bängtsson, B. Lund on https://www.dealii.org/publications.html
image

  1. Why is the 2006 entry listed as Thesis although it is a @TechReport?
    @TechReport{bangtsson.lund:comparison,
    author = {E. B\"{a}ngtsson and B. Lund},
    title = {A comparison between two approaches to solve the equations of isostasy},
    year = 2006,
    institution = {Institute for Parallel Processing},
    address = {Bulgarian Academy of Sciences},
    series = {BIS-21++ Report},
    number = {2006-03},
    url = {http://bis-21pp.acad.bg/private/EricB-TRreport-final.pdf}
    }
  2. When clicking on the BibTeX button of the 2006 entry, the BibTeX entry for the 2008 publication expands. They both share the same citekey bangtsson.lund:comparison now since the introduction of bibtool, which is most likely the case for this behavior. This bug has been around before bibtool, but remained hidden until now. A quick fix is to also add the year into the citekey. I'm working on a fix right now.
@bangerth
Copy link
Member

About 1: @TechReport does not have its own jabref/listrefs.techreport.layout file and so jabref routes it through the generic listrefs.layout file which looks like this:

         \begin{journal}\format[HTMLChars]{\journal}\end{journal}<!--
    -->\begin{booktitle}, In: \format[HTMLChars]{\booktitle}\end{booktitle}<!--
 -->\begin{howpublished}, \howpublished\end{howpublished}<!--
       -->\begin{school}. Thesis at \format[HTMLChars]{\school}\end{school}<!--
      -->\begin{address}, \format[HTMLChars]{\address}\end{address}<!--
       -->\begin{volume}, vol. \volume\end{volume}<!--
       -->\begin{number}(\format[FormatPagesForHTML]{\number})\end{number}<!--
        -->\begin{pages}, pp. \format[FormatPagesForHTML]{\pages}\end{pages}<!--
         -->\begin{note}  (\format[HTMLChars]{\note})\end{note}<!--
    -->\begin{publisher}, \format[HTMLChars]{\publisher}\end{publisher}<!--
         -->\begin{year}, \format[HTMLChars]{\year}\end{year}<!--
                     -->.

Apparently it automatically translates the institution into a school field, which I agree is a bit weird. You also see from the template where the period at the top of the line comes from.

@marcfehling
Copy link
Member Author

Apparently it automatically translates the institution into a school field, which I agree is a bit weird. You also see from the template where the period at the top of the line comes from.

Do you think we could add an institution field into the generic template? Or would jabref turn the field already into school while parsing the file? I'll try to find some more information about it.

@marcfehling
Copy link
Member Author

I can confirm that #406 fixes problem 2.

@marcfehling
Copy link
Member Author

marcfehling commented Sep 13, 2022

JabRef/jabref#2505 as well as JabRef/jabref#9149 might be related to problem 1.

If I understood correctly, bibtex uses both fields institution and school independently, while biblatex only has institution and uses school as an alias for institution (see also JabRef/jabref#9149 (comment)). Maybe that's where the confusion comes from.

Anyways, the solution they are suggesting is to use only one of the two fields.

Workaround is just using one of the two. It will be valid for both cases because the fields resolving works bidirectional.

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

No branches or pull requests

2 participants