annotate webapp/src/main/webapp/jquery/digilib-ann.html @ 1126:f14220f939d5

add annotationsReadOnly mode.
author robcast
date Fri, 09 Nov 2012 18:53:13 +0100
parents f1be20adc98b
children 9e85efcfbb0c
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
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
14 <script type="text/javascript" src="jquery.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
15 <script type="text/javascript" src="jquery.cookie.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
16 <script type="text/javascript" src="jquery.digilib.js"></script>
1126
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
17 <link rel="stylesheet" type="text/css" href="jquery.digilib.css" />
1084
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
18 <script type="text/javascript" src="jquery.digilib.geometry.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
19 <script type="text/javascript" src="jquery.digilib.arrows.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
20 <script type="text/javascript" src="jquery.range.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
21 <link rel="stylesheet" type="text/css" href="jquery.range.css" />
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
22 <script type="text/javascript" src="jquery.digilib.buttons.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
23 <script type="text/javascript" src="jquery.digilib.dialogs.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
24 <script type="text/javascript" src="jquery.digilib.sliders.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
25 <script type="text/javascript" src="jquery.digilib.birdseye.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
26 <script type="text/javascript" src="jquery.digilib.marks.js"></script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
27 <script type="text/javascript" src="jquery.digilib.regions.js"></script>
1123
1fad569ccb4f provide annotator javascript for digilib.annotator plugin.
robcast
parents: 1112
diff changeset
28 <script type="text/javascript" src="showdown.js"></script>
1fad569ccb4f provide annotator javascript for digilib.annotator plugin.
robcast
parents: 1112
diff changeset
29 <script type="text/javascript" src="annotator-dl.js"></script>
1fad569ccb4f provide annotator javascript for digilib.annotator plugin.
robcast
parents: 1112
diff changeset
30 <link rel="stylesheet" type="text/css" href="annotator.min.css" />
1fad569ccb4f provide annotator javascript for digilib.annotator plugin.
robcast
parents: 1112
diff changeset
31 <script type="text/javascript" src="jquery.digilib.annotator.js"></script>
1084
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
32
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
33 <script type="text/javascript">
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
34 $(document).ready(function(){
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
35 var opts = {
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
36 interactionMode : 'fullscreen',
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
37 showRegionNumbers : true,
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
38 // URL of annotation server
1126
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
39 'annotationServerUrl' : 'http://tuxserve03.mpiwg-berlin.mpg.de/AnnotationManager/annotator',
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
40 //'annotationServerUrl' : 'http://localhost:18080/AnnotationManager/annotator',
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
41 // are annotations read-only?
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
42 'annotationsReadOnly' : false,
1084
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
43 // URL of authentication token server
1126
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
44 'annotationTokenUrl' : 'http://libcoll.mpiwg-berlin.mpg.de/libviewa/template/token/getLoginToken',
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
45 //'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
46 // list of Annotator plugins
1126
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
47 'annotatorPlugins' : ['Auth', 'Permissions', 'Store', 'Markdown', 'DigilibIntegrator']
f14220f939d5 add annotationsReadOnly mode.
robcast
parents: 1125
diff changeset
48 //'annotatorPlugins' : ['Store', 'Markdown', 'DigilibIntegrator']
1123
1fad569ccb4f provide annotator javascript for digilib.annotator plugin.
robcast
parents: 1112
diff changeset
49 };
1084
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
50 var $div = $('div#digilib');
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
51 $div.digilib(opts);
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
52 });
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
53
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
54 </script>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
55 </head>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
56
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
57 <body>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
58 <div id="digilib">
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
59 <p>digilib doesn't work! Please switch on Javascript or notify the server administrator!</p>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
60 <img src="http://digilib.berlios.de/images/digilib-logo-big.png" />
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
61 </div>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
62 </body>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
63 </html>
1d3e8f853b9c annotations basically working.
robcast
parents:
diff changeset
64