Returns a series' metadata of all types or returns a series' metadata collection of the given type when the query string parameter type is specified.

oc_series_metadata(seriesId = "", type = "")

Arguments

seriesId

The event id

type

The type of metadata to get

Value

Returns a series' metadata of all types or returns a series' metadata collection of the given type when the query string parameter type is specified.

Details

This function expects the hostname, username and password to be set as environment variables.

Examples

Sys.setenv(OPENCAST_HOST = "https://legacy.opencast.org") Sys.setenv(OPENCAST_USERNAME = "admin") Sys.setenv(OPENCAST_PASSWORD = "opencast") series <- oc_list_series() oc_series_metadata(series$content$identifier[1])
#> $content #> flavor title #> 1 dublincore/series Opencast Series DublinCore #> fields #> 1 FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, TRUE, TRUE, title, subjects, description, language, rightsHolder, license, creator, contributor, publisher, createdBy, identifier, EVENTS.SERIES.DETAILS.METADATA.TITLE, EVENTS.SERIES.DETAILS.METADATA.SUBJECT, EVENTS.SERIES.DETAILS.METADATA.DESCRIPTION, EVENTS.SERIES.DETAILS.METADATA.LANGUAGE, EVENTS.SERIES.DETAILS.METADATA.RIGHTS, EVENTS.SERIES.DETAILS.METADATA.LICENSE, EVENTS.SERIES.DETAILS.METADATA.ORGANIZERS, EVENTS.SERIES.DETAILS.METADATA.CONTRIBUTORS, EVENTS.SERIES.DETAILS.METADATA.PUBLISHERS, EVENTS.SERIES.DETAILS.METADATA.CREATED_BY, EVENTS.SERIES.DETAILS.METADATA.ID, text, text, text, text, text, text, mixed_text, mixed_text, mixed_text, text, text, Blender Foundation Productions, , , , , Blender Foundation, System User, a1b6787e-1cfa-49e7-85ce-09d36677b92e, TRUE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, FALSE, NA, NA, NA, TRUE, NA, TRUE, FALSE, FALSE, FALSE, NA, NA #> #> $url #> [1] "https://legacy.opencast.org/api/series/a1b6787e-1cfa-49e7-85ce-09d36677b92e/metadata" #> #> $response #> Response [https://legacy.opencast.org/api/series/a1b6787e-1cfa-49e7-85ce-09d36677b92e/metadata?type=] #> Date: 2019-11-04 11:18 #> Status: 200 #> Content-Type: application/v1.2.0+json #> Size: 1.7 kB #> <BINARY BODY> #> #> attr(,"class") #> [1] "opencast_api"