Catman...r::meta(3pm)
π¦ NAME π¦
Catmandu::Importer::SRU::Parser::meta β bestie, this lil package's whole job is transforming SRU response metadata into a Perl hash. That's it, that's the gig. π
(oh and psst, it lives in the 3pm manual section, iykyk π)
β¨ SYNOPSIS β¨
okay so here's how you actually call it:
my $importer = Catmandu::Importer::SRU->new(
base => 'http://www.unicat.be/sru',
query => 'tit=cinema',
parser => 'meta',
);
look at that. parser => 'meta' is the main character of this whole operation. slay. π
πΈ DESCRIPTION πΈ
so Catmandu::Importer::SRU::Parser β this one β hands you back a single item packed with the SRU SearchRetrieve Response Parameters of a request. The official lore for those parameters lives over at http://www.loc.gov/standards/sru/sru-1-1.html#responseparameters if you wanna go read the source material. no cap. π
here's everything that comes back in that one item, one by one:
versionβ the SRU version of the response, like1.1.numberOfRecordsβ how many records the query actually matched. heads up: if the query fails, this is0. literally zero. not a single one. πresultSetIdβ the identifier for a result set that got created when the query was executed.resultSetIdleTimeβ the number of seconds until that created result set gets deleted. it's giving "you have this long, bestie, then it's gone". β³nextRecordPositionβ the next position within the result set, right after the final returned record. unless this is the last part of the result set, in which case, well, that's the end of the road. π£οΈdiagnosticsβ an array of diagnostics, and each one has a"uri", a"details"(optional, so it might ghost you), and a"message"(also optional). πextraResponseDataβ additional info that's specific to the profile. the bonus content, the deleted scenes. βechoedSearchRetrieveRequestβ the request parameters, handed back to you as a hash of key-value pairs. it's echoing your own words back at you fr fr. π
and bestie, one more β in addition, the field "requestUrl" contains the full request URL. the whole thing, the complete link, iconic. π₯
π«Ά tiny reminder: all of this arrives as one single item. don't go looking for a list, that's not the vibe here.
π the cute sign-off π
this page is from perl v5.38.2, dated 2021-09-02, and it's filed under Catmandu::Importer::SRU::Parser::meta(3pm) in the User Contributed Perl Documentation. bye bestie, go parse something pretty πβ¨
π¦ where this page comes from
- ubuntu noble: libcatmandu-sru-perl 0.43.0-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-sru-perl 0.43.0-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-sru-perl 0.43.0-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms