# HG changeset patch # User cavaliet # Date 1339170989 -7200 # Node ID f19a62040f98175c1096d79d2cf9c4a558988050 # Parent a621323f95257c23647f63e86a961ab28d11ee40# Parent 602df918fbc5d4b1fea9e062b8d60249f83378b9 Merge with 602df918fbc5d4b1fea9e062b8d60249f83378b9 diff -r a621323f9525 -r f19a62040f98 crea/integration/metadataplayer/LdtPlayer-core.js --- a/crea/integration/metadataplayer/LdtPlayer-core.js Fri Jun 08 17:55:48 2012 +0200 +++ b/crea/integration/metadataplayer/LdtPlayer-core.js Fri Jun 08 17:56:29 2012 +0200 @@ -2289,7 +2289,7 @@ media: _source.unNamespace(_data.getMedia().id), title: _data.title, type_title: _data.getAnnotationType().title, - type: _source.unNamespace(_data.getAnnotationType().id) + type: ( typeof _data.getAnnotationType().dont_send_id !== "undefined" && _data.getAnnotationType().dont_send_id ? "" : _source.unNamespace(_data.getAnnotationType().id) ) } } } diff -r a621323f9525 -r f19a62040f98 crea/integration/metadataplayer/MusitagAnnotations.js --- a/crea/integration/metadataplayer/MusitagAnnotations.js Fri Jun 08 17:55:48 2012 +0200 +++ b/crea/integration/metadataplayer/MusitagAnnotations.js Fri Jun 08 17:56:29 2012 +0200 @@ -17,7 +17,7 @@ + ''; IriSP.Widgets.MusitagAnnotations.prototype.defaults = { - annotation_type: 'musitag', + annotation_type: false, columns: 15, max_by_column: 10, emoticons: ['happy', 'unhappy', 'laughing', 'surprised'], diff -r a621323f9525 -r f19a62040f98 crea/integration/metadataplayer/MusitagAnnotator.js --- a/crea/integration/metadataplayer/MusitagAnnotator.js Fri Jun 08 17:55:48 2012 +0200 +++ b/crea/integration/metadataplayer/MusitagAnnotator.js Fri Jun 08 17:56:29 2012 +0200 @@ -13,8 +13,8 @@ api_serializer: "ldt_annotate", api_endpoint_template: "", api_method: "PUT", - close_widget_timeout: 5000, - annotation_type: "Musitag", + close_widget_timeout: 4000, + annotation_type: "contributions", creator_name: "musitag" }; @@ -221,6 +221,10 @@ _emoticon = new IriSP.Model.Tag(false, _export), _url = Mustache.to_html(this.api_endpoint_template, {id: this.source.projectId}); + if (!_annotationTypes.length) { + _annotationType.dont_send_id = true; + } + _color.title = this.annotation.color; _emoticon.title = this.annotation.emoticon; diff -r a621323f9525 -r f19a62040f98 crea/integration/player.html --- a/crea/integration/player.html Fri Jun 08 17:55:48 2012 +0200 +++ b/crea/integration/player.html Fri Jun 08 17:56:29 2012 +0200 @@ -39,7 +39,7 @@ IriSP.libFiles.defaultDir = "libs/"; IriSP.widgetsDir = "metadataplayer"; var _metadata = { - url: 'data/au-clair-de-la-lune.json', + url: 'http://192.168.56.101/musitag/tralalere/ldt/cljson/id/156c66cc-afe5-11e1-807a-58b035f6b93d', format: 'ldt' }; var _config = { diff -r a621323f9525 -r f19a62040f98 web/index/.keepme diff -r a621323f9525 -r f19a62040f98 web/tralalere/static/tralalere/metadataplayer/LdtPlayer-core.js --- a/web/tralalere/static/tralalere/metadataplayer/LdtPlayer-core.js Fri Jun 08 17:55:48 2012 +0200 +++ b/web/tralalere/static/tralalere/metadataplayer/LdtPlayer-core.js Fri Jun 08 17:56:29 2012 +0200 @@ -2289,7 +2289,7 @@ media: _source.unNamespace(_data.getMedia().id), title: _data.title, type_title: _data.getAnnotationType().title, - type: _source.unNamespace(_data.getAnnotationType().id) + type: ( typeof _data.getAnnotationType().dont_send_id !== "undefined" && _data.getAnnotationType().dont_send_id ? "" : _source.unNamespace(_data.getAnnotationType().id) ) } } } diff -r a621323f9525 -r f19a62040f98 web/tralalere/static/tralalere/metadataplayer/MusitagAnnotations.js --- a/web/tralalere/static/tralalere/metadataplayer/MusitagAnnotations.js Fri Jun 08 17:55:48 2012 +0200 +++ b/web/tralalere/static/tralalere/metadataplayer/MusitagAnnotations.js Fri Jun 08 17:56:29 2012 +0200 @@ -17,7 +17,7 @@ + ''; IriSP.Widgets.MusitagAnnotations.prototype.defaults = { - annotation_type: 'musitag', + annotation_type: false, columns: 15, max_by_column: 10, emoticons: ['happy', 'unhappy', 'laughing', 'surprised'], diff -r a621323f9525 -r f19a62040f98 web/tralalere/static/tralalere/metadataplayer/MusitagAnnotator.js --- a/web/tralalere/static/tralalere/metadataplayer/MusitagAnnotator.js Fri Jun 08 17:55:48 2012 +0200 +++ b/web/tralalere/static/tralalere/metadataplayer/MusitagAnnotator.js Fri Jun 08 17:56:29 2012 +0200 @@ -13,8 +13,8 @@ api_serializer: "ldt_annotate", api_endpoint_template: "", api_method: "PUT", - close_widget_timeout: 5000, - annotation_type: "Musitag", + close_widget_timeout: 4000, + annotation_type: "contributions", creator_name: "musitag" }; @@ -221,6 +221,10 @@ _emoticon = new IriSP.Model.Tag(false, _export), _url = Mustache.to_html(this.api_endpoint_template, {id: this.source.projectId}); + if (!_annotationTypes.length) { + _annotationType.dont_send_id = true; + } + _color.title = this.annotation.color; _emoticon.title = this.annotation.emoticon;