public class GoogleScholarFetcher extends java.lang.Object implements PreviewEntryFetcher
| Modifier and Type | Field and Description |
|---|---|
protected java.util.HashMap<java.lang.String,java.lang.String> |
entryLinks |
protected static int |
MAX_ENTRIES_TO_LOAD |
protected boolean |
stopFetching |
| Constructor and Description |
|---|
GoogleScholarFetcher() |
| Modifier and Type | Method and Description |
|---|---|
protected BibtexEntry |
downloadEntry(java.lang.String link) |
protected java.util.Map<java.lang.String,javax.swing.JLabel> |
getCitations(java.lang.String query) |
protected java.lang.String |
getCitationsFromUrl(java.lang.String urlQuery,
java.util.Map<java.lang.String,javax.swing.JLabel> ids) |
void |
getEntries(java.util.Map<java.lang.String,java.lang.Boolean> selection,
ImportInspector inspector) |
static java.util.HashMap<java.lang.String,java.lang.String> |
getFormElements(java.lang.String page) |
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.
|
int |
getPreferredPreviewHeight()
The preferred table row height for the previews.
|
java.lang.String |
getTitle()
The title for this activeFetcher, displayed in the menu and in the side pane.
|
int |
getWarningLimit()
The number of entries a user can select for download without getting a warning message.
|
boolean |
processQuery(java.lang.String query,
ImportInspector inspector,
OutputPrinter status)
Handle a query entered by the user.
|
boolean |
processQueryGetPreview(java.lang.String query,
FetcherPreviewDialog preview,
OutputPrinter status) |
protected void |
runConfig() |
void |
stopFetching()
This method is called by the dialog when the user has cancelled or
signalled a stop.
|
protected static int MAX_ENTRIES_TO_LOAD
protected java.util.HashMap<java.lang.String,java.lang.String> entryLinks
protected boolean stopFetching
public int getWarningLimit()
PreviewEntryFetchergetWarningLimit in interface PreviewEntryFetcherpublic int getPreferredPreviewHeight()
PreviewEntryFetchergetPreferredPreviewHeight in interface PreviewEntryFetcherpublic boolean processQuery(java.lang.String query,
ImportInspector inspector,
OutputPrinter status)
EntryFetcherprocessQuery in interface EntryFetcherquery - The query text.inspector - The dialog to add imported entries to.status - An OutputPrinter passed to the activeFetcher for reporting about the
status of the fetching.public boolean processQueryGetPreview(java.lang.String query,
FetcherPreviewDialog preview,
OutputPrinter status)
processQueryGetPreview in interface PreviewEntryFetcherpublic void getEntries(java.util.Map<java.lang.String,java.lang.Boolean> selection,
ImportInspector inspector)
getEntries in interface PreviewEntryFetcherpublic java.lang.String getTitle()
EntryFetchergetTitle in interface EntryFetcherpublic java.lang.String getKeyName()
EntryFetchergetKeyName in interface EntryFetcherpublic java.net.URL getIcon()
EntryFetchergetIcon in interface EntryFetcherpublic java.lang.String getHelpPage()
EntryFetchergetHelpPage in interface EntryFetcherpublic javax.swing.JPanel getOptionsPanel()
EntryFetchergetOptionsPanel in interface EntryFetcherpublic void stopFetching()
ImportInspectionDialog.CallBackstopFetching in interface ImportInspectionDialog.CallBackprotected void runConfig()
throws java.io.IOException
java.io.IOExceptionprotected java.util.Map<java.lang.String,javax.swing.JLabel> getCitations(java.lang.String query)
throws java.io.IOException
query - The search term to query Google Scholar for.java.io.IOExceptionprotected java.lang.String getCitationsFromUrl(java.lang.String urlQuery,
java.util.Map<java.lang.String,javax.swing.JLabel> ids)
throws java.io.IOException
java.io.IOExceptionprotected BibtexEntry downloadEntry(java.lang.String link) throws java.io.IOException
java.io.IOExceptionpublic static java.util.HashMap<java.lang.String,java.lang.String> getFormElements(java.lang.String page)