Browse Source

mirador

master
rdrew 10 months ago
parent
commit
0fd1a690e6
  1. 13
      css/components/unsorted.css
  2. 28
      olivesimagined.theme

13
css/components/unsorted.css

@ -14,8 +14,7 @@
& .field__label,
.field__items {
font-size: 0.9rem;
font-weight: normal;;
font-weight: normal;
}
}
}
@ -36,7 +35,15 @@
.field__items {
/*font-size: 0.9rem;*/
font-weight: normal;
}
}
}
.node--type-book {
figure {
border: 1px solid #ccc;
border-bottom: 0;
}
figcaption {
border: 1px solid #ccc;
}
}

28
olivesimagined.theme

@ -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,
],
],
]);
}

Loading…
Cancel
Save