-
Notifications
You must be signed in to change notification settings - Fork 1
/
mirador_full.php
81 lines (68 loc) · 2.43 KB
/
mirador_full.php
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
72
73
74
75
76
77
78
79
80
81
<?php
require("config/config_php.php");
?>
<html>
<head>
<!-- mirador, 2.0 -->
<!-- <link rel="stylesheet" type="text/css" href="inc/mirador/css/mirador-combined.css"> -->
<!-- <link rel="stylesheet" type="text/css" href="css/mirador_local.css"> -->
<!-- mirador, 2.1 -->
<link rel="stylesheet" type="text/css" href="inc/mirador21/css/mirador-combined.css">
<script src="js/jquery.min.js" type="text/javascript"></script>
<script src="config/config.js" type="text/javascript"></script>
<script src="js/vendor/bootstrap.min.js" type="text/javascript"></script>
<meta name="viewport" content="initial-scale=1">
<title>Wayne State Digital Library - Mirador Viewer</title>
<head>
<body>
<?php unset($_REQUEST['type']); ?>
<div class="standalone">
<!-- all_image type template -->
<div id="LargeView">
<div id="viewer"></div>
<script type="text/javascript">
$(function() {
var anno_token;
Mirador({
id: "viewer",
saveSession: false,
layout:"1x1",
mainMenuSettings : {
show : false
},
data: [
{
manifestUri: "//<?php echo $APP_HOST; ?>/iiif_manifest/<?php echo filter_input(INPUT_GET,'id', FILTER_SANITIZE_FULL_SPECIAL_CHARS); ?>",
location: "Wayne State University Library Digital Collections"
}
],
windowObjects: [
{
loadedManifest : "//<?php echo $APP_HOST; ?>/iiif_manifest/<?php echo filter_input(INPUT_GET,'id', FILTER_SANITIZE_FULL_SPECIAL_CHARS); ?>",
viewType : "<?php echo filter_input(INPUT_GET,'type', FILTER_SANITIZE_FULL_SPECIAL_CHARS); ?>",
layoutOptions:
{
close: true,
slotRight: true,
slotLeft: true,
slotAbove: true,
slotBelow: true
},
annotationLayer: false,
annotationCreation: false,
annotationState: false,
availableViews : ['ImageView','ThumbnailsView','ScrollView','<?php echo filter_input(INPUT_GET,'type', FILTER_SANITIZE_FULL_SPECIAL_CHARS); ?>'] // a bit hacky, potentially includes ImageView twice, but works
}
]
});
});
</script>
</div>
</div>
</body>
<!-- le js, Mirador 2.0 -->
<!-- <script src="inc/mirador/mirador.js"></script> -->
<!-- <script src="js/mirador_full.js"></script> -->
<!-- le js, Mirador 2.1 -->
<script src="inc/mirador21/mirador.js"></script>
</html>