# HG changeset patch
# User hamidouk
# Date 1327397128 -3600
# Node ID 5e7ec99d4f1e588da3952351e4c45df20ca52ddc
# Parent d1051c45cff53ccca8ddac747ab69261eb007881
updated player version.
diff -r d1051c45cff5 -r 5e7ec99d4f1e src/ldt/ldt/static/ldt/js/LdtPlayer-release.js
--- a/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Mon Jan 23 16:54:16 2012 +0100
+++ b/src/ldt/ldt/static/ldt/js/LdtPlayer-release.js Tue Jan 24 10:25:28 2012 +0100
@@ -1085,7 +1085,7 @@
IriSP.annotation_template = "{{! template for an annotation displayed in a segmentWidget }}
";
IriSP.annotationWidget_template = "{{! template for the annotation widget }}";
IriSP.annotation_loading_template = "{{! template shown while the annotation widget is loading }}";
-IriSP.annotationsListWidget_template = "{{! template for the annotation list widget }}";
+IriSP.annotationsListWidget_template = "{{! template for the annotation list widget }}";
IriSP.arrowWidget_template = "";
IriSP.createAnnotationWidget_template = "{{! template for the annotation creation widget }}";
IriSP.createAnnotationWidget_festivalCinecast_template = "{{! template for the annotation creation widget specific for the cinecast festival}}";
@@ -2376,14 +2376,15 @@
for (i = 0; i < annotations.length; i++) {
var annotation = annotations[i];
-
+ console.log(annotation);
console.log(view_types, annotation.meta["id-ref"]);
/* filter the annotations whose type is not the one we want */
+ /* We want _all_ the annotations.
if (typeof(annotation.meta) !== "undefined" && typeof(annotation.meta["id-ref"]) !== "undefined"
&& !IriSP.underscore.include(view_types, annotation.meta["id-ref"])) {
continue;
}
-
+ */
var a = annotation;
var obj = {};
@@ -2392,7 +2393,7 @@
obj["desc"] = a.content.description;
obj["begin"] = IriSP.msToTime(annotation.begin);
obj["end"] = IriSP.msToTime(annotation.end);
-
+ obj["url"] = document.location.href.split("#")[0] + "/" + annotation.meta["project"];
l.push(obj);
}
console.log(l);