Tim Brody > HTTP-OAI > HTTP::OAI::Metadata::OAI_DC

Download:
HTTP-OAI-4.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  7
Open  1
View/Report Bugs
Source  

NAME ^

HTTP::OAI::Metadata::OAI_DC - Easy access to OAI Dublin Core

DESCRIPTION ^

HTTP::OAI::Metadata::OAI_DC provides a simple interface to parsing and generating OAI Dublin Core ("oai_dc").

SYNOPSIS ^

        use HTTP::OAI::Metadata::OAI_DC;

        my $md = new HTTP::OAI::Metadata(
                dc=>{title=>['Hello, World!','Hi, World!']},
        );

        # Prints "Hello, World!"
        print $md->dc->{title}->[0], "\n";

        my $xml = $md->metadata();

        $md->metadata($xml);

NOTE ^

HTTP::OAI::Metadata::OAI_DC will automatically (and silently) convert OAI version 1.x oai_dc records into OAI version 2.0 oai_dc records.

syntax highlighting: