conditionaloperation
Class ToTitlesByAuthor
java.lang.Object
com.wrq.vhi.script.api.OperationEventHandler
conditionaloperation.ToTitlesByAuthor
- All Implemented Interfaces:
- com.wrq.vhi.script.api.EventHandler
public class ToTitlesByAuthor
- extends com.wrq.vhi.script.api.OperationEventHandler
Operation event handler which performs navigation by recordset lookup.
The NYU (New York University) library system, Bobcat provides a
"search by author name" function which generates a recordset output.
In the model this recordset is the Authors recordset on the
BrowsingAuthors entity.
The closest match for the search term appears on a line below a record
with the index value set to ">>>". Entering the index number of the following
line displays the authors for that book. The entity reached by entering
the index number will be either:
- BriefDisplay if only one book is available for that author, or
- TitleSummary if the library has more than one book for that author.
This operation automatically navigates to the appropriate title display
entity for the author name marked in the recordset, but only if the author name
searched for matches the author name in the recordset.
Fields inherited from interface com.wrq.vhi.script.api.EventHandler |
DEFAULT_TIMEOUT |
Method Summary |
void |
executeOperation(com.wrq.vhi.script.api.ExecuteOperationEvent event)
Called to execute an operation to move to selected author list. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
description
public static final java.lang.String description
- See Also:
- Constant Field Values
executeOperationTimeout
public static final int executeOperationTimeout
- Timeout in seconds for the executeOperation() event. A value of
DEFAULT_TIMEOUT means the event will use the model defined
default event timeout.
- See Also:
- Constant Field Values
ToTitlesByAuthor
public ToTitlesByAuthor()
executeOperation
public void executeOperation(com.wrq.vhi.script.api.ExecuteOperationEvent event)
throws com.wrq.apptrieve.agent.ApptrieveException
- Called to execute an operation to move to selected author list.
This operation event handler examines the Index column
of the BrowsingAuthors.Authors recordset for an entry which
contains the string ">>>". It then matches the text searched for
with the author name in the next row of the recordset. If the
names match, it issues the keystrokes to display that author's
works. If the names don't match, it raises an "Author not found"
exception.
- Overrides:
executeOperation
in class com.wrq.vhi.script.api.OperationEventHandler
- Parameters:
event
- the event instance
- Throws:
com.wrq.apptrieve.agent.ApptrieveException