|
148
|
1 |
{% extends "spel_base.html" %} |
|
|
2 |
{% load static %} |
|
|
3 |
|
|
|
4 |
{% block page_title %}Corpus{% endblock %} |
|
|
5 |
|
|
|
6 |
{% block spel_content %} |
|
|
7 |
<section style="width: 1070px; margin: 0 auto"> |
|
|
8 |
<h1>Démonstrateur</h1> |
|
|
9 |
<select onchange="this.options[this.selectedIndex].value && (window.location = this.options[this.selectedIndex].value);"> |
|
|
10 |
<option value="">Sélectionner...</option> |
|
|
11 |
{% for c in contents %} |
|
149
|
12 |
<option value="?p={{ c.front_project.ldt_id }}" {% if current_ctt_id == c.front_project.ldt_id %}selected{% endif %}>{{ c.title }}</option> |
|
148
|
13 |
{% endfor %} |
|
|
14 |
</select> |
|
|
15 |
<ul> |
|
|
16 |
</ul> |
|
|
17 |
<div id="LdtPlayer"></div> |
|
|
18 |
<div id="AnnotationsListContainer"></div> |
|
|
19 |
</section> |
|
149
|
20 |
{% if current_ctt_id != '' %} |
|
148
|
21 |
<script type="text/javascript" src="{% static 'spel/lib/jquery.min.js' %}"></script> |
|
|
22 |
<script type="text/javascript" src="{% static 'spel/lib/jquery-ui.min.js' %}"></script> |
|
|
23 |
<script type="text/javascript" src="{% static 'spel/metadataplayer/LdtPlayer-core.js' %}"></script> |
|
|
24 |
<!--script type="text/javascript" src="{% static 'spel/metadataplayer/spel-serializer.js' %}"></script--> |
|
|
25 |
<script type="text/javascript"> |
|
|
26 |
function getURLParameter(name) { |
|
|
27 |
return decodeURI( |
|
|
28 |
(RegExp(name + '=' + '(.+?)(&|$)').exec(location.search)||[,null])[1] |
|
|
29 |
); |
|
|
30 |
} |
|
|
31 |
$(document).ready(function(){ |
|
|
32 |
// Get group array number |
|
|
33 |
var g = getURLParameter("g"); |
|
|
34 |
var d = getURLParameter("d"); |
|
|
35 |
var f = getURLParameter("f"); |
|
|
36 |
var p = getURLParameter("p");// project id |
|
|
37 |
if(typeof g=="string"){ |
|
|
38 |
|
|
|
39 |
IriSP.libFiles.defaultDir = "{% static 'spel/lib' %}"; |
|
|
40 |
IriSP.widgetsDir = "{% static 'spel/metadataplayer' %}"; |
|
|
41 |
var _metadata = { |
|
|
42 |
//url: "/data/" + d + "/" + g + "/cinelab" + ( (d!="opera") ? "_iri" : "" ) + ".json", |
|
|
43 |
url: "{% url 'projectjson_id' id='' %}" + p, |
|
|
44 |
//format: 'spel' |
|
|
45 |
format: 'ldt' |
|
|
46 |
}; |
|
|
47 |
var _config = { |
|
|
48 |
width : 550, |
|
|
49 |
container : 'LdtPlayer', |
|
|
50 |
default_options: { |
|
|
51 |
metadata: _metadata |
|
|
52 |
}, |
|
|
53 |
css : "{% static 'spel/metadataplayer/LdtPlayer-core.css' %}", |
|
|
54 |
widgets: [ |
|
|
55 |
/*{ |
|
|
56 |
type: "Title" |
|
|
57 |
},*/ |
|
|
58 |
{ |
|
|
59 |
type: "HtmlPlayer", /*ou HtmlPlayer si HTML5*/ |
|
|
60 |
//video: "/data/" + d + "/" + g + "/" + f, |
|
|
61 |
height: 320 |
|
|
62 |
}, |
|
|
63 |
{ type: "Slider" }, |
|
|
64 |
{ type: "Controller" }, |
|
|
65 |
{ |
|
149
|
66 |
type: "Segments", |
|
|
67 |
annotation_type: ["performance","discussion"] |
|
148
|
68 |
}, |
|
149
|
69 |
{ |
|
148
|
70 |
type: "Annotation", |
|
|
71 |
show_social: false, |
|
|
72 |
show_annotation_type: true, |
|
|
73 |
annotation_type: ["performance","discussion"] |
|
149
|
74 |
}, |
|
|
75 |
/*{ |
|
|
76 |
type: "MultiSegments", |
|
148
|
77 |
},*/ |
|
|
78 |
{ |
|
|
79 |
type: "Polemic", |
|
|
80 |
annotation_type: "interpretation", |
|
|
81 |
only_allow_zero_duration_annotations: false, |
|
149
|
82 |
search_by_default: false, |
|
148
|
83 |
polemics: [ |
|
|
84 |
{ |
|
149
|
85 |
keywords: [ "type_inter: Identification d'un problème" ], |
|
148
|
86 |
color: "#c00000" |
|
|
87 |
}, |
|
|
88 |
{ |
|
149
|
89 |
keywords: [ "type_inter: scène reprise" ], |
|
148
|
90 |
color: "#008000" |
|
|
91 |
}, |
|
|
92 |
{ |
|
149
|
93 |
keywords: [ "type_inter: intervention MES" ], |
|
148
|
94 |
color: "#0000f0" |
|
|
95 |
}, |
|
|
96 |
{ |
|
149
|
97 |
keywords: [ "type_inter: Adaptation du texte" ], |
|
148
|
98 |
color: "#a6cee3" |
|
|
99 |
}, |
|
|
100 |
{ |
|
149
|
101 |
keywords: [ "type_inter: Décision" ], |
|
148
|
102 |
color: "#1f78b4" |
|
|
103 |
}, |
|
|
104 |
{ |
|
149
|
105 |
keywords: [ "type_inter: performance d'un(e) comédien(ne)" ], |
|
148
|
106 |
color: "#b2df8a" |
|
|
107 |
}, |
|
|
108 |
{ |
|
|
109 |
keywords: [ "type_inter: Improvisation" ], |
|
149
|
110 |
color: "#33a02c" |
|
|
111 |
}, |
|
|
112 |
{ |
|
|
113 |
keywords: [ "type_inter: Allemande de la scène" ], |
|
148
|
114 |
color: "#fb9a99" |
|
|
115 |
}, |
|
|
116 |
{ |
|
149
|
117 |
keywords: [ "type_inter: Filage de la scène" ], |
|
148
|
118 |
color: "#e31a1c" |
|
|
119 |
}, |
|
|
120 |
{ |
|
149
|
121 |
keywords: [ "type_inter: Interpétation alternative de mise en scène" ], |
|
148
|
122 |
color: "#fdbf6f" |
|
|
123 |
}, |
|
|
124 |
{ |
|
149
|
125 |
keywords: [ "type_inter: Intervention de la technique" ], |
|
148
|
126 |
color: "#ff7f00" |
|
|
127 |
}, |
|
|
128 |
{ |
|
|
129 |
keywords: [ "type_inter: Question d'espace" ], |
|
|
130 |
color: "#cab2d6" |
|
|
131 |
}, |
|
|
132 |
{ |
|
|
133 |
keywords: [ "type_inter: Conflit" ], |
|
|
134 |
color: "#6a3d9a" |
|
|
135 |
}, |
|
|
136 |
{ |
|
149
|
137 |
keywords: [ "type_inter: Demande d'un(e) comédien(ne)" ], |
|
148
|
138 |
color: "#ffff99" |
|
|
139 |
}, |
|
|
140 |
{ |
|
149
|
141 |
keywords: [ "type_inter: Référence au réel" ], |
|
148
|
142 |
color: "#b15928" |
|
|
143 |
}, |
|
|
144 |
{ |
|
149
|
145 |
keywords: [ "type_inter: Interprétation du texte" ], |
|
|
146 |
color: "#8e0152" |
|
|
147 |
}, |
|
|
148 |
{ |
|
148
|
149 |
keywords: [ "type_inter: Parole à l'acteur/acrtrice" ], |
|
149
|
150 |
color: "#7f3b08" |
|
148
|
151 |
}, |
|
|
152 |
{ |
|
149
|
153 |
keywords: [ "type_inter: Parole à l'acteur/actrice" ], |
|
148
|
154 |
color: "#7f3b08" |
|
|
155 |
}, |
|
|
156 |
{ |
|
|
157 |
keywords: [ "type_inter: Doutes" ], |
|
|
158 |
color: "#80cdc1" |
|
|
159 |
}, |
|
|
160 |
{ |
|
|
161 |
keywords: [ "type_inter: Intervention assistant metteur en scène" ], |
|
|
162 |
color: "#ffffcc" |
|
|
163 |
}, |
|
|
164 |
{ |
|
|
165 |
keywords: [ "type_inter: Remise en cause" ], |
|
|
166 |
color: "#0000f0" |
|
|
167 |
}, |
|
|
168 |
] |
|
149
|
169 |
}, |
|
148
|
170 |
{ |
|
|
171 |
type: "Annotation", |
|
|
172 |
annotation_type: "interpretation", |
|
|
173 |
show_social: false, |
|
|
174 |
arrow_position: 0 |
|
149
|
175 |
}, |
|
148
|
176 |
{ |
|
|
177 |
type: "SpelSyncHtml", |
|
|
178 |
container: "AnnotationsListContainer", |
|
|
179 |
height: 600, |
|
|
180 |
width: 500, |
|
|
181 |
src: ( (d!="opera") ? "{% url 'spel_ctb' %}" : "") |
|
|
182 |
}, |
|
|
183 |
{ |
|
|
184 |
type: "Mediafragment" |
|
|
185 |
} |
|
|
186 |
] |
|
|
187 |
}; |
|
|
188 |
_myPlayer = new IriSP.Metadataplayer(_config); |
|
|
189 |
} |
|
|
190 |
}); |
|
|
191 |
</script> |
|
149
|
192 |
{% endif %} |
|
148
|
193 |
{% endblock %} |