| 1 | package Catmandu::Importer::SRU::Parser::metascip-perl cpan Catmandu-SRU 0.430 Catmandu/Importer/SRU/Parser/meta/; |
| 2 | |
| 3 | use Mooscip-perl cpan Catmandu-SRU 0.430 Moo/; |
| 4 | |
| 5 | sub parsescip-perl cpan Catmandu-SRU 0.430 Catmandu/Importer/SRU/Parser/meta/parse(). { } |
| 6 | |
| 7 | 1; |
| 8 | __END__ |
| 9 | |
| 10 | =head1 NAME |
| 11 | |
| 12 | Catmandu::Importer::SRU::Parser::meta - Package transforms SRU responses metadata into a Perl hash |
| 13 | |
| 14 | =head1 SYNOPSIS |
| 15 | |
| 16 | my $importer = Catmandu::Importer::SRU->new( |
| 17 | base => 'http://www.unicat.be/sru', |
| 18 | query => 'tit=cinema', |
| 19 | parser => 'meta', |
| 20 | ); |
| 21 | |
| 22 | =head1 DESCRIPTION |
| 23 | |
| 24 | This L<Catmandu::Importer::SRU::Parser> returns a single item with the |
| 25 | L<SRU SearchRetrieve Response Parameters|http://www.loc.gov/standards/sru/sru-1-1.html#responseparameters> |
| 26 | of a request. |
| 27 | |
| 28 | =over |
| 29 | |
| 30 | =item version |
| 31 | |
| 32 | SRU version of the response, e.g. C<1.1>. |
| 33 | |
| 34 | =item numberOfRecords |
| 35 | |
| 36 | Number of records matched by the query. If the query fails this will be C<0>. |
| 37 | |
| 38 | =item resultSetId |
| 39 | |
| 40 | Identifier for a result set that was created through the execution of the query. |
| 41 | |
| 42 | =item resultSetIdleTime |
| 43 | |
| 44 | Number of seconds after which the created result set will be deleted. |
| 45 | |
| 46 | =item nextRecordPosition |
| 47 | |
| 48 | Next position within the result set following the final returned record (unless |
| 49 | this is the last part of the result set). |
| 50 | |
| 51 | =item diagnostics |
| 52 | |
| 53 | An array of diagnostics, each with C<uri>, C<details> (optional), and C<message> (optional). |
| 54 | |
| 55 | =item extraResponseData |
| 56 | |
| 57 | Additional, profile specific information. |
| 58 | |
| 59 | =item echoedSearchRetrieveRequest |
| 60 | |
| 61 | The request parameters as hash of key-value pairs. |
| 62 | |
| 63 | =back |
| 64 | |
| 65 | In addition field C<requestUrl> contains the full request URL. |
| 66 | |
| 67 | =cut |