Skip to content

Add "DOI" and URL to entry preview #14193

@koppor

Description

@koppor

Current customized preview:

Image

DOI gets more and more important.

In the preferences, one can customize the entry preview:

Image

Quick hack to adapt the DOI:

\begin{doi}<BR>doi <a href="https://doi.org/\format[DOIStrip]{\doi}">\format[DOIStrip]{\doi}</a>\end{doi}
\begin{url}<BR>doi <a href="\url">\url</a>\end{url}

Then, the preview renders as follows:

Image
  1. Adapt org.jabref.migrations.PreferencesMigrations#upgradePreviewStyle to include the above patch. Only do it, if \end[doi} (newline) is followed by \begin{abstract}. You will need to add testcases here.
  2. Adapt the default preview style in org.jabref.gui.preferences.JabRefGuiPreferences#JabRefGuiPreferences

Background material: https://docs.jabref.org/setup/preview and then https://docs.jabref.org/collaborative-work/export/customexports.

Metadata

Metadata

Assignees

Labels

component: entry-previewgood first issueAn issue intended for project-newcomers. Varies in difficulty.📍 AssignedAssigned by assign-issue-action (or manually assigned)

Type

Projects

Status

Assigned

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions