<host>z3950.loc.gov</host>
<port>7090</port>
<db>Voyager</db>
+ <!-- fetch the full record with no holdings. FI is the default -->
+ <record_format>FI</record_format>
<attrs>
<tcn><code>12</code><format>1</format></tcn>
<isbn><code>7</code><format>6</format></isbn>
$logger->info("z3950: search [$query] took ".(time - $start)." seconds");
- my $munged = process_results($results, $limit, $offset);
+ my $munged = process_results($results, $limit, $offset, $$args{service});
$munged->{query} = $query;
return $munged;
my $results = shift;
my $limit = shift;
my $offset = shift;
+ my $service = shift;
- $results->option(elementSetName => "FI"); # full records with no holdings
+ my $rformat = $services{$service}->{record_format} || 'FI';
+ $results->option(elementSetName => $rformat);
+ $logger->info("z3950: using record format '$rformat'");
my @records;
my $res = {};