NAME

Net::Z3950::DBIServer::GRS1 - build GRS-1 records for DBIServer

SYNOPSIS

        $rec = Net::Z3950::DBIServer::GRS1::format(
                { title=>'Mr', forename=>'Eric', surname=>'1/2 Bee' },
                $config);

DESCRIPTION

This non-OO module exists only to provide a single function which formats a set of fields as a GRS-1 record.

METHODS

format()

        $rec = Net::Z3950::DBIServer::GRS1::format($hashref, $config);

Creates and returns, as an unblessed string, a new GRS-1 record containing the specified fields according to the configuration specified in the database-and-record-syntax-specific configuration segment $config, of type Net::Z3950::DBIServer::Config::PerDB.

Because of the way the underlying SimpleServer module deals with GRS-1 records, the record is returned as a human-readable string. That's surprising - at least it surprises me. But I've had to deal with it, so I don't see why you shouldn't too.

AUTHOR

Mike Taylor <mike@miketaylor.org.uk>

First version Tuesday 9th July 2002.

SEE ALSO

Net::Z3950::DBIServer is the module that uses this.