HTTP::...ormats(3pm)

πŸ“¦
version 4.13 Β· 5 versions
, in debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

ok so this is HTTP::OAI::ListMetadataFormats β€” she's your lil bestie for getting at an OAI ListMetadataFormats response. that's it, that's the whole job, and she eats every time ✨

it's a Perl module, filed under User Contributed Perl Documentation as HTTP::OAI::ListMetadataFormats(3pm). πŸŽ€


🌸 SYNOPSIS 🌸

my $r = $h->ListMetadataFormats;

# ListMetadataFormats doesn't use flow control
while( my $rec = $r->next ) {
        print $rec->metadataPrefix, "\n";
}

die $r->message if $r->is_error;

ok bestie notice the comment: ListMetadataFormats doesn't use flow control, so don't go looking for it, she simply doesn't do that πŸ’…


✨ METHODS ✨

  • $lmdf = new HTTP::OAI::ListMetadataFormats β€” the constructor, periodt. hand her over and she gives you back a brand new HTTP::OAI::ListMetadataFormats object. πŸ¦‹
  • $mdf = $lmdf->next β€” she hands you back either an HTTP::OAI::MetadataFormat object, or undef if there's literally no more records left to give. that undef is your cue to stop, no cap. πŸ™ˆ
  • @mdfl = $lmdf->metadataFormat([$mdf]) β€” gives you back the metadataFormat list, and if you want, you can pass in a new metadataFormat $mdf and she'll add it for you. returns an array ref of HTTP::OAI::MetadataFormats. πŸ‘‘
  • $dom = $lmdf->toDOM β€” returns an XML::DOM object that represents the ListMetadataFormats response. DOM as in document object model, iykyk 🌈

lowkey important: next giving you undef is not a bug, it's the signal. it's giving "we're done here." 🫢

and that's the whole page, babe β€” written by the lovely people behind perl v5.36.0, dated 2023-09-28, and lovingly relayed to you by the HTTP::...ormats(3pm) manual. go forth and list those metadata formats πŸ’œπŸŒΈπŸ’…

πŸ“¦ where this page comes from