diff -r 61c45e41a515 -r eaaa1efce396 client/js/ldtjson-bin.js --- a/client/js/ldtjson-bin.js Tue Oct 04 16:40:25 2016 +0200 +++ b/client/js/ldtjson-bin.js Thu Jan 05 16:26:07 2017 +0100 @@ -17,12 +17,11 @@ var ProjectBin = Ldt.ProjectBin = Rkns.Utils.inherit(Rkns._BaseBin); -ProjectBin.prototype.tagTemplate = renkanJST['templates/ldtjson-bin/tagtemplate.html']; - -ProjectBin.prototype.annotationTemplate = renkanJST['templates/ldtjson-bin/annotationtemplate.html']; ProjectBin.prototype._init = function(_renkan, _opts) { this.renkan = _renkan; + this.tagTemplate = _renkan.options.templates['templates/ldtjson-bin/tagtemplate.html']; + this.annotationTemplate = _renkan.options.templates['templates/ldtjson-bin/annotationtemplate.html']; this.proj_id = _opts.project_id; this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/"; this.title_$.html(_opts.title); @@ -154,10 +153,10 @@ var ResultsBin = Ldt.ResultsBin = Rkns.Utils.inherit(Rkns._BaseBin); -ResultsBin.prototype.segmentTemplate = renkanJST['templates/ldtjson-bin/segmenttemplate.html']; ResultsBin.prototype._init = function(_renkan, _opts) { this.renkan = _renkan; + this.segmentTemplate = _renkan.options.templates['templates/ldtjson-bin/segmenttemplate.html']; this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/"; this.max_results = _opts.max_results || 50; this.search = _opts.search;