Skip to content

Commit

Permalink
Add some links into the code (#12030)
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor authored Oct 19, 2024
1 parent aa1fa0b commit 0d46700
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
*/
public class FetchAndMergeEntry {

// All identifiers listed here should also appear at {@link org.jabref.logic.importer.CompositeIdFetcher#performSearchById}
public static List<Field> SUPPORTED_FIELDS = Arrays.asList(StandardField.DOI, StandardField.EPRINT, StandardField.ISBN);

private static final Logger LOGGER = LoggerFactory.getLogger(FetchAndMergeEntry.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public CompositeIdFetcher(ImportFormatPreferences importFormatPreferences) {
}

public Optional<BibEntry> performSearchById(String identifier) throws FetcherException {
// All identifiers listed here should also be appear at {@link org.jabref.gui.mergeentries.FetchAndMergeEntry.SUPPORTED_FIELDS} and vice versa.

Optional<DOI> doi = DOI.findInText(identifier);
if (doi.isPresent()) {
return new DoiFetcher(importFormatPreferences).performSearchById(doi.get().getNormalized());
Expand Down

0 comments on commit 0d46700

Please sign in to comment.