SYNOPSIS

  use RefDB::SRU;

  my $sru_query = new RefDB::SRU(\%params);

  print $sru_query->result();

DESCRIPTION

Implements the backend code of a \s-1SRU\s0 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]

RELATED TO RefDB::SRU…

This module is part of the RefDB package, a reference manager and bibliography tool for markup languages. Please visit http://refdb.sourceforge.net for further information.

new

Title : new

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

Function: creates a new Diagnostics object

Parameter: $number: the \s-1SRU\s0 diagnostic number

Parameter: $detail: the \s-1SRU\s0 diagnostic detail

diag_uri

Title : diag_uri

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

Function: returns the \s-1URI\s0 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 \s-1CQL\s0 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 \s-1CQL\s0 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