public class ScienceDirectFetcher extends java.lang.Object implements EntryFetcher
Modifier and Type | Field and Description |
---|---|
protected static java.util.regex.Pattern |
linkPattern |
protected static java.lang.String |
linkPrefix |
protected static int |
MAX_PAGES_TO_LOAD |
protected static java.util.regex.Pattern |
nextPagePattern |
protected boolean |
noAccessFound |
protected static java.lang.String |
SEARCH_URL |
protected boolean |
stopFetching |
protected static java.lang.String |
WEBSITE_URL |
Constructor and Description |
---|
ScienceDirectFetcher() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<java.lang.String> |
getCitations(java.lang.String query) |
protected java.lang.String |
getCitationsFromUrl(java.lang.String urlQuery,
java.util.List<java.lang.String> ids) |
java.lang.String |
getHelpPage()
Get the name of the help page for this activeFetcher.
|
java.net.URL |
getIcon()
Get the appropriate icon URL for this activeFetcher.
|
java.lang.String |
getKeyName()
Get the name of the key binding for this activeFetcher, if any.
|
javax.swing.JPanel |
getOptionsPanel()
If this activeFetcher requires additional options, a panel for setting up these
should be returned in a JPanel by this method.
|
java.lang.String |
getTitle()
The title for this activeFetcher, displayed in the menu and in the side pane.
|
boolean |
processQuery(java.lang.String query,
ImportInspector dialog,
OutputPrinter status)
Handle a query entered by the user.
|
void |
stopFetching()
This method is called by the dialog when the user has cancelled or
signalled a stop.
|
protected static int MAX_PAGES_TO_LOAD
protected static final java.lang.String WEBSITE_URL
protected static final java.lang.String SEARCH_URL
protected static final java.lang.String linkPrefix
protected static final java.util.regex.Pattern linkPattern
protected static final java.util.regex.Pattern nextPagePattern
protected boolean stopFetching
protected boolean noAccessFound
public java.lang.String getHelpPage()
EntryFetcher
getHelpPage
in interface EntryFetcher
public java.net.URL getIcon()
EntryFetcher
getIcon
in interface EntryFetcher
public java.lang.String getKeyName()
EntryFetcher
getKeyName
in interface EntryFetcher
public javax.swing.JPanel getOptionsPanel()
EntryFetcher
getOptionsPanel
in interface EntryFetcher
public java.lang.String getTitle()
EntryFetcher
getTitle
in interface EntryFetcher
public void stopFetching()
ImportInspectionDialog.CallBack
stopFetching
in interface ImportInspectionDialog.CallBack
public boolean processQuery(java.lang.String query, ImportInspector dialog, OutputPrinter status)
EntryFetcher
processQuery
in interface EntryFetcher
query
- The query text.dialog
- The dialog to add imported entries to.status
- An OutputPrinter passed to the activeFetcher for reporting about the
status of the fetching.protected java.util.List<java.lang.String> getCitations(java.lang.String query) throws java.io.IOException
query
- The search term to query JStor for.java.io.IOException
protected java.lang.String getCitationsFromUrl(java.lang.String urlQuery, java.util.List<java.lang.String> ids) throws java.io.IOException
java.io.IOException