SUMMARY The doi and url fields are not available in any of the tabs in the New Element / Edit Element window. But it's also not possible to add them using the Other Fields tab. Instead, they have to be created manually every time in the source tab. STEPS TO REPRODUCE 1. Click the New Element button. 2. Click the Other Fields tab. 3. Try typing in doi or url in the Name textbox. OBSERVED RESULT The +Add button becomes inactive and gray. If you change doi to, e.g., doii, then the +Add button becomes active again. EXPECTED RESULT The +Add button show remain active. SOFTWARE/OS VERSIONS Fedora Linux 36 Workstation, running Gnome 42.3 ADDITIONAL INFORMATION The fact that the +Add button goes gray seems to indicate that KBibTex knows that the doi and url fields are special. But they're not available among all the other fields in the other tabs of the New Element / Edit Element window.
> The fact that the +Add button goes gray seems to indicate that KBibTex knows > that the doi and url fields are special. But they're not available among all > the other fields in the other tabs of the New Element / Edit Element window. URLs and DOIs go into the "External" tab, where you add a new line with +Add, then enter or paste the DOI or URL you want to have. Does this solve your problem?
(In reply to Thomas Fischer from comment #1) > > The fact that the +Add button goes gray seems to indicate that KBibTex knows > > that the doi and url fields are special. But they're not available among all > > the other fields in the other tabs of the New Element / Edit Element window. > URLs and DOIs go into the "External" tab, where you add a new line with > +Add, then enter or paste the DOI or URL you want to have. > Does this solve your problem? This does solve the problem! I didn't realize that DOIs and URLs should go in the External tab, or that simply typing in a DOI or a URL was automatically recognized for what it was, and included in the source as doi = "..." and url = "...". Is this documented somewhere? Are there other formats that External automatically recognizes? Thanks again!
> This does solve the problem! I didn't realize that DOIs and URLs should go > in the External tab, or that simply typing in a DOI or a URL was > automatically recognized for what it was, and included in the source as doi > = "..." and url = "...". You are not the first who had this problem. Starting from KBibTeX 0.10, there will a message widget explaining where to put URLs and DOIs. > Is this documented somewhere? Are there other > formats that External automatically recognizes? Thanks again! Well, it is documented in code. - Every field that starts with "postscript", "localfile", "file", "url", "doi", "ee", or "biburl" goes into the External list. - Writing back to BibTeX code: src/gui/element/elementwidget.cpp, function FilesWidget::apply(..). Using regular expressions, it will check if the user's input looks like a DOI or a URL, respectively, and treat everything else as a local file's name.
Created attachment 153103 [details] Message widget explain where to put DOI and URL
This answers all my questions. Thanks for resolving this bug. Looking forward to 0.10!