-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
458 lines (441 loc) · 20.6 KB
/
index.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
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
<!DOCTYPE html>
<html lang="it">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Annotaria</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.11.3/themes/smoothness/jquery-ui.css">
<link rel="stylesheet" href="css/jats-preview.css">
<link rel="stylesheet" href="css/style.css">
<script src="http://code.jquery.com/jquery-1.10.1.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="http://code.jquery.com/ui/1.11.3/jquery-ui.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="js/app.js"></script>
<script src="js/prototype.js"></script>
<script src="js/notes.js"></script>
<script src="js/document.js"></script>
<script src="js/query.js"></script>
</head>
<body>
<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand " href="#">Leggotaria</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-left">
<li class="active"><a href="#">Home</a></li>
<li><a href="#" role="button" data-toggle="modal" data-target="#help">Help</a></li>
<li><a href="#" role="button" data-toggle="modal" data-target="#about">About</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#" id="manage-nav-button" class="hide" role="button" data-toggle="modal" data-target="#manage-local-annotation" onclick="listLocalNotes();"><span class="glyphicon glyphicon-list"> </span><span class="manage-span">Manage Annotation</span></a></li>
<li><a href="#" id="annote-nav-button" class="hide" role="button" data-toggle="modal" data-target="#annote" onclick="saveSelection();">Annote</a></li>
<li class="dropdown">
<a id="mode" href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-search"> </span>Reader <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a id="sel_reader" href="#"><span class="glyphicon glyphicon-search"> </span>Reader</a></li>
<li><a id="sel_annotator" href="#" role="button" data-toggle="modal" data-backdrop="static" data-target="#modalProvenance"><span class="glyphicon glyphicon-pencil"> </span>Annotator</a></li>
</ul>
</li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<!-- End Fixed navbar -->
<!-- Central part -->
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-4 col-lg-4 sidebar"> <!-- sider tab -->
<ul id="siderTab" class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#Documenti" id="Documenti-tab" role="tab" data-toggle="tab" aria-controls="Documetni" aria-expanded="true">Documenti</a></li>
<li role="presentation"><a href="#filter" role="tab" id="filter-tab" data-toggle="tab" aria-controls="filter">Filtri</a></li>
<li role="presentation"><a href="#Info" role="tab" id="Info-tab" data-toggle="tab" aria-controls="Info">Info</a></li>
</ul>
<!-- tab-content -->
<div id="siderTabContent" class="tab-content">
<div role="tabpanel" class="tab-pane fade in active" id="Documenti" aria-labelledBy="Documenti-tab">
<!-- document list -->
<div id="cerca" class="input-group input-group-sm">
<span class="input-group-addon"> Cerca </span>
<input type="text" class="form-control" placeholder="Document Name">
</div>
<!-- List group -->
<div class="list-group" id = "docList"></div>
<!-- end document list -->
</div>
<div role="tabpanel" class="tab-pane fade" id="filter" aria-labelledBy="filter-tab">
<div class="btn-group btn-group-justified" role="group" aria-label="selectAll_None">
<a class="btn btn-sm btn-link" id="filter-all" onclick="selectFilterAll()">ALL</a>
<a class="btn btn-sm btn-link" id="filter-none" onclick="selectFilterNone()">NONE</a>
</div>
<div class="row">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
<div class="checkbox">
<label>
<input type="checkbox" class="colori" checked value="denotesPerson">
Persona
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" class="colori" checked value="denotesPlace">
Luogo
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" class="colori" checked value="denotesDisease">
Malattia
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" class="colori" checked value="hasSubject">
Argomento
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" class="colori" checked value="relatesTo">
Collegamento
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" class="colori" checked value="hasClarityScore">
Chiarezza
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" class="colori" checked value="hasOriginalityScore">
Originalità
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" class="colori" checked value="hasFormattingScore">
Giudizio
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" class="colori" checked value="cites">
Citazione
</label>
</div>
<div class="checkbox">
<label>
<input type="checkbox" class="colori" checked value="hasComment">
Commenti
</label>
</div>
</div><!-- .col-xs-10 .col-sm-10 .col-md-10 .col-lg-10 -->
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<div class="checkbox">
<div class="filter-round denotesPerson"> </div>
</div>
<div class="checkbox">
<div class="filter-round denotesPlace"> </div>
</div>
<div class="checkbox">
<div class="filter-round denotesDisease"> </div>
</div>
<div class="checkbox">
<div class="filter-round hasSubject"> </div>
</div>
<div class="checkbox">
<div class="filter-round relatesTo"> </div>
</div>
<div class="checkbox">
<div class="filter-round hasClarityScore"> </div>
</div>
<div class="checkbox">
<div class="filter-round hasOriginalityScore"> </div>
</div>
<div class="checkbox">
<div class="filter-round hasFormattingScore"> </div>
</div>
<div class="checkbox">
<div class="filter-round cites"> </div>
</div>
<div class="checkbox">
<div class="filter-round hasComment"> </div>
</div>
</div>
</div><!-- /.row -->
<hr>
<form role="form">
<fieldset>
<div class="form-group">
<div class="checkbox">
<label for="filterDate">
<input type="checkbox" value="selDate" onClick="toggleFilterData()">
Data:
</label>
</div>
<input type="text" data-type="date" class="form-control" placeholder="YYYY-MM-DD" id="filterDate">
</div>
<div class="form-group">
<div class="checkbox">
<label for="filterAuthor">
<input type="checkbox" value="selAuthor" onClick="toggleFilterAuthor()">
Autore:
</label>
</div>
<input type="text" class="form-control" placeholder="Nome autore" id="filterAuthor">
</div>
</fieldset>
</form>
</div>
<div role="tabpanel" class="tab-pane fade" id="Info" aria-labelledBy="Info-tab">
<ul id="metaTab" class="nav nav-tabs hide" role="tablist"></ul>
<div id="documentAnnotation" class="tab-content"></div>
</div>
</div>
</div> <!-- end sider tab -->
<div class="col-md-offset-4 col-lg-offset-4 col-xs-12 col-sm-12 col-md-8 col-lg-8 doc-area"> <!-- document area -->
<ul id="documentTab" class="nav nav-tabs" role="tablist">
<li role="presentation" class="active doc-tabs"><a href="#Doc1" id="Doc1-tab" role="tab" data-toggle="tab" aria-controls="Doc1" aria-expanded="true"><button type="button" class="close" data-dismiss="modal" aria-hidden="true"> ×</button>Doc1</a></li>
</ul>
<div id="documentTabContent" class="tab-content">
<div role="tabpanel" class="tab-pane fade in active docStyle" id="Doc1" aria-labelledBy="Doc1-tab">
<h1><p class="text-justify">Benvenuti su Leggo/Anno-taria!</p></h1>
<p>Per informazioni sulle funzionalità cliccare sul pulsante <button>Help</button> .</p>
<p>Per informazioni sugli autori cliccare sul pulsante <button>About</button> .</p>
</div>
</div>
</div> <!-- end document area -->
</div> <!-- row -->
</div> <!-- container -->
<!-- Footer -->
<footer>
<div class="container">
<p class="text-muted">© PapàIgloo</p>
</div>
</footer>
<!-- Modal -->
<div class="modal fade" id="about" tabindex="-1" role="dialog" aria-labelledby="About Annotaria" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="modalAboutLabel">About Annotaria</h4>
</div>
<div class="modal-body">
<p>Progetto del corso di Tecnologie Web all'Università di Bologna</p>
<p>Autors: Abrignani Federico, Cazzoli Lorenzo, <del>Ferrari Daniele</del>, Gozzoli Alessio.</p>
<p>© 2014 PapàIgloo. All right reserved.</p>
</div>
</div>
</div>
</div>
<div class="modal fade" id="help" tabindex="-1" role="dialog" aria-labelledby="Help Annotaria" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="modalHelpLabel">Help</h4>
</div>
<div class="modal-body">
<!--<p>Per aprire un documento selezionarlo dalla lista dei documento sul lato sinistro.</p>-->
<p>Per <em><u>filtrare</u></em> le annotazioni in base alla tipologia , spuntare le checkbox della lista <button>Filtri</button> .</p>
<p>Per <em><u>visualizzare le annotazioni</u></em> su documento scegliere <button>Info</button> .</p>
<p>Per <em><u>creare annotazioni</u></em> , diventare prima Annotatore cliccando sul pulsante <button><span class="glyphicon glyphicon-search"> </span>Reader</button> della navigation-bar e scegliere <button><span class="glyphicon glyphicon-pencil"> </span>Annotator</button> dal menu a tendina , e cliccare sul pulsante <button>Annote</button> della navigation-bar e compilare il widget.</p>
<p>Per le <em><u>annotazioni su frammento</u></em> , <strong>PRIMA</strong> selezionare del testo dal documento , cliccare sul pulsante <button>Annote</button> della navigation-bar , cliccare sul pulsante <span class="glyphicon glyphicon-refresh" > </span> e compilare il widget dell'annotazione su frammento. </p>
<p>Tutte le <em><u>annotazioni</u></em> effettuate possono essere visualizzate cliccando sul pulsante <span class="glyphicon glyphicon-list"> </span> della navigation-bar.</p>
<p>Per <em><u>eliminare e/o modificare le annotazioni temporanee</u></em> , cliccare sul pulsante <span class="glyphicon glyphicon-list"> </span> della navigation-bar , cliccare sul pulsante <span class="glyphicon glyphicon-trash"> </span>(per la cancellazione) / <span class="glyphicon glyphicon-cog"> </span>(per la modifica) .</p>
<p>Per <em><u>salvare le annotazioni</u></em> sul TripleStore cliccare sul pulsane <button class="btn btn-success">Send</button> del widget apertosi cliccando sul pulsante <span class="glyphicon glyphicon-list"> </span>.</p>
</div>
</div>
</div>
</div>
<!-- form user provenance -->
<div class="modal fade" id="modalProvenance" tabindex="-1" role="dialog" aria-labelledby="Annotator data" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title" id="modalProvenanceLabel">Annotator provenance</h4>
</div>
<div class="modal-body">
<form class="form-horizontal" role="form">
<div class="form-group">
<label class="control-label col-xs-4 col-sm-4 col-md-4 col-lg-4" for="usr_name">Nome e Cognome:</label>
<div class="col-xs-7 col-sm-7 col-md-7 col-lg-7">
<input type="text" class="form-control" id="usr_name" placeholder="Enter name" required="required">
</div>
</div>
<div class="form-group">
<label class="control-label col-xs-4 col-sm-4 col-md-4 col-lg-4" for="usr_email">Email:</label>
<div class="col-xs-7 col-sm-7 col-md-7 col-lg-7">
<input type="email" class="form-control" id="usr_email" placeholder="Enter email address" required="required">
</div>
</div>
<div class="form-group">
<div class=" col-sm-offset-4 col-sm-7">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-success" id="submitProvenance" onclick="setProvenance()" >Login</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="modal fade" id="annote" tabindex="-1" role="dialog" aria-labelledby="Create Annotation" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="myModalLabel"><button type="button" class="switch" onclick="switchAnnotationType();"><span class="glyphicon glyphicon-refresh" > </span></button>Annote</h4>
</div>
<div class="modal-body">
<form class="form" role="form">
<div class="form-group" id="documentAnnotationForm">
<label for="documentAnnotationType">Select document annotation:</label>
<select class="form-control" id="documentAnnotationType" onclick="showAnnotationForm();">
<option selected>Select annotation</option>
<option value="hasAuthor">Autore</option>
<option value="hasPublisher">Editore </option>
<option value="hasPublicationYear">Anno </option>
<option value="hasTitle">Titolo </option>
<option value="hasAbstract">Sommario </option>
<option value="hasShortTitle">Titolo breve </option>
<option value="hasComment">Commento </option>
</select>
</div>
<div class="form-group hide" id="fragmentAnnotationForm">
<label for="fragmentAnnotationType">Select fragment annotation:</label>
<select class="form-control" id="fragmentAnnotationType" onclick="showAnnotationForm();">
<option selected>Select annotation</option>
<option value="denotesPerson">Persona </option>
<option value="denotesPlace">Luogo </option>
<option value="denotesDisease">Malattia </option>
<option value="hasSubject">Argomento </option>
<option value="relatesTo">Collegamento </option>
<option value="hasClarityScore">Chiarezza </option>
<option value="hasOriginalityScore">Originalità </option>
<option value="hasFormattingScore">Giudizio </option>
<option value="cites">Citazione </option>
<option value="hasComment">Commenti </option>
</select>
</div>
<!-- Widget -->
<div class="form-group hide" id="widShortText">
<textarea id="valShortText" class="form-control" maxlenght="80" ></textarea>
</div>
<div class="form-group hide" id="widLongText">
<textarea id="valLongText" class="form-control" ></textarea>
</div>
<div class="form-group hide" id="widDate">
<label>Select year</label>
<select class="form-control" id="valDate">
</select>
</div>
<div class="form-group hide" id="widNumber">
<label>Select number</label>
<select class="form-control" id="valNumber">
</select>
</div>
<div class="form-group hide" id="widChoice">
<label>Select choice</label>
<select class="form-control" id="valChoice">
<option value='excellent'>excellent</option>
<option value='good'>good</option>
<option value='fair'>fair</option>
<option value='poor'>poor</option>
<option value='very poor'>very poor</option>
</select>
</div>
<div class="form-group hide" id="widInstance">
<div class="radio">
<label><input type="radio" checked name="InstanceRadio" value="existent" onclick="inputFade('InstanceSelect','InstanceText');" >Select existent </label>
</div>
<select class="form-control" id="InstanceSelect">
<option></option>
</select>
<div class="radio">
<label><input type="radio" name="InstanceRadio" value="add" onclick="inputFade('InstanceText','InstanceSelect');">Add new </label>
</div>
<input type="text" class="form-control" id="InstanceText">
</div>
<div class="form-group hide" id="widDbpedia">
<div class="row">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10">
<input type="text" class="form-control" id="DbpediaText" placeholder="Cosa vuoi cercare?">
</div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2">
<button type="button" class="btn btn-default" id="DbpediaSearch">cerca</button>
</div>
</div>
<br />
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
<select class="form-control " id="DbpediaSelect">
<option></option>
</select>
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-success" >Crea</button>
</div>
</div>
</div>
</div>
<!-- finestra modale per la gestione delle annotazioni -->
<div class="modal fade" id="manage-local-annotation" tabindex="-1" role="dialog" aria-labelledby="Create Annotation" aria-hidden="true">
<div class="modal-dialog modal-md">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Manage local Annotation</h4>
</div>
<div class="modal-body">
<div class="list-group"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-success" onclick="insertTripleStore();">Send</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="Annotation-show" tabindex="-1" role="dialog" aria-labelledby="Create Annotation" aria-hidden="true">
<div class="modal-dialog modal-md">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title">Annotation</h4>
</div>
<div class="modal-body">
<div class="form-group">
<select class="form-control" id="annShowSelect"></select>
</div>
<div class="alert alert-info" role="alert">
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</body>
</html>