Open SiteSearch 4.1.1
Final

ORG.oclc.obi
Class resultsframescreen

java.lang.Object
  |
  +--ORG.oclc.obi.resultsframescreen

public class resultsframescreen
extends Object
implements JavaPage

The resultsframescreen class may reorder list of Databases used on search results navigation frame. The list of database is typically sorted alphabetically by dbname (internal WebZ database name).

The list may be ordered by type parameter in "DbResults" section of the user's current StyleTable. The values are rotate, topic or alphabetic (the default value).

Creates or updates UserState entity newResults, that is referenced in resultsframe.html to display the correct set of records or a "refine" serach page. newResults contains the values from the current StyleTable's anchor section (NOTE: if FETCH is required the userState entity firstDB is updated to be the name of the first database in the serachResults array.

Uses the StyleTable entity "type" from the "DbResults" section.
Uses the searchResults array from the ZUserData.
Uses the UserState entities "newReuslts" and "firstDB".

See Also:
JavaPage, UserStateObject, RequestManager, DataPairs, StyleTable, ZUserData, DbResults, WebZUserHistory

Constructor Summary
resultsframescreen()
          Constructs a resultsframescreen object.
 
Method Summary
protected  Vector buildList(DbResults[] newList, DbResults[] oldList, String localdb)
          The buildList method returns a Vector of DbResults elements that have been rotated.
protected  Vector buildList(DbResults[] newList, TopicEntry entry)
          The buildList method returns a Vector of DbResults elements that have been ordered by TopicArea definition.
 void runit(RequestManager rMngr)
          Executes the embedded resultsframescreen.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

resultsframescreen

public resultsframescreen()
Constructs a resultsframescreen object.
Method Detail

runit

public void runit(RequestManager rMngr)
Executes the embedded resultsframescreen.
Specified by:
runit in interface JavaPage
Parameters:
rMngr - the RequestManager object

buildList

protected Vector buildList(DbResults[] newList,
                           DbResults[] oldList,
                           String localdb)
The buildList method returns a Vector of DbResults elements that have been rotated.

Parameters:
newList - - searchResults array of the current search alphabetized by the Z39.50 client.
oldList - - searchResults array of the previous search that have been reordered.
localdb - - name of the database that should remain at the top of the list.
Returns:
list - A newly ordered list of DbResults elements.

buildList

protected Vector buildList(DbResults[] newList,
                           TopicEntry entry)
The buildList method returns a Vector of DbResults elements that have been ordered by TopicArea definition.

Parameters:
newList - - searchResults array of the current search alphabetized by the Z39.50 client.
entry - - The TopicEntry by which to order the searchResults.
Returns:
list - A newly ordered list of DbResults elements.

Open SiteSearch 4.1.1
Final