|
|
@ -41,6 +41,9 @@ function islandora_videojs_theme_registry_alter(&$theme_registry) { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* videojs theme override |
|
|
|
|
|
|
|
*/ |
|
|
|
function islandora_videojs_theme($existing, $type, $theme, $path) { |
|
|
|
function islandora_videojs_theme($existing, $type, $theme, $path) { |
|
|
|
$transcript_urls = get_transcript_urls(); |
|
|
|
$transcript_urls = get_transcript_urls(); |
|
|
|
return array( |
|
|
|
return array( |
|
|
@ -51,7 +54,9 @@ function islandora_videojs_theme($existing, $type, $theme, $path) { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* returns the urls of the transcript of a repository item |
|
|
|
|
|
|
|
*/ |
|
|
|
function get_transcript_urls() { |
|
|
|
function get_transcript_urls() { |
|
|
|
// Get the nid |
|
|
|
// Get the nid |
|
|
|
$node = \Drupal::routeMatch()->getParameter('node'); |
|
|
|
$node = \Drupal::routeMatch()->getParameter('node'); |
|
|
|