Catmandu::Exporter::MediaHaven - a exporter that updates Zeticon MediaHaven records
# From the commandline $ cat catmandu.yml --- exporter: mh: package: MediaHaven options: url: https://archief.viaa.be/mediahaven-rest-api/resources/media username: ... password: ... json_key: description $ catmandu convert YAML to mh < records.yml
This Exporter will convert metadata records into a JSON encoded field in the MediaHaven database. A `json_key` is required. This is the field were the JSON encoded data is stored.
Attn: take some seconds/minutes to have the metadata updates available and indexed in the backend database.
Create a new Catmandu::Store::File::MediaHaven with the following connection parameters:
Required. The URL to the MediaHaven REST endpoint.
Required. Username used to connect to MediaHaven.
Required. Password used to connect to MediaHaven.
Required. The metdata field where the record data as a JSON blob is stored
Optional. MediaHaven query to extract a record '_id' from the database. Default: "q=%%2B(MediaObjectFragmentId:%s)"
This Catmandu::Exporter::MediaHaven implements
Catmandu::Importer::MediaHaven
To install Catmandu::MediaHaven, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::MediaHaven
CPAN shell
perl -MCPAN -e shell install Catmandu::MediaHaven
For more information on module installation, please visit the detailed CPAN module installation guide.