diff -r 2fad193bae98 -r 805d85b3f390 client/js/ldtjson-bin.js --- a/client/js/ldtjson-bin.js Wed Aug 22 16:50:42 2012 +0200 +++ b/client/js/ldtjson-bin.js Tue Aug 28 18:26:13 2012 +0200 @@ -1,17 +1,18 @@ Rkns.Bins.LdtJson = Rkns.Utils.inherit(Rkns.Bins._Base); Rkns.Bins.LdtJson.prototype.tagTemplate = Rkns._.template( - '
  • ' + '
  • ' + '

    <%-title%>

  • ' ); Rkns.Bins.LdtJson.prototype.annotationTemplate = Rkns._.template( - '
  • ' + '
  • ' + '

    <%-title%>

    <%-description%>

    Start: <%=start%>, End: <%=end%>, Duration: <%=duration%>

  • ' ); Rkns.Bins.LdtJson.prototype._init = function(_renkan, _opts) { this.proj_id = _opts.project_id; + this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/"; this.title_$.html(_opts.title); var _this = this; function convertTC(_ms) { @@ -34,7 +35,7 @@ return _res; } Rkns.$.getJSON( - 'http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/cljson/id/' + this.proj_id + '?callback=?', + this.ldt_platform + 'ldtplatform/ldt/cljson/id/' + this.proj_id + '?callback=?', function(_data) { var _html = '
  • Tags

  • ', _projtitle = _data.meta["dc:title"]; @@ -42,6 +43,7 @@ _html += Rkns._(_data.tags).map(function(_tag) { var _title = _tag.meta["dc:title"] return _this.tagTemplate({ + ldt_platform: _this.ldt_platform, title: _title, encodedtitle : encodeURIComponent(_title) }) @@ -52,6 +54,7 @@ _title = _annotation.content.title.replace(_description,""), _duration = _annotation.end - _annotation.begin; return _this.annotationTemplate({ + ldt_platform: _this.ldt_platform, title: _title, description: _description, start: convertTC(_annotation.begin),