changes to handleQueryAction
split handleQueryAction into three seperate functions. One to create a query
(createQuery), another to create an squery (createSQuery) and another (runQuery)
to run the query and handle the results. Any of these functions can be easily
overwritten for customized results. handleQueryAction can call the appropriate
#1 Updated by Chad Berkley about 19 years ago
I ended up breaking handleQueryAction into 4 different functions.
handleSQuery-handles structured queries
handleQuery-handles free text queries
runQuery-sends the created xml query to the DB for processing and returns the
transformDocument-takes the hashtable of results from runQuery and transforms
them to xml or html depending on the qformat param.
handlQueryAction is now just a stub from which these methods are called.
I also modified DBQuery to include a method for producing an xml structured
query from arbitrary CGI parameters. This method is called createSQuery().