| Summary: | No doi or url fields available in Edit Element window, but not allowed to create doi or url fields in Other Fields tab | ||
|---|---|---|---|
| Product: | [Applications] KBibTeX | Reporter: | neuroshock |
| Component: | User interface | Assignee: | Thomas Fischer <fischer> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 0.9.2 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | Message widget explain where to put DOI and URL | ||
|
Description
neuroshock
2022-08-04 23:08:05 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?
(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! |