|
|
|
@ -698,3 +698,31 @@ function _olivesimagined_hex_to_hsl(string $hex_string) {
|
|
|
|
|
return [$h, $s, $l]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function olivesimagined_preprocess_mirador(&$variables) { |
|
|
|
|
$block = \Drupal::service('plugin.manager.block')->createInstance($viewer . '_block', [ |
|
|
|
|
'iiif_manifest_url' => "/node/$manifest_nid/manifest-single", |
|
|
|
|
'thumbnail_navigation_position' => 'hidden', |
|
|
|
|
'window_config' => [ |
|
|
|
|
'allowClose' => FALSE, |
|
|
|
|
'allowMaximize' => FALSE, |
|
|
|
|
'allowTopMenuButton' => FALSE, |
|
|
|
|
'allowWindowSideBar' => FALSE, |
|
|
|
|
'hideWindowTitle' => TRUE, |
|
|
|
|
'panels' => [ |
|
|
|
|
'info' => FALSE, |
|
|
|
|
'attribution' => FALSE, |
|
|
|
|
' canvas' => FALSE, |
|
|
|
|
'annotations' => FALSE, |
|
|
|
|
'search' => FALSE, |
|
|
|
|
], |
|
|
|
|
], |
|
|
|
|
'workspace_config' => [ |
|
|
|
|
'allowNewWindows' => FALSE, |
|
|
|
|
'isWorkspaceAddVisible' => FALSE, |
|
|
|
|
'workspaceControlPanel' => [ |
|
|
|
|
'enable' => FALSE, |
|
|
|
|
], |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
]); |
|
|
|
|
} |
|
|
|
|