| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| private static final String | |
| private final ImporterPreferences | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private Optional | Returns: Optional containing the constructed URL, or empty if construction failedThe custom or default base URL baseUrl, String The fallback default URL defaultUrl, String The title to search for title, @Nullable String Optional author to include in search (null if not present) author, String Name of the service for logging serviceName, boolean addAuthorIndex)Builds a search URL using either template replacement or query parameters |
| private Optional | |
| public Optional | Returns: The URL if it was successfully createdThe entry to search for. Expects the BibEntry's title to be set for a successful return. entry)Get a URL to the search results of Google Scholar for the BibEntry's title |
| public Optional | Returns: The URL if it was successfully createdThe entry to search for. Expects the BibEntry's title to be set for a successful return. entry)Get a URL to the search results of Semantic Scholar for the BibEntry's title |
| public Optional | Returns: The URL if it was successfully createdThe entry to search for. Expects the BibEntry's title to be set for a successful return. entry)Get a URL to the search results of ShortScience for the BibEntry's title |
| DEFAULT_GOOGLE_SCHOLAR_SEARCH_URL | back to summary |
|---|---|
| private static final String DEFAULT_GOOGLE_SCHOLAR_SEARCH_URL | |
| DEFAULT_SEMANTIC_SCHOLAR_SEARCH_URL | back to summary |
|---|---|
| private static final String DEFAULT_SEMANTIC_SCHOLAR_SEARCH_URL | |
| DEFAULT_SHORTSCIENCE_SEARCH_URL | back to summary |
|---|---|
| private static final String DEFAULT_SHORTSCIENCE_SEARCH_URL | |
| importerPreferences | back to summary |
|---|---|
| private final ImporterPreferences importerPreferences | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| ExternalLinkCreator | back to summary |
|---|---|
| public ExternalLinkCreator(ImporterPreferences importerPreferences) | |
| buildSearchUrl | back to summary |
|---|---|
| private Optional Builds a search URL using either template replacement or query parameters
| |
| buildUrlWithQueryParams | back to summary |
|---|---|
| private Optional Builds a URL using query parameters (fallback method). The parameter addAuthorIndex is used for Semantic Scholar service because it does not understand "author=XYZ", but it uses "author | |
| getGoogleScholarSearchURL | back to summary |
|---|---|
| public Optional Get a URL to the search results of Google Scholar for the BibEntry's title | |
| getSemanticScholarSearchURL | back to summary |
|---|---|
| public Optional Get a URL to the search results of Semantic Scholar for the BibEntry's title | |
| getShortScienceSearchURL | back to summary |
|---|---|
| public Optional Get a URL to the search results of ShortScience for the BibEntry's title | |