Biblio...tebase(3pm)

πŸ“¦
version 1.10 Β· 2 versions
  • 1.10 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.10 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Biblio::Citation::Parser::Citebase πŸ’–

okay bestie, so this one is a Perl module β€” it lives in the User Contributed Perl Documentation, section 3pm, and it's literally the citation-parsing queen of Citebase. pull up a chair, we're doing this. πŸŽ€


✨ NAME ✨

Biblio::Citation::Parser::Citebase β€” Citebase's citation parsing module. that's it, that's the whole name section, she's simple and she knows it. πŸ’…


🌸 DESCRIPTION 🌸

okay so real talk: this module is an updated β€” and, quote unquote, hopefully improved β€” version of Zhuoan Jiao's citation-parsing modules. so it's giving glow-up era, it's giving remix, it's giving "we took the OG and gave her a little something". πŸ¦‹ no cap, that's the entire description, she's not wordy, she's efficient, we respect that. πŸ‘‘


🌈 SYNOPSIS 🌈

here's the vibe, in code, verbatim, don't touch a single character bestie:

use Biblio::Citation::Parser::Citebase;
$parser = new Biblio::Citation::Parser::Citebase([$source_identifier]);
$metadata = $parser->parse($citation);
print "Author: ", $metadata->{aufirst}, " ", $metadata->{aulast}, "\n";

and now the methods, one by one, slay by slay:

  • $p = new Biblio::Citation::Parser::Citebase([$citation],[$source_identifier]); β€” create a new citation parser, and if you feel like it, it'll parse $citation with $source_identifier right then and there. and listen β€” if a citation is given, the return blessed hash will contain the structured data. so like, the goods come pre-loaded. 🫢
  • $md = $p->parse($citation, [$source_identifier]); β€” this one parses a string, $citation, and hands you back a blessed hash of the structured data. that's the whole job. she parses. she returns. she leaves. πŸ’–

quick reminder bestie: the return value is a blessed hash in both cases. blessed. hash. write it down. πŸ“

and that's the page, my love β€” brought to you by perl v5.36.0, dated 2022-11-19, from the good people over at User Contributed Perl Documentation. go forth and parse some citations, you absolute icon. πŸ’œβœ¨πŸ¦‹