web/polemicaltimeline.php
changeset 779 e13084ff318b
parent 778 525f00c2d6ac
child 852 957175538495
--- a/web/polemicaltimeline.php	Fri Jan 25 18:49:33 2013 +0100
+++ b/web/polemicaltimeline.php	Mon Jan 28 18:28:06 2013 +0100
@@ -108,19 +108,16 @@
         _cookiematches = document.cookie.match(/PHPSESSID=([A-Za-z0-9]+)/),
         _cookie = (_cookiematches && _cookiematches.length > 1 ? _cookiematches[1] : undefined);
 
-<?php if ($use_protocol): ?>
     var _tracer = tracemanager.init_trace("test", {
-            url: "http://traces.advene.org:5000/",
+            url: "http://trail.dev.fabelier.org/",
             requestmode: "GET",
             syncmode: "sync",
             default_subject: "PolemicTweet"
         });
     _tracer.trace("Pt_LoadPage", {
-        url: document.location.href,
-        protocol_level: <?php echo $protocol_level; ?>,
-        cookie: _cookie
+        cookie: _cookie,
+        url: document.location.href
     });
-<?php endif; ?>
     
     IriSP.libFiles.defaultDir = "<?php echo(registry_url('libdir','js'));?>";
     IriSP.widgetsDir = "<?php echo(registry_url('ldtwidgets','js'));?>";
@@ -164,10 +161,14 @@
             },
 <?php if ($protocol_level > 1): ?>
             {
-                type: "MultiSegments"
+                type: "Segments",
+                annotation_type: "chap"
+            },
+            {
+                type: "Annotation",
+                annotation_type: "chap"
             },
             { type: "Tweet" },
-<?php if (!$use_protocol): ?>
             {
                 type: "Tagcloud",
                 container: "TagcloudContainer",
@@ -180,25 +181,17 @@
                 //foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}",
                 container: "AnnotationsListContainer"
             },
-/*            {
-                type: "Slideshare",
-                container: "Slideshare"
-        }, */
-<?php endif; ?>
 <?php endif; ?>
             { type: "Mediafragment"},
-<?php if ($use_protocol): ?>
             {
                 type: "Trace",
                 tracer: _tracer,
                 extend: {
                     cookie: _cookie,
-                    protocol_level: _protocol_level,
                     url: document.location.href
                 },
-                js_console: true
+                js_console: false
             }
-<?php endif; ?>
         ]
     };