Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.importer.fetcher

public Class DoiResolution

extends Object
implements FulltextFetcher
Class Inheritance
All Implemented Interfaces
org.jabref.logic.importer.FulltextFetcher
Imports
java.io.IOException, java.net.MalformedURLException, .URI, .URISyntaxException, .URL, java.util.ArrayList, .List, .Locale, .Optional, org.jabref.logic.importer.FulltextFetcher, org.jabref.logic.net.URLDownload, org.jabref.logic.preferences.DOIPreferences, org.jabref.logic.util.URLUtil, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.StandardField, org.jabref.model.entry.identifier.DOI, org.jsoup.Connection, .Jsoup, .UnsupportedMimeTypeException, org.jsoup.nodes.Document, .Element, org.jsoup.select.Elements, org.jspecify.annotations.NonNull, org.slf4j.Logger, .LoggerFactory

FulltextFetcher implementation that follows the DOI resolution redirects and scans for a full-text PDF URL.

Note that we also have custom fetchers in place. See org.jabref.logic.importer.WebFetchers#getFullTextFetchers(org.jabref.logic.importer.ImportFormatPreferences, org.jabref.logic.importer.ImporterPreferences).

Field Summary

Modifier and TypeField and Description
private final DOIPreferences
private static final Logger

Constructor Summary

AccessConstructor and Description
public
DoiResolution(DOIPreferences doiPreferences)

Method Summary

Modifier and TypeMethod and Description
private Optional<URL>
citationMetaTag(Document html)

Scan for <meta name="citation_pdf_url">.

public Optional<URL>
pack-priv Optional<URL>
findPdfLinkInAnchors(Document html)

Scan the page's <a href> anchors for a single PDF link.

public TrustLevel
getTrustLevel()

Implements org.jabref.logic.importer.FulltextFetcher.getTrustLevel.

Returns the level of trust for this fetcher.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

doiPreferencesback to summary
private final DOIPreferences doiPreferences
LOGGERback to summary
private static final Logger LOGGER

Constructor Detail

DoiResolutionback to summary
public DoiResolution(DOIPreferences doiPreferences)

Method Detail

citationMetaTagback to summary
private Optional<URL> citationMetaTag(Document html)

Scan for <meta name="citation_pdf_url">. See https://scholar.google.com/intl/de/scholar/inclusion.html#indexing

findFullTextback to summary
public Optional<URL> findFullText(@NonNull BibEntry entry) throws IOException
Annotations
@Override
findPdfLinkInAnchorsback to summary
pack-priv Optional<URL> findPdfLinkInAnchors(Document html) throws MalformedURLException

Scan the page's <a href> anchors for a single PDF link. Package-private for testing the parsing/selection without a live fetch.

getTrustLevelback to summary
public TrustLevel getTrustLevel()

Implements org.jabref.logic.importer.FulltextFetcher.getTrustLevel.

Doc from org.jabref.logic.importer.FulltextFetcher.getTrustLevel.

Returns the level of trust for this fetcher. We distinguish between publishers and meta search engines for example.

Annotations
@Override