equal
deleted
inserted
replaced
1 Rkns.Ldt = {} |
1 Rkns.Ldt = {} |
|
2 |
|
3 Rkns.Ldt.Bin = function(_renkan, _opts) { |
|
4 if (_opts.ldt_type) { |
|
5 var resclass = Rkns.Ldt[_opts.ldt_type+"Bin"]; |
|
6 if (resclass) { |
|
7 return new resclass(_renkan, _opts); |
|
8 } |
|
9 } |
|
10 console.error("No such LDT Bin Type"); |
|
11 } |
2 |
12 |
3 Rkns.Ldt.ProjectBin = Rkns.Utils.inherit(Rkns._BaseBin); |
13 Rkns.Ldt.ProjectBin = Rkns.Utils.inherit(Rkns._BaseBin); |
4 |
14 |
5 Rkns.Ldt.ProjectBin.prototype.tagTemplate = Rkns._.template( |
15 Rkns.Ldt.ProjectBin.prototype.tagTemplate = Rkns._.template( |
6 '<li class="Rk-Bin-Item" draggable="true" data-image="<%-static_url%>img/ldt-tag.png" data-uri="<%=ldt_platform%>ldtplatform/ldt/front/search/?search=<%=encodedtitle%>&field=all" data-title="<%-title%>" data-description="Tag \'<%-title%>\'">' |
16 '<li class="Rk-Bin-Item" draggable="true" data-image="<%-static_url%>img/ldt-tag.png" data-uri="<%=ldt_platform%>ldtplatform/ldt/front/search/?search=<%=encodedtitle%>&field=all" data-title="<%-title%>" data-description="Tag \'<%-title%>\'">' |
11 '<li class="Rk-Bin-Item" draggable="true" data-image="<%=image%>" data-uri="<%=ldt_platform%>ldtplatform/ldt/front/player/<%=mediaid%>/#id=<%=annotationid%>" data-title="<%-title%>" data-description="<%-description%>">' |
21 '<li class="Rk-Bin-Item" draggable="true" data-image="<%=image%>" data-uri="<%=ldt_platform%>ldtplatform/ldt/front/player/<%=mediaid%>/#id=<%=annotationid%>" data-title="<%-title%>" data-description="<%-description%>">' |
12 + '<img class="Rk-Ldt-Annotation-Icon" src="<%=image%>"/><h4><%=htitle%></h4><p><%=hdescription%></p><p>Start: <%=start%>, End: <%=end%>, Duration: <%=duration%></p><div class="Rk-Clear"></div></li>' |
22 + '<img class="Rk-Ldt-Annotation-Icon" src="<%=image%>"/><h4><%=htitle%></h4><p><%=hdescription%></p><p>Start: <%=start%>, End: <%=end%>, Duration: <%=duration%></p><div class="Rk-Clear"></div></li>' |
13 ); |
23 ); |
14 |
24 |
15 Rkns.Ldt.ProjectBin.prototype._init = function(_renkan, _opts) { |
25 Rkns.Ldt.ProjectBin.prototype._init = function(_renkan, _opts) { |
|
26 console.log("Initializing Project Bin"); |
16 this.renkan = _renkan; |
27 this.renkan = _renkan; |
17 this.proj_id = _opts.project_id; |
28 this.proj_id = _opts.project_id; |
18 this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/"; |
29 this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/"; |
19 this.title_$.html(_opts.title); |
30 this.title_$.html(_opts.title); |
20 this.title_icon_$.addClass('Rk-Ldt-Title-Icon'); |
31 this.title_icon_$.addClass('Rk-Ldt-Title-Icon'); |