RefDB::SRU(3) Module for a SRU service for RefDB

SYNOPSIS


use RefDB::SRU;
my $sru_query = new RefDB::SRU(\%params);
print $sru_query->result();

DESCRIPTION

Implements the backend code of a SRU service to query RefDB databases. Your own code must provide the networking interface which invokes the code in this module

FEEDBACK

Send bug reports, questions, and comments to the refdb-users mailing list at:

[email protected]

For list information and archives, please visit:

http://lists.sourceforge.net/lists/listinfo/refdb-users

AUTHOR

Markus Hoenicka, [email protected]

new

Title : new

Usage : $diag = Diagnostics::new($number, $detail)

Function: creates a new Diagnostics object

Parameter: $number: the SRU diagnostic number

Parameter: $detail: the SRU diagnostic detail

diag_uri

Title : diag_uri

Usage : $uri = $diag->diag_uri()

Function: returns the URI associated with the diagnostic

diag_detail

Title : diag_detail

Usage : $detail = $diag->diag_detail()

Function: returns the detail associated with the diagnostic

diag_message

Title : diag_message

Usage : $message = $diag->diag_message()

Function: returns the message associated with the diagnostic

visit

Title : visit

Usage : called by CQL parser at each node

Function: processes each node

boolean

Title : boolean

Usage : called by visit

Function: translates boolean notes into the RefDB syntax

term

Title : term

Usage : called by visit()

Function: translates qualifier and terms into RefDB syntax

_translate_regex

Title : _translage_regex

Usage : _translate_regex($string)

Function: translates regular expressions from the CQL syntax to the database engine syntax

_maybeQuote

Title : _maybeQuote

Usage : _maybeQuote($string)

Function: quotes particular characters

package functions

new

Title : new

Usage : $my_query->new(\%params);

Function: creates and initializes a new query object

Arguments: reference to a hash containing the query parameter-value pairs

Returns : new object

print_vars

Title : print_vars

Usage : $my_query->print_vars;

Function: displays the parameter/value pairs for debugging purposes

run

Title : run

Usage : $my_query->run;

Function: analyzes the parameter values and runs an appropriate operation

response

Title : response

Usage : $query->response()

Function: accessor for the query response string