| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| public static final String | |
| private final ImporterPreferences | |
| private final ImportFormatPreferences |
| Access | Constructor and Description |
|---|---|
| public | AstrophysicsDataSystem(@NonNull ImportFormatPreferences importFormatPreferences, ImporterPreferences importerPreferences)
|
| Modifier and Type | Method and Description |
|---|---|
| private static String | buildPostData(Collection<String>
collection of bibcodes for which a JSON object should be created bibcodes)
|
| private URL | |
| public void | doPostCleanup(BibEntry entry)
Overrides default org. Performs a cleanup of the fetched entry. |
| private List | fetchBibcodes(URL
search ul for which bibcode will be returned url)Returns: list of bibcodes matching the search request. |
| public String | getName()
Implements org. Returns the localized name of this fetcher. |
| public Parser | getParser()
Implements org. Returns the parser used to convert the response to a list of |
| public URLDownload | getUrlDownload(URL url)
Overrides default org. Constructs an |
| public URL | Returns: URL which points to a search request for given entryBibEntry for which a search URL is created entry)Implements org. Constructs a URL based on the |
| private static URL | |
| public URL | Returns: URL which points to a search URL for given identifierbibcode or doi for which a search URL is created identifier)Implements org. Constructs a URL based on the query. |
| public URL | Returns: URL which points to a search request for given querythe list that contains the parsed nodes queryList, int pageNumber)Implements org. Constructs a URL based on the query, size and page number. |
| public Page | performRawSearchQueryPaged(String rawQuery, int pageNumber)
Overrides default org. Default implementation: builds the URL via |
| public List | performSearch(@NonNull BibEntry entry)
Implements org. Looks for hits which are matched by the given |
| public List | performSearch(BaseQueryNode queryList)
Overrides default org. This method is used to send queries with advanced URL parameters. |
| public Optional | performSearchById(String identifier)
Overrides default org. Looks for bibliographic information associated to the given identifier. |
| private List | performSearchByIds(Collection<String>
bibcodes for which bibentries should be fetched identifiers)Returns: list of bibentries matching the bibcodes. |
| public Page | performSearchPaged(BaseQueryNode queryList, int pageNumber)
Overrides default org.
|
| API_EXPORT_URL | back to summary |
|---|---|
| private static final String API_EXPORT_URL | |
| API_SEARCH_URL | back to summary |
|---|---|
| private static final String API_SEARCH_URL | |
| FETCHER_NAME | back to summary |
|---|---|
| public static final String FETCHER_NAME | |
| importerPreferences | back to summary |
|---|---|
| private final ImporterPreferences importerPreferences | |
| importFormatPreferences | back to summary |
|---|---|
| private final ImportFormatPreferences importFormatPreferences | |
| AstrophysicsDataSystem | back to summary |
|---|---|
| public AstrophysicsDataSystem(@NonNull ImportFormatPreferences importFormatPreferences, ImporterPreferences importerPreferences) | |
| buildPostData | back to summary |
|---|---|
private static String buildPostData(Collection<String> bibcodes)
| |
| buildSearchURL | back to summary |
|---|---|
| private URL buildSearchURL(String query, int pageNumber) throws URISyntaxException, MalformedURLException | |
| doPostCleanup | back to summary |
|---|---|
| public void doPostCleanup(BibEntry entry) Overrides default org. Doc from org. 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 By default, no cleanup is done.
| |
| fetchBibcodes | back to summary |
|---|---|
| private List | |
| getName | back to summary |
|---|---|
| public String getName() Implements org. Doc from org. Returns the localized name of this fetcher. The title can be used to display the fetcher in the menu and in the side pane. Todo This name is also used for identifying the fetcher in preferences for API keys. Thus, any switch of the language will "remove" API keys.
| |
| getParser | back to summary |
|---|---|
| public Parser getParser() Implements org. Doc from org. Returns the parser used to convert the response to a list of
| |
| getUrlDownload | back to summary |
|---|---|
| public URLDownload getUrlDownload(URL url) Overrides default org. Doc from org. Constructs an
| |
| getURLForEntry | back to summary |
|---|---|
| public URL getURLForEntry(BibEntry entry) throws URISyntaxException, MalformedURLException Implements org. Doc from org. Constructs a URL based on the | |
| getUrlForExport | back to summary |
|---|---|
private static URL getUrlForExport() throws URISyntaxException, MalformedURLException
| |
| getUrlForIdentifier | back to summary |
|---|---|
| public URL getUrlForIdentifier(String identifier) throws URISyntaxException, MalformedURLException Implements org. Doc from org. Constructs a URL based on the query. | |
| getURLForQuery | back to summary |
|---|---|
| public URL getURLForQuery(BaseQueryNode queryList, int pageNumber) throws URISyntaxException, MalformedURLException Implements org. Doc from org. Constructs a URL based on the query, size and page number.
| |
| performRawSearchQueryPaged | back to summary |
|---|---|
| public Page Overrides default org. Doc from org. Default implementation: builds the URL via
| |
| performSearch | back to summary |
|---|---|
| public List Implements org. Doc from org. Looks for hits which are matched by the given
| |
| performSearch | back to summary |
|---|---|
| public List Overrides default org. Doc from org. This method is used to send queries with advanced URL parameters. This method is necessary as the performSearch method does not support certain URL parameters that are used for fielded search, such as a title, author, or year parameter.
| |
| performSearchById | back to summary |
|---|---|
| public Optional Overrides default org. Doc from org. Looks for bibliographic information associated to the given identifier.
| |
| performSearchByIds | back to summary |
|---|---|
private List
| |
| performSearchPaged | back to summary |
|---|---|
| public Page Overrides default org.
| |