Skip to content

Commit

Permalink
Remove "Lookup DOI" as it does not work at JabRef 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor committed Dec 7, 2016
1 parent 52e4b22 commit ca49873
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,6 @@ public static Optional<JComponent> getDoiExtraComponent(BasePanel panel, EntryEd
panel.output(Localization.lang("Unable to open link."));
}
});
// lookup doi
JButton doiButton = new JButton(Localization.lang("Lookup DOI"));
doiButton.addActionListener(actionEvent -> {
Optional<DOI> doi = DOI.fromBibEntry(entryEditor.getEntry());
if (doi.isPresent()) {
entryEditor.getEntry().setField(FieldName.DOI, doi.get().getDOI());
} else {
panel.frame().setStatus(Localization.lang("No %0 found", FieldName.getDisplayName(FieldName.DOI)));
}
});
// fetch bibtex data
JButton fetchButton = new JButton(
Localization.lang("Get BibTeX data from %0", FieldName.getDisplayName(FieldName.DOI)));
Expand All @@ -188,7 +178,6 @@ public static Optional<JComponent> getDoiExtraComponent(BasePanel panel, EntryEd
});

controls.add(button, BorderLayout.NORTH);
controls.add(doiButton, BorderLayout.CENTER);
controls.add(fetchButton, BorderLayout.SOUTH);

// enable/disable button
Expand Down

0 comments on commit ca49873

Please sign in to comment.