Catman...arcxml(3pm)

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

πŸ’– Catmandu::Importer::SRU::Parser::marcxml πŸ’–

okay bestie, so this is a Perl module from the User Contributed Perl Documentation crowd, and its whole job is glow-up energy for SRU responses β€” it takes them and turns them into Catmandu MARC. no cap.


✨ NAME ✨

Catmandu::Importer::SRU::Parser::marcxml β€” the package that transforms SRU responses into Catmandu MARC. literally its entire personality. πŸ¦‹


🌸 SYNOPSIS 🌸

here's the vibe, copy-paste it and go off:

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 => 'marcxml',
);

look at that query β€” four ISBNs doing a little or chain like it's a group chat roll call πŸ’… isbn=0855275103? present. isbn=3110035170? present. isbn=9010017362? present. isbn=9014026188? present. iconic behavior honestly.

and notice the tag team: recordSchema => 'marcxml' and parser => 'marcxml' β€” they match, as they should, because that's what makes this whole thing work. πŸ”₯


πŸŽ€ DESCRIPTION πŸŽ€

every single MARCXML response gets transformed into a format as defined by Catmandu::Importer::MARC. that's it, that's the tea. 🫢

it's giving "middleware but make it cute" β€” SRU in, Catmandu MARC out, no drama. πŸ’œ

πŸ‘‘ AUTHOR πŸ‘‘

Patrick Hochstenbach, <patrick.hochstenbach at ugent.be>

put some respect on the name, this person wrote the whole thing. πŸ™ˆ


and that's a wrap, bestie β€” this page was living in perl v5.38.2, dated 2021-09-02, and it's still serving. periodt. πŸ’…βœ¨

πŸ“¦ where this page comes from