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, .Objects, .Optional, java.util.stream.Collectors, org.jabref.logic.importer.FulltextFetcher, .ImportFormatPreferences, .ImporterPreferences, .WebFetchers, org.jabref.logic.net.URLDownload, org.jabref.logic.preferences.DOIPreferences, 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.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 WebFetchers#getFullTextFetchers(ImportFormatPreferences, 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>
findFullText(BibEntry
The Bibtex entry
entry
)

Implements org.jabref.logic.importer.FulltextFetcher.findFullText.

Tries to find a fulltext URL for a given BibTex entry.

public TrustLevel
getTrustLevel()

Overrides default 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 Also
https://scholar.google.com/intl/de/scholar/inclusion.html#indexing
findFullTextback to summary
public Optional<URL> findFullText(BibEntry entry) throws IOException

Implements org.jabref.logic.importer.FulltextFetcher.findFullText.

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

Tries to find a fulltext URL for a given BibTex entry.

Parameters
entry:BibEntry

The Bibtex entry

Returns:Optional<URL>

The fulltext PDF URL Optional, if found, or an empty Optional if not found.

Annotations
@Override
Exceptions
IOException:
if an IO operation has failed
getTrustLevelback to summary
public TrustLevel getTrustLevel()

Overrides default 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.

Returns:TrustLevel

The trust level of the fetcher, the higher the better

Annotations
@Override