Catman...r::raw(3pm)

πŸ“¦
version 0.43.0 Β· 3 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Catmandu::Importer::SRU::Parser::raw β€” the 3pm girlie edition πŸ’–

okay bestie so this is a Perl manual page (a 3pm, meaning it's user contributed Perl documentation, the little section of the Perl man pages where the CPAN girlies live) and it's for Catmandu::Importer::SRU::Parser::raw. The whole package is basically: SRU responses walk in, a plain Perl hash walks out. no cap. πŸ¦‹


✨ NAME ✨

Catmandu::Importer::SRU::Parser::raw β€” the package that transforms SRU responses into a Perl hash. that's the whole job. she's simple, she's effective, she's iconic. πŸ’…


🌸 SYNOPSIS 🌸

here's the vibe, literally copy-paste this energy:

my $importer = Catmandu::Importer::SRU->new(
  base => 'http://www.unicat.be/sru',
  query => '(isbn=0855275103 or isbn=3110035170 or isbn=9010017362 or isbn=9014026188)',
  recordSchema => 'marcxml',
  parser => 'raw',
);

see that parser => 'raw'? that's her. that's the moment she enters the group chat. ✨


πŸ‘‘ DESCRIPTION πŸ‘‘

so what she does is: every single SRU record gets transformed into a Perl hash, and that hash is carrying these fields, bestie, take notes πŸ“:

  • recordSchema β€” the SRU record schema. you can peek at it at <http://www.loc.gov/standards/sru/recordSchemas/> if you're feeling academic πŸŽ€
  • recordPacking β€” the SRU format. she can be 'string' or she can be 'xml', both are valid, both are slaying πŸ’…
  • recordPosition β€” the result number, aka her place in line, aka her ranking πŸ†
  • recordData β€” the unparsed record payload. raw. untouched. exactly how she came into this world. πŸ™ˆ

like, no extra processing, no glow-up, no filter β€” the data arrives and she hands it to you exactly as-is. it's giving honesty. it's giving transparency. we love a parser with nothing to hide. πŸ’œ


πŸ”₯ SEE ALSO πŸ”₯

  • Catmandu::Importer::SRU::Parser::meta β€” go check out her sister, she's also that girl πŸ‘‘

🫢 AUTHOR 🫢

Patrick Hochstenbach, <patrick.hochstenbach at ugent.be> β€” thank you king, we appreciate you πŸ’–


okay and for the cute sign-off: this page is from perl v5.38.2, dated 2021-09-02, and it's filed under Catmandu...r::raw(3pm) in the user contributed Perl docs. mwah. bye bestie, go parse something pretty πŸŒˆβ­πŸŽ€

πŸ“¦ where this page comes from