JabRef / jabref

Graphical Java application for managing BibTeX and biblatex (.bib) databases
https://devdocs.jabref.org
MIT License
3.62k stars 2.58k forks source link

Accept changes should also update the entry editor #8901

Open koppor opened 2 years ago

koppor commented 2 years ago

JabRef version

Latest development branch build (please note build date below)

Operating system

Windows

Details on version and operating system

No response

Checked with the latest development build

Steps to reproduce the behaviour

  1. Create .bib file:

    @MastersThesis{,
      file     = {:paper.pdf:PDF},
      groups   = {groupOne},
      keywords = {def},
    }
    
    @InBook{,
      author   = {Author Test},
      comment  = {comment by oliver},
      groups   = {groupTwo},
      keywords = {abc},
    }
    
    @Book{Maindonald2010,
      author    = {Maindonald, J. H.},
      date      = {2010},
      title     = {Data analysis and graphics using R},
      isbn      = {9780521762939},
      publisher = {Cambridge University Press},
      subtitle  = {an example-based approach},
    }
    
    @Comment{jabref-meta: databaseType:biblatex;}
    
    @Comment{jabref-meta: fileDirectory-koppor-DESKTOP-KAK953S:c:\\temp;}
  2. Open test.bib in JabRef

  3. Double click on "InBook" to have the entry editor opened

  4. Change the bib file to in a text editor

    @MastersThesis{,
      file     = {:paper.pdf:PDF},
      groups   = {groupOne},
      keywords = {def},
    }
    
    @InBook{,
      author   = {Author Test and others},
      comment  = {comment by oliver},
      groups   = {groupTwo},
      keywords = {abc},
    }
    
    @Book{Maindonald2010,
      author    = {Maindonald, J. H.},
      date      = {2010},
      title     = {Data analysis and graphics using R},
      isbn      = {9780521762939},
      publisher = {Cambridge University Press},
      subtitle  = {an example-based approach},
    }
    
    @Comment{jabref-meta: databaseType:biblatex;}
    
    @Comment{jabref-meta: fileDirectory-koppor-DESKTOP-KAK953S:c:\\temp;}
  5. Save

  6. JabRef says "The library has been modified by another program"

  7. Click "Review changes"

  8. Select "Author Test and others"

  9. Select "Accept changes"

  10. Expected: Entry editor updates

Actual behavior: Entry editor does not update. After save, the external changes on the entry are lost

Appendix

No response

ThiloteE commented 2 years ago

To do: