annotate webapp/src/main/webapp/jquery/digilib-ann.html @ 1132:d47513632da5

additional annotationSafeTokenUrl for https url, used with passwords. we don't always use https for issues with self-signed certs.
author robcast
date Tue, 13 Nov 2012 19:29:23 +0100
parents 9e85efcfbb0c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1084
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
2 <html xmlns="http://www.w3.org/1999/xhtml">
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
3 <head>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
4 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
5 <meta name="viewport" content="initial-scale=1.0"/>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
6 <title>Digilib jQuery: fullscreen</title>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
7
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
8 <style type="text/css">
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
9 body {
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
10 background: silver;
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
11 }
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
12 </style>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
13
1129
9e85efcfbb0c removed more superfluous commas. added json2.js for old browsers (annotations still don't work in in ie6 and ff2.0 :-)
robcast
parents: 1126
diff changeset
14 <script type="text/javascript" src="json2.js"></script>
1084
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
15 <script type="text/javascript" src="jquery.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
16 <script type="text/javascript" src="jquery.cookie.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
17 <script type="text/javascript" src="jquery.digilib.js"></script>
1126
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
18 <link rel="stylesheet" type="text/css" href="jquery.digilib.css" />
1084
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
19 <script type="text/javascript" src="jquery.digilib.geometry.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
20 <script type="text/javascript" src="jquery.digilib.arrows.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
21 <script type="text/javascript" src="jquery.range.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
22 <link rel="stylesheet" type="text/css" href="jquery.range.css" />
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
23 <script type="text/javascript" src="jquery.digilib.buttons.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
24 <script type="text/javascript" src="jquery.digilib.dialogs.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
25 <script type="text/javascript" src="jquery.digilib.sliders.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
26 <script type="text/javascript" src="jquery.digilib.birdseye.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
27 <script type="text/javascript" src="jquery.digilib.marks.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
28 <script type="text/javascript" src="jquery.digilib.regions.js"></script>
1123
1fad569ccb4f provide annotator javascript for digilib.annotator plugin.
robcast
parents: 1112
diff changeset
29 <script type="text/javascript" src="showdown.js"></script>
1fad569ccb4f provide annotator javascript for digilib.annotator plugin.
robcast
parents: 1112
diff changeset
30 <script type="text/javascript" src="annotator-dl.js"></script>
1fad569ccb4f provide annotator javascript for digilib.annotator plugin.
robcast
parents: 1112
diff changeset
31 <link rel="stylesheet" type="text/css" href="annotator.min.css" />
1fad569ccb4f provide annotator javascript for digilib.annotator plugin.
robcast
parents: 1112
diff changeset
32 <script type="text/javascript" src="jquery.digilib.annotator.js"></script>
1084
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
33
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
34 <script type="text/javascript">
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
35 $(document).ready(function(){
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
36 var opts = {
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
37 interactionMode : 'fullscreen',
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
38 showRegionNumbers : true,
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
39 // URL of annotation server
1126
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
40 'annotationServerUrl' : 'http://tuxserve03.mpiwg-berlin.mpg.de/AnnotationManager/annotator',
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
41 //'annotationServerUrl' : 'http://localhost:18080/AnnotationManager/annotator',
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
42 // are annotations read-only?
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
43 'annotationsReadOnly' : false,
1084
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
44 // URL of authentication token server
1126
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
45 'annotationTokenUrl' : 'http://libcoll.mpiwg-berlin.mpg.de/libviewa/template/token/getLoginToken',
1132
d47513632da5 additional annotationSafeTokenUrl for https url, used with passwords.
robcast
parents: 1129
diff changeset
46 // URL of safe authentication token server
d47513632da5 additional annotationSafeTokenUrl for https url, used with passwords.
robcast
parents: 1129
diff changeset
47 'annotationSafeTokenUrl' : 'https://libcoll.mpiwg-berlin.mpg.de/libviewa/template/token/getLoginToken',
1126
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
48 //'annotationTokenUrl' : 'http://localhost:8080/test/docuviewa/template/token/getLoginToken',
1125
f1be20adc98b annotatorPlugins is now a list of plugin names (preserving order).
robcast
parents: 1123
diff changeset
49 // list of Annotator plugins
1126
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
50 'annotatorPlugins' : ['Auth', 'Permissions', 'Store', 'Markdown', 'DigilibIntegrator']
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
51 //'annotatorPlugins' : ['Store', 'Markdown', 'DigilibIntegrator']
1123
1fad569ccb4f provide annotator javascript for digilib.annotator plugin.
robcast
parents: 1112
diff changeset
52 };
1084
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
53 var $div = $('div#digilib');
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
54 $div.digilib(opts);
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
55 });
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
56
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
57 </script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
58 </head>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
59
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
60 <body>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
61 <div id="digilib">
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
62 <p>digilib doesn't work! Please switch on Javascript or notify the server administrator!</p>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
63 <img src="http://digilib.berlios.de/images/digilib-logo-big.png" />
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
64 </div>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
65 </body>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
66 </html>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
67