Skip to content

Add button to shorten the DOI #13639

@koppor

Description

@koppor

JabRef renders the DOI in General -> DOI - Example DOI: 10.1038/ejcn.2011.64

Image

(See this: Open JabRef -> "New example library" -> "Tokede_2011")

JabRef allows to shorten the doi using the cleanup dialog: (Quality -> cleanup entries)

Image

Result:

10/bt29n7

Although this is technically OK, there should be a better way: A button "shorten" at the DOI editor

Image

Task:

  1. Copy IdentifierEditor.fxml to DoiIdentifierEditor.fxml
  2. Add button "shortenDoi" (you need to find a nice glyph)
  3. Copy IdentifierEditor.java to new package org.jabref.gui.fieldeditors.identifier.doi to DoiEditor
  4. Move DoiIdentifierEditorViewModel to the new package
  5. Remove doi logic from org.jabref.gui.fieldeditors.identifier.IdentifierEditor
  6. Adapt DoiEditor to contain the new button w/ the shortDoi functionality7. Add an if at org.jabref.gui.fieldeditors.FieldEditors#getForField before fieldProperties.contains(FieldProperty.IDENTIFIER to return the DoiEditor

Metadata

Metadata

Type

No fields configured for task.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions