NAME
Catmandu::Exporter::MediaHaven - a exporter that updates Zeticon MediaHaven records
SYNOPSIS
# 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
DESCRIPTION
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.
METHODS
new(%connection_parameters)
Create a new Catmandu::Store::File::MediaHaven with the following connection parameters:
- url
-
Required. The URL to the MediaHaven REST endpoint.
- username
-
Required. Username used to connect to MediaHaven.
- password
-
Required. Password used to connect to MediaHaven.
- json_key
-
Required. The metdata field where the record data as a JSON blob is stored
- record_query
-
Optional. MediaHaven query to extract a record '_id' from the database. Default: "q=%%2B(MediaObjectFragmentId:%s)"
INHERITED METHODS
This Catmandu::Exporter::MediaHaven implements