When an entry is created using a PDF (by drag'n'drop on the main table - either at the free space or between two lines), the path of the linked PDF is stored as absolute path, but not relative. This needs to be fixed.
Implementation hint: There is functionality inside JabRef to make a path relative. It "just" needs to be found and wired correctly into that drop handling
Pre condition
Setting that files are stored relative to library file location.

Details

Example PDF: IST2015.pdf
Created BibTeX:
@TechReport{Steinmachera2014,
author = {Igor Steinmachera and b and Marco Aurelio Graciotto Silvaa and Marco Aurelio Gerosab and David F. Redmilesc},
title = {A systematic literature review on the barriers faced by newcomers to open source software projects},
year = {2014},
number = {on},
file = {:C\:/Users/olive/OneDrive/Präsentationen/TUG 2023/JabRef/TUG 2023/demo/IST2015.pdf:PDF},
keywords = {Open Source Software, Software Engineering, Newcomers, Beginners, Novices, Joining, Contribution, Barriers to Entry, Onboarding, Open Collaboration, Socialization, Systematic Literature Review},
}
See that the content of file has an absolute path. That should be relative.
Follow-up issue
The newly created entry is not added to the currently selected group. When working on this, please also try to fix this.
Other places where drag'n'drop works correctly
- Dropping a file onto a line in the main table (leads to attachment instead of creation)
- Dropping a file into the "file" field in the entry editor (leads to attachment instead of creation)
- Dropping a file into the entry preview (leads to attachment instead of creation)
When an entry is created using a PDF (by drag'n'drop on the main table - either at the free space or between two lines), the path of the linked PDF is stored as absolute path, but not relative. This needs to be fixed.
Implementation hint: There is functionality inside JabRef to make a path relative. It "just" needs to be found and wired correctly into that drop handling
Pre condition
Setting that files are stored relative to library file location.
Details
Example PDF: IST2015.pdf
Created BibTeX:
See that the content of
filehas an absolute path. That should be relative.Follow-up issue
The newly created entry is not added to the currently selected group. When working on this, please also try to fix this.
Other places where drag'n'drop works correctly