jabref
jabref copied to clipboard
"Crossref" field should also work if Autocomplete is disabled
JabRef version
Latest development branch build (please note build date below)
Operating system
Windows
Details on version and operating system
Windows 11 Pro (build 22471) | JabRef 5.4--2021-10-11--2e71d5f
Checked with the latest development build
- [X] I made a backup of my libraries before testing the latest development version.
- [X] I have tested the latest development version and the problem persists
Steps to reproduce the behaviour
- Enter a citekey (in my case an "mvBook") of the parent entry in the crossref field
- The BibLaTeX source doesn't show the crossref line.
- After closing JabRef and reopening, the crossref input field is also empty again.
Appendix
...
Log File
`It seems nothing is being logged `
You need to have Autcompletion enable for crossref: I guess this is disabled
In the preferences -> Entry Editor -> Use autcompletion
Thank you for you quick reply. Autocomplete solved the problem, just like you said!
However, I think it's weird that the crossref feature doesn't work out of the box. Furthermore it would be nice if the preview layout was also updated according to the merged parent/child entries.
I changed the title and marked it as feature. Regarding the entry preview see #7378
I would suggest a separate preference to enable crossref because of severe performance issues of autocompletion when it comes to large databases. See #6967. And of course, it should work if autocomplete is enabled.
For anyone wanting so solve this, have a look at FieldEditors in combination with SuggestionProviders
Hi @Siedlerchr I need some brainstorming about this issue. I am requesting some suggestions for it.
StandardField.Crossref has a Field property called SINGLE_ENTRY_LINK, in FieldEditors the getSuggestionProvider is called and the value (the thing which handles the autocomplete) is then passed down to the field type editor If you follow the trail where the suggestion Provider originally comes from FieldsEditor > FieldsEditorTab > Entry Editor -> LIbraryTab -> setupAutocomplete
Inside SuggestionProvider class there is this isEmpty check. Here you would need to add a check for the SingleLink or MultipleLink property or CrossRef field I would suggest just checking the field type to allow all possible link fields to work.
Autocompletion is controlled by AutocompletePreferences
@Siedlerchr Can you please review my changes? I have created a PR to resolve this issue.