Open SiteSearch 4.1.1
Final

ORG.oclc.gadgets
Class SearchResultsDbList

java.lang.Object
  |
  +--ORG.oclc.gadgets.SearchResultsDbList

public class SearchResultsDbList
extends Object
implements GadgetBuilder

The SearchResultsDbList class is a gadget that creates the HTML string for the display of topics and individual database results from a search. It uses the parameters contained in a RequestManager object and the parameters for the gadget read from the configuration files to build the appropriate output. If an error occurs, an empty string("") is returned.

The parameters to the gadget are:
labelFont - the HTML font to use for display of the header that precedes the database names.
dbnameFont - the HTML font to use for display of the database names.

See Also:
UserStateObject, RequestManager, DataPairs, StyleTable, TopicEntry, Topics, ZDb, ZUserData, DbResults, FormatBerUtil

Constructor Summary
SearchResultsDbList()
          Constructs a SearchResultsDbList object.
 
Method Summary
protected  void appendErrorInfo(int offset)
          Create the results info when there are no postings, for errors, include the diagnostic message.
protected  void appendFetchLink(int offset)
          Create a Fetch link for the database to get to the results records.
 String buildit(RequestManager rMngr, String name)
          Generates a String containing the HTML for the Topic & Database names with associated postings from a search request using the parameters contained in the RequestManager object and the name of the gadget.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchResultsDbList

public SearchResultsDbList()
Constructs a SearchResultsDbList object.
Method Detail

buildit

public String buildit(RequestManager rMngr,
                      String name)
Generates a String containing the HTML for the Topic & Database names with associated postings from a search request using the parameters contained in the RequestManager object and the name of the gadget.
Specified by:
buildit in interface GadgetBuilder
Parameters:
rMngr - object containing input parameters for the request.
name - the name of the gadget - the section name in the configuration file defining the particular gadget.
Returns:
String

appendFetchLink

protected void appendFetchLink(int offset)
Create a Fetch link for the database to get to the results records. If there is only 1 database searched, then the hot-link is not made, because the resultsdisplay is viewing the dbrecords already.
Parameters:
offset - the offset into the search results table.

appendErrorInfo

protected void appendErrorInfo(int offset)
Create the results info when there are no postings, for errors, include the diagnostic message.
Parameters:
offset - the offset into the searchResults array.

Open SiteSearch 4.1.1
Final