# HG changeset patch # User veltr # Date 1351269475 -7200 # Node ID 35aadec4131bbf0a806e87cc9eee9e0e23a226c7 # Parent 560afb14296d6f2d5a5230e706985730a0476d20 Adapted Metadataplayer to send title and description diff -r 560afb14296d -r 35aadec4131b src/js/serializers/ldt_annotate.js --- a/src/js/serializers/ldt_annotate.js Fri Oct 26 15:51:05 2012 +0200 +++ b/src/js/serializers/ldt_annotate.js Fri Oct 26 18:37:55 2012 +0200 @@ -11,7 +11,8 @@ begin: _data.begin.milliseconds, end: _data.end.milliseconds, content: { - data: _data.description, + description: _data.description, + title: _data.title, audio: _data.audio }, tags: _data.getTagTexts(), @@ -43,8 +44,8 @@ _source.addList('annotation', new IriSP.Model.List(_source.directory)); IriSP._(_data.objects).each(function(_anndata) { var _ann = new IriSP.Model.Annotation(_anndata.id, _source); - _ann.description = _anndata.content.data || ""; - _ann.title = ""; + _ann.description = _anndata.content.description || ""; + _ann.title = _anndata.content.title || ""; _ann.creator = _anndata.meta.creator || ""; _ann.created = new Date(_anndata.meta.created); _ann.setMedia(_anndata.media, _source); diff -r 560afb14296d -r 35aadec4131b src/widgets/CreateAnnotation.css --- a/src/widgets/CreateAnnotation.css Fri Oct 26 15:51:05 2012 +0200 +++ b/src/widgets/CreateAnnotation.css Fri Oct 26 18:37:55 2012 +0200 @@ -34,6 +34,11 @@ border-radius: 2px; } +.Ldt-CreateAnnotation-Title.empty, .Ldt-CreateAnnotation-Creator.empty { + font-style: italic; + color: #90b0d0; +} + .Ldt-CreateAnnotation-Times { color: #ff3b77 } @@ -67,6 +72,10 @@ border-radius: 2px; } +.Ldt-CreateAnnotation-Description.empty { + font-style: italic; color: #999999; +} + .Ldt-CreateAnnotation-Avatar { float: right; width: 48px; diff -r 560afb14296d -r 35aadec4131b src/widgets/CreateAnnotation.js --- a/src/widgets/CreateAnnotation.js Fri Oct 26 15:51:05 2012 +0200 +++ b/src/widgets/CreateAnnotation.js Fri Oct 26 18:37:55 2012 +0200 @@ -7,7 +7,7 @@ IriSP.Widgets.CreateAnnotation.prototype = new IriSP.Widgets.Widget(); IriSP.Widgets.CreateAnnotation.prototype.defaults = { - show_title_field : false, /* For the moment, titles can't be sent to ldtplatform */ + show_title_field : true, show_creator_field : true, start_visible : true, always_visible : false, @@ -106,12 +106,12 @@ + '{{^show_slice}}{{#show_arrow}}
{{/show_arrow}}{{/show_slice}}' + '