Catman...istory(3pm)
π NAME π
okay so bestie, gather round π«Ά this is Catmandu::FedoraCommons::Model::getObjectHistory β a Perl model for the Fedora getObjectHistory REST call. that's it, that's the whole vibe. it's the little guy that goes and fetches a Fedora object's change history for you, and honestly? iconic. π
β¨ SYNOPSIS β¨
here's how you actually use it, no cap:
use Catmandu::FedoraCommons;
my $fedora = Catmandu::FedoraCommons->new('http://localhost:8080/fedora','fedoraAdmin','fedoraAdmin');
my $obj = $fedora->getObjectHistory(pid => 'demo:29')->parse_content;
{
'pid' => 'demo:29' ,
'objectChangeDate' => [
'2008-07-02T05:09:43.234Z' ,
'2013-02-07T18:42:24.672Z' ,
] ,
}
so like, you spin up a Catmandu::FedoraCommons with your URL and your two fedoraAdmin credentials, then you call getObjectHistory with pid => 'demo:29', chain ->parse_content on it, and boom π₯ you get back a hash with the pid and an arrayref of objectChangeDate timestamps. look at those dates β 2008-07-02T05:09:43.234Z and 2013-02-07T18:42:24.672Z β that object has been THROUGH it and it's still serving looks. β
πΈ SEE ALSO πΈ
Catmandu::FedoraCommonsβ the parent module, go read it, it's the main character π
okay that's the page!! π this whole thing lives in the User Contributed Perl Documentation collection as section 3pm, it's built for perl v5.36.0, and it was last touched on 2023-02-05. mwah, bye bestie ππ¦
π¦ where this page comes from
- debian bookworm: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-fedoracommons-perl 0.5-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-fedoracommons-perl 0.5-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