public class JSTORFetcher2 extends java.lang.Object implements EntryFetcher
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
CANCELLED |
protected static java.util.regex.Pattern |
idPattern |
protected static java.lang.String |
JSTOR_URL |
protected static int |
MAX_PAGES_TO_LOAD |
protected static int |
MAX_REFS |
protected static java.util.regex.Pattern |
nextPagePattern |
protected boolean |
noAccessFound |
protected static java.lang.String |
noAccessIndicator |
protected static java.util.regex.Pattern |
numberofhits |
protected static int |
REFS_PER_PAGE |
protected static java.lang.String |
SEARCH_URL |
protected static java.lang.String |
SEARCH_URL_END |
protected static java.lang.String |
SINGLE_CIT_ENC |
protected boolean |
stopFetching |
| Constructor and Description |
|---|
JSTORFetcher2() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<java.lang.String> |
getCitations(java.lang.String query,
ImportInspector dialog,
OutputPrinter status) |
protected java.lang.String |
getCitationsFromUrl(java.lang.String urlQuery,
java.util.List<java.lang.String> ids,
int count,
java.lang.String[] numberOfRefs,
ImportInspector dialog,
OutputPrinter status) |
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.
|
protected BibtexEntry |
getSingleCitation(java.lang.String cit) |
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 final java.lang.String CANCELLED
protected static int MAX_PAGES_TO_LOAD
protected static int MAX_REFS
protected static int REFS_PER_PAGE
protected static final java.lang.String JSTOR_URL
protected static final java.lang.String SEARCH_URL
protected static final java.lang.String SEARCH_URL_END
protected static final java.lang.String SINGLE_CIT_ENC
protected static final java.util.regex.Pattern idPattern
protected static final java.util.regex.Pattern numberofhits
protected static final java.util.regex.Pattern nextPagePattern
protected static final java.lang.String noAccessIndicator
protected boolean stopFetching
protected boolean noAccessFound
public java.lang.String getHelpPage()
EntryFetchergetHelpPage in interface EntryFetcherpublic java.net.URL getIcon()
EntryFetchergetIcon in interface EntryFetcherpublic java.lang.String getKeyName()
EntryFetchergetKeyName in interface EntryFetcherpublic javax.swing.JPanel getOptionsPanel()
EntryFetchergetOptionsPanel in interface EntryFetcherpublic java.lang.String getTitle()
EntryFetchergetTitle in interface EntryFetcherpublic void stopFetching()
ImportInspectionDialog.CallBackstopFetching in interface ImportInspectionDialog.CallBackpublic boolean processQuery(java.lang.String query,
ImportInspector dialog,
OutputPrinter status)
EntryFetcherprocessQuery in interface EntryFetcherquery - 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,
ImportInspector dialog,
OutputPrinter status)
throws java.io.IOException
query - The search term to query JStor for.java.io.IOExceptionprotected java.lang.String getCitationsFromUrl(java.lang.String urlQuery,
java.util.List<java.lang.String> ids,
int count,
java.lang.String[] numberOfRefs,
ImportInspector dialog,
OutputPrinter status)
throws java.io.IOException
java.io.IOExceptionprotected BibtexEntry getSingleCitation(java.lang.String cit)