integration/js/segmentapi-serializer.js
changeset 123 679809037606
parent 50 89e152523cb6
child 154 60ca7678f074
equal deleted inserted replaced
121:839efd6eddf1 123:679809037606
    14             _ann.setMedia(_s.iri_id);
    14             _ann.setMedia(_s.iri_id);
    15             _ann.title = _s.title;
    15             _ann.title = _s.title;
    16             _ann.description = _s.abstract;
    16             _ann.description = _s.abstract;
    17             _ann.begin = new IriSP.Model.Time(_s.start_ts);
    17             _ann.begin = new IriSP.Model.Time(_s.start_ts);
    18             _ann.end = new IriSP.Model.Time(_s.start_ts + _s.duration);
    18             _ann.end = new IriSP.Model.Time(_s.start_ts + _s.duration);
    19             _ann.keywords = _s.tags.split(",");
    19             _ann.keywords = (_s.tags ? _s.tags.split(",") : []);
    20             _ann.project_id = _s.project_id;
    20             _ann.project_id = _s.project_id;
    21             _annotationlist.push(_ann);
    21             _annotationlist.push(_ann);
    22         }
    22         }
    23         
    23         
    24         if (typeof _data.objects !== "undefined") {
    24         if (typeof _data.objects !== "undefined") {