equal
deleted
inserted
replaced
54 from_time: "from", |
54 from_time: "from", |
55 to_time: "to", |
55 to_time: "to", |
56 at_time: "at", |
56 at_time: "at", |
57 submit: "Submit", |
57 submit: "Submit", |
58 add_keywords_: "Add keywords:", |
58 add_keywords_: "Add keywords:", |
59 add_polemic_keywords_: "Add polemic keywords:", |
59 add_polemic_keywords_: "Add polemic attributes :", |
60 your_name_: "Your name:", |
60 your_name_: "Your name:", |
61 annotate_video: "Annotate this video", |
61 annotate_video: "Annotate this video", |
62 type_title: "Annotation title", |
62 type_title: "Annotation title", |
63 type_description: "Type the full contents of your annotation here.", |
63 type_description: "Type the full contents of your annotation here.", |
64 wait_while_processing: "Please wait while your annotation is being processed...", |
64 wait_while_processing: "Please wait while your annotation is being processed...", |
75 from_time: "de", |
75 from_time: "de", |
76 to_time: "à", |
76 to_time: "à", |
77 at_time: "à", |
77 at_time: "à", |
78 submit: "Envoyer", |
78 submit: "Envoyer", |
79 add_keywords_: "Ajouter des mots-clés\u00a0:", |
79 add_keywords_: "Ajouter des mots-clés\u00a0:", |
80 add_polemic_keywords_: "Ajouter des mots-clés polémiques\u00a0:", |
80 add_polemic_keywords_: "Ajouter des attributs polémiques\u00a0:", |
81 your_name_: "Votre nom\u00a0:", |
81 your_name_: "Votre nom\u00a0:", |
82 annotate_video: "Annoter cette vidéo", |
82 annotate_video: "Annoter cette vidéo", |
83 type_title: "Titre de l'annotation", |
83 type_title: "Titre de l'annotation", |
84 type_description: "Rédigez ici le contenu de votre annotation.", |
84 type_description: "Rédigez ici le contenu de votre annotation.", |
85 wait_while_processing: "Veuillez patienter pendant le traitement de votre annotation...", |
85 wait_while_processing: "Veuillez patienter pendant le traitement de votre annotation...", |
148 this.end = this.source.getDuration(); |
148 this.end = this.source.getDuration(); |
149 |
149 |
150 this.tag_prefix = this.tag_prefix || ""; |
150 this.tag_prefix = this.tag_prefix || ""; |
151 |
151 |
152 if (this.tag_titles && !this.tags) { |
152 if (this.tag_titles && !this.tags) { |
153 this.tags = IriSP._(this.tag_titles).map(function(_tag_title) { |
153 if(!(this.tag_titles.length==1 && this.tag_titles[0]=="")){ |
154 var _tag, |
154 this.tags = IriSP._(this.tag_titles).map(function(_tag_title) { |
155 _tags = _this.source.getTags().searchByTitle(_tag_title, true); |
155 var _tag, |
156 if (_tags.length) { |
156 _tags = _this.source.getTags().searchByTitle(_tag_title, true); |
157 _tag = _tags[0]; |
157 if (_tags.length) { |
158 } else { |
158 _tag = _tags[0]; |
159 _tag = new IriSP.Model.Tag(false, _this.source); |
159 } else { |
160 _this.source.getTags().push(_tag); |
160 _tag = new IriSP.Model.Tag(false, _this.source); |
161 _tag.title = _tag_title; |
161 _this.source.getTags().push(_tag); |
162 } |
162 _tag.title = _tag_title; |
163 return _tag; |
163 } |
164 }); |
164 return _tag; |
|
165 }); |
|
166 } |
|
167 else{ |
|
168 // we forced no tags if this.tag_titles = [''] (and not false) |
|
169 this.tags = true; |
|
170 } |
165 } |
171 } |
166 if (!this.tags) { |
172 if (!this.tags) { |
167 this.tags = this.source.getTags() |
173 this.tags = this.source.getTags() |
168 .sortBy(function (_tag) { |
174 .sortBy(function (_tag) { |
169 return -_tag.getAnnotations().length; |
175 return -_tag.getAnnotations().length; |