logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTTP::OAI::Header - Encapsulates an OAI header structure

Methods

       $h = new HTTP::OAI::Header
           This constructor method returns a new "HTTP::OAI::Header object".

       $h->identifier([$identifier])
           Get and optionally set the record OAI identifier.

       $h->datestamp([$datestamp])
           Get and optionally set the record datestamp (OAI 2.0+).

       $h->status([$status])
           Get and optionally set the record status (valid values are 'deleted' or undef).

       $h->is_deleted()
           Returns whether this record's status is deleted.

       @sets = $h->setSpec([$setSpec])
           Returns the list of setSpecs and optionally appends a new setSpec $setSpec (OAI 2.0+).

       $dom_fragment = $id->generate()
           Act as a SAX driver (use "$h->set_handler()" to specify the filter to pass events to).

perl v5.36.0                                       2023-09-28                             HTTP::OAI::Header(3pm)

Name

       HTTP::OAI::Header - Encapsulates an OAI header structure

Synopsis

               use HTTP::OAI::Header;

               my $h = new HTTP::OAI::Header(
                       identifier=>'oai:myarchive.org:2233-add',
                       datestamp=>'2002-04-12T20:31:00Z',
               );

               $h->setSpec('all:novels');

See Also