client/js/ldtjson-bin.js
changeset 647 eaaa1efce396
parent 433 e457ec945e50
equal deleted inserted replaced
646:61c45e41a515 647:eaaa1efce396
    15     console.error("No such LDT Bin Type");
    15     console.error("No such LDT Bin Type");
    16 };
    16 };
    17 
    17 
    18 var ProjectBin = Ldt.ProjectBin = Rkns.Utils.inherit(Rkns._BaseBin);
    18 var ProjectBin = Ldt.ProjectBin = Rkns.Utils.inherit(Rkns._BaseBin);
    19 
    19 
    20 ProjectBin.prototype.tagTemplate = renkanJST['templates/ldtjson-bin/tagtemplate.html'];
       
    21 
       
    22 ProjectBin.prototype.annotationTemplate = renkanJST['templates/ldtjson-bin/annotationtemplate.html'];
       
    23 
    20 
    24 ProjectBin.prototype._init = function(_renkan, _opts) {
    21 ProjectBin.prototype._init = function(_renkan, _opts) {
    25     this.renkan = _renkan;
    22     this.renkan = _renkan;
       
    23     this.tagTemplate = _renkan.options.templates['templates/ldtjson-bin/tagtemplate.html'];
       
    24     this.annotationTemplate = _renkan.options.templates['templates/ldtjson-bin/annotationtemplate.html'];
    26     this.proj_id = _opts.project_id;
    25     this.proj_id = _opts.project_id;
    27     this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/";
    26     this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/";
    28     this.title_$.html(_opts.title);
    27     this.title_$.html(_opts.title);
    29     this.title_icon_$.addClass('Rk-Ldt-Title-Icon');
    28     this.title_icon_$.addClass('Rk-Ldt-Title-Icon');
    30     this.refresh();
    29     this.refresh();
   152     );
   151     );
   153 };
   152 };
   154 
   153 
   155 var ResultsBin = Ldt.ResultsBin = Rkns.Utils.inherit(Rkns._BaseBin);
   154 var ResultsBin = Ldt.ResultsBin = Rkns.Utils.inherit(Rkns._BaseBin);
   156 
   155 
   157 ResultsBin.prototype.segmentTemplate = renkanJST['templates/ldtjson-bin/segmenttemplate.html'];
       
   158 
   156 
   159 ResultsBin.prototype._init = function(_renkan, _opts) {
   157 ResultsBin.prototype._init = function(_renkan, _opts) {
   160     this.renkan = _renkan;
   158     this.renkan = _renkan;
       
   159     this.segmentTemplate = _renkan.options.templates['templates/ldtjson-bin/segmenttemplate.html'];
   161     this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/";
   160     this.ldt_platform = _opts.ldt_platform || "http://ldt.iri.centrepompidou.fr/";
   162     this.max_results = _opts.max_results || 50;
   161     this.max_results = _opts.max_results || 50;
   163     this.search = _opts.search;
   162     this.search = _opts.search;
   164     this.title_$.html('Lignes de Temps: "' + _opts.search + '"');
   163     this.title_$.html('Lignes de Temps: "' + _opts.search + '"');
   165     this.title_icon_$.addClass('Rk-Ldt-Title-Icon');
   164     this.title_icon_$.addClass('Rk-Ldt-Title-Icon');