On Mon Jan 28 04:46:27 2013, HOCHSTEN wrote:
Show quoted text> Hi
>
> Thanks for contributing Archive::BagIt to the CPAN network. At Ghent
> University Library we
> create many tools which use the BagIt format. Would it be possible to
> add to Archive::BagIt
> methods to get a listing of all payloads and a way to retrieve the
> content of the tag files?
>
> Best
> Patrick
I have added a couple of new functions.
my $bag = new Archive::BagIt (<path_to_bag>);
$bag->payload_files() should return the payload files.
$bag->manifest_files will return the list of manifest files
$bag->tagmanifest_files should return the list of tagmanifest files.
No doubt there will be bugs :) I'll try to do the other part you asked for.
I'll create a $bag->entries as a hash ref to the manifest entries