-
Notifications
You must be signed in to change notification settings - Fork 0
/
iiif_test.html
executable file
·155 lines (150 loc) · 7.96 KB
/
iiif_test.html
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>MyCoRe-ImageViewer</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.2.1.min.js" crossorigin="anonymous"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script> -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.2/css/all.css" integrity="sha384-fnmOCqbTlWIlj8LyTjo7mOUStjsKC4pOpQbqyi7RrhN7udi9RwhKkMHpvLbHG9Sr" crossorigin="anonymous">
<script src="js/iview-client-base.js"></script>
<script src="js/iview-client-desktop.js"></script>
<script src="js/iview-client-iiif.js"></script>
<script src="js/iview-client-metadata.js"></script>
<script src="js/manifesto.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<!--<script src="../META-INF/resources/modules/iview2/js/iview-client-metadata.js"></script> -->
<link href="css/default.css" type="text/css" rel="stylesheet">
<!-- <link rel="stylesheet" href="../META-INF/resources/components/iview/templates/mobile/jquery.mobile-1.3.2.min.css" /> -->
<script>
// window.onload = function () {
// var json = {
// properties: {
// derivateURL: "http://localhost:8291/mir/servlets/MCRFileNodeServlet/dbt_derivate_00000003/",
// metsURL: "http://localhost:8291/mir/servlets/MCRMETSServlet/dbt_derivate_00000003/",
// canvas: {
// overview: {
// enabled: true
// }
// },
// i18nURL: "http://localhost:8291/mir/rsc/locale/translate/{lang}/component.mets.*,component.viewer.*",
// derivate: "dbt_derivate_00000003",
// filePath: "/Bibliotheca_536682534_1_1650_0005.tif",
// mobile: false,
// adminMail: "[email protected]",
// tileProviderPath: "http://localhost:8291/mir/servlets/MCRTileServlet/",
// imageXmlPath: "http://localhost:8291/mir/servlets/MCRTileServlet/",
// pdfCreatorURI: "http://localhost:8291/mir/pdf",
// text: {
// enabled: false
// },
// doctype: "manifest",
// webApplicationBaseURL: "http://localhost:8291/mir/",
// metadataURL: "http://localhost:8291/mir/receive/dbt_mods_00000009?XSL.Transformer\u003dmycoreobject-viewer",
// pdfCreatorStyle: "pdf",
// objId: "dbt_mods_00000009",
// lang: "de",
// maximalPageScale: 1,
// permalink: {
// enabled: true,
// updateHistory: false,
// viewerLocationPattern: "/classes/example/MyCoReImageViewer.html"
// },
// imageAPIURL: 'http://localhost:8291/mir/rsc/iiif/image/Iview/',
// manifestURL: 'http://localhost:8291/mir/rsc/iiif/presentation/mets/dbt_derivate_00000003/manifest'
// }
// }
// ;
// new mycore.viewer.MyCoReViewer(jQuery("body"), json.properties);
// };
window.onload = function () {
var json = {
properties: {
canvas: {
overview: {
enabled: true
}
},
mobile: false,
text: {
enabled: false
},
doctype: "manifest",
lang: "de",
maximalPageScale: 1,
permalink: {
updateHistory: false
},
i18nURL: 'i18n/{lang}.json',
webApplicationBaseURL: location.href.substr(0,location.href.lastIndexOf('/')),
// derivate: "mir_derivate_00000002",
// imageAPIURL: 'http://localhost:8291/mir/rsc/iiif/image/Iview/',
// manifestURL: 'http://localhost:8291/mir/rsc/iiif/presentation/mets/mir_derivate_00000001/manifest',
// filePath: 'JVB_19150328_074_167758667_B1_001.tif'
// derivate: "PPN61540930X",
// imageAPIURL: 'https://digitalesammlungen.uni-weimar.de/viewer/rest/image/',
// manifestURL: 'https://digitalesammlungen.uni-weimar.de/viewer/rest/iiif/manifests/PPN61540930X/manifest/',
// filePath: 'PPN61540930X/00000005.tif'
// // // derivate: "299843",
// imageAPIURL: 'https://ids.lib.harvard.edu/ids/iiif/',
// manifestURL: 'https://iiif.harvardartmuseums.org/manifests/object/299843',
// filePath: '47174896'
// derivate: "GNM_471016",
// imageAPIURL: 'https://haab-digital.klassik-stiftung.de/kulturerbe/rest/image/',
// manifestURL: 'https://haab-digital.klassik-stiftung.de/kulturerbe/rest/iiif/manifests/GNM_471016/manifest/',
// filePath: 'GNM_471016_0165603031.tif'
// derivate: "1/0/6/3/8/2",
imageAPIURL: 'https://media.nga.gov/iiif/public/objects/',
manifestURL: 'https://media.nga.gov/public/manifests/nga_highlights.json',
filePath: '4/6/6/2/6/46626-primary-0-nativeres.ptif'
}
}
;
new mycore.viewer.MyCoReViewer(jQuery("body"), json.properties);
};
/*
window.onload = function() {
window["viewer"] = new mycore.viewer.MyCoReViewer(jQuery("body"), {
"mobile": false,
doctype: "mets",
metsURL: "mets/HisBest_derivate_00000376/mets.xml",
"imageXmlPath": "http://archive.thulb.uni-jena.de/hisbest/servlets/MCRTileServlet/",
"tileProviderPath": "http://archive.thulb.uni-jena.de/hisbest/servlets/MCRTileServlet/",
"filePath": "/RN_0004_0002r.tif",
derivate: "HisBest_derivate_00000376",
i18nURL: "../META-INF/resources/modules/iview2/i18n/{lang}.json",
lang: "de",
pdfCreatorStyle: "pdf",
pdfCreatorURI: "http://wrackdm17.thulb.uni-jena.de/mets-printer/pdf",
metadataURL: null,
objId: "",
webApplicationBaseURL: "/classes/META-INF/resources",
imageOverview: {
enabled: true
},
chapter: {
enabled: true,
showOnStart: true
},
permalink: {
enabled: true,
updateHistory: true,
viewerLocationPattern: "/classes/example/MyCoReImageViewer.html"
},
canvas: {
overview: {
enabled: true
}
},
adminMail: "[email protected]",
onClose: function() {
console.log("You can define a custom close button behavior.");
}
});
}*/
</script>
</head>
<body>
</body>
</html>