Bug 457499 - No doi or url fields available in Edit Element window, but not allowed to create doi or url fields in Other Fields tab
Summary: No doi or url fields available in Edit Element window, but not allowed to cre...
Status: RESOLVED NOT A BUG
Alias: None
Product: KBibTeX
Classification: Applications
Component: User interface (show other bugs)
Version: 0.9.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Thomas Fischer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-08-04 23:08 UTC by neuroshock
Modified: 2022-10-22 01:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Message widget explain where to put DOI and URL (14.11 KB, image/png)
2022-10-21 21:29 UTC, Thomas Fischer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description neuroshock 2022-08-04 23:08:05 UTC
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.
Comment 1 Thomas Fischer 2022-10-17 20:00:27 UTC
> 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?
Comment 2 neuroshock 2022-10-18 04:00:08 UTC
(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!
Comment 3 Thomas Fischer 2022-10-21 21:28:31 UTC
> 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.
Comment 4 Thomas Fischer 2022-10-21 21:29:14 UTC
Created attachment 153103 [details]
Message widget explain where to put DOI and URL
Comment 5 neuroshock 2022-10-22 01:36:26 UTC
This answers all my questions. Thanks for resolving this bug. Looking forward to 0.10!