Top Description Fields Constructors Methods
org.jabref.logic.importer.fetcher.isbntobibtex

public Class DoiToBibtexConverterComIsbnFetcher

extends AbstractIsbnFetcher
Class Inheritance
Imports
java.net.MalformedURLException, .URISyntaxException, .URL, java.util.Collections, .List, java.util.stream.IntStream, .Stream, org.jabref.logic.importer.FetcherException, .ImportFormatPreferences, .ParseException, .Parser, org.jabref.logic.importer.fetcher.AbstractIsbnFetcher, org.jabref.logic.importer.util.JsonReader, org.jabref.model.entry.BibEntry, org.jabref.model.entry.field.StandardField, org.jabref.model.entry.types.StandardEntryType, org.jabref.model.strings.StringUtil, kong.unirest.core.json.JSONArray, kong.unirest.core.json.JSONException, kong.unirest.core.json.JSONObject, org.apache.hc.core5.net.URIBuilder

Fetcher for ISBN using doi-to-bibtex-converter.herokuapp.

Field Summary

Modifier and TypeField and Description
private static final String
Inherited from org.jabref.logic.importer.fetcher.AbstractIsbnFetcher:
importFormatPreferences

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
doPostCleanup(BibEntry
the entry to be cleaned-up
entry
)

Overrides default org.jabref.logic.importer.ParserFetcher.doPostCleanup.

Performs a cleanup of the fetched entry.

private StandardEntryType
private String
getElementFromJSONArrayByKey(kong.unirest.core.json.JSONArray jsonArray, String key)

public String
getName()

Implements org.jabref.logic.importer.WebFetcher.getName.

Returns the localized name of this fetcher.

public Parser
public URL
getUrlForIdentifier(String
the ID
identifier
)

Implements org.jabref.logic.importer.IdBasedParserFetcher.getUrlForIdentifier.

Constructs a URL based on the query.

private BibEntry
jsonItemToBibEntry(kong.unirest.core.json.JSONObject item)

Inherited from org.jabref.logic.importer.fetcher.AbstractIsbnFetcher:
ensureThatIsbnIsValidgetHelpPage

Field Detail

BASE_URLback to summary
private static final String BASE_URL

Constructor Detail

DoiToBibtexConverterComIsbnFetcherback to summary
public DoiToBibtexConverterComIsbnFetcher(ImportFormatPreferences importFormatPreferences)

Method Detail

doPostCleanupback to summary
public void doPostCleanup(BibEntry entry)

Overrides default org.jabref.logic.importer.ParserFetcher.doPostCleanup.

Doc from org.jabref.logic.importer.ParserFetcher.doPostCleanup.

Performs a cleanup of the fetched entry.

Only systematic errors of the fetcher should be corrected here (i.e. if information is consistently contained in the wrong field or the wrong format) but not cosmetic issues which may depend on the user's taste (for example, LateX code vs HTML in the abstract).

Try to reuse existing Formatter for the cleanup. For example, new FieldFormatterCleanup(StandardField.TITLE, new RemoveBracesFormatter()).cleanup(entry);

By default, no cleanup is done.

Parameters
entry:BibEntry

the entry to be cleaned-up

Annotations
@Override
evaluateBibEntryTypeFromStringback to summary
private StandardEntryType evaluateBibEntryTypeFromString(String type)
getElementFromJSONArrayByKeyback to summary
private String getElementFromJSONArrayByKey(kong.unirest.core.json.JSONArray jsonArray, String key)
getNameback to summary
public String getName()

Implements org.jabref.logic.importer.WebFetcher.getName.

Doc from org.jabref.logic.importer.WebFetcher.getName.

Returns the localized name of this fetcher. The title can be used to display the fetcher in the menu and in the side pane.

Returns:String

the localized name

Annotations
@Override
getParserback to summary
public Parser getParser()

Overrides org.jabref.logic.importer.fetcher.AbstractIsbnFetcher.getParser.

Implements org.jabref.logic.importer.IdBasedParserFetcher.getParser.

Doc from org.jabref.logic.importer.IdBasedParserFetcher.getParser.

Returns the parser used to convert the response to a list of BibEntry.

Annotations
@Override
getUrlForIdentifierback to summary
public URL getUrlForIdentifier(String identifier) throws URISyntaxException, MalformedURLException, FetcherException

Implements org.jabref.logic.importer.IdBasedParserFetcher.getUrlForIdentifier.

Doc from org.jabref.logic.importer.IdBasedParserFetcher.getUrlForIdentifier.

Constructs a URL based on the query.

Parameters
identifier:String

the ID

Annotations
@Override
jsonItemToBibEntryback to summary
private BibEntry jsonItemToBibEntry(kong.unirest.core.json.JSONObject item) throws ParseException