This repository was archived by the owner on Sep 3, 2025. It is now read-only.
forked from MorganDawe/islandora_mirador
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathislandora_mirador.module
More file actions
71 lines (65 loc) · 1.74 KB
/
islandora_mirador.module
File metadata and controls
71 lines (65 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
/**
* @file
* Provides a minimal wrapper around the Mirador Viewer.
*/
// Shorthand for referencing the Mirador library.
define('ISLANDORA_MIRADOR_LIB', 'mirador');
/**
* Implements hook_menu().
*/
function islandora_mirador_menu() {
return array(
'islandora_mirador' => array(
'title' => 'Islandora Mirador Viewer',
'page callback' => 'theme',
'page arguments' => array('islandora_mirador_viewer'),
'access arguments' => array(TRUE),
'type' => MENU_NORMAL_ITEM,
),
'islandora/object/%islandora_object/mirador/manifest' => array(
'page callback' => 'islandora_mirador_manifest_callback',
'page arguments' => array(2),
'access callback' => 'islandora_object_access_callback',
'access arguments' => array(ISLANDORA_VIEW_OBJECTS, 2),
'file' => 'includes/callbacks.inc',
'type' => MENU_CALLBACK,
),
);
}
/**
* Implements hook_theme().
*/
function islandora_mirador_theme($existing, $type, $theme, $path) {
return array(
'islandora_mirador_viewer' => array(
'file' => 'theme/theme.inc',
'variables' => array(),
),
);
}
/**
* Implements hook_libraries_info().
*/
function islandora_mirador_libraries_info() {
return array(
'mirador' => array(
'name' => ISLANDORA_MIRADOR_LIB,
'vendor url' => 'http://projectmirador.org/',
'download url' => 'https://github.com/IIIF/mirador',
'version arguments' => array(
'file' => 'bower.json',
'pattern' => '/"version": "([0-9.]+)"/',
'lines' => 200,
),
'files' => array(
'js' => array(
'build/mirador/mirador.js',
),
'css' => array(
'build/mirador/css/mirador-combined.min.css',
),
),
),
);
}