# HG changeset patch # User Raphael Velt # Date 1359136173 -3600 # Node ID 525f00c2d6acb06e9ac35ef6d7595b97f15bd45d # Parent edbb8df3a091d8acd191b954508746f6f15118ee Metadataplayer bugfixes diff -r edbb8df3a091 -r 525f00c2d6ac web/polemicaltimeline.php --- a/web/polemicaltimeline.php Thu Jan 24 18:55:58 2013 +0100 +++ b/web/polemicaltimeline.php Fri Jan 25 18:49:33 2013 +0100 @@ -180,10 +180,10 @@ //foreign_url : "http://ldt.iri.centrepompidou.fr/ldtplatform/ldt/front/player/{{media}}/{{project}}/{{annotationType}}#id={{annotation}}", container: "AnnotationsListContainer" }, - { +/* { type: "Slideshare", container: "Slideshare" - }, + }, */ { type: "Mediafragment"}, diff -r edbb8df3a091 -r 525f00c2d6ac web/res/metadataplayer/Annotation.css --- a/web/res/metadataplayer/Annotation.css Thu Jan 24 18:55:58 2013 +0100 +++ b/web/res/metadataplayer/Annotation.css Fri Jan 25 18:49:33 2013 +0100 @@ -6,10 +6,6 @@ margin: 0; } -.Ldt-Annotation-Highlight { - background: #ffa0fc; -} - .Ldt-Annotation-Widget.Ldt-Annotation-ShowTop { border-top-style: solid; padding-top: 1px; diff -r edbb8df3a091 -r 525f00c2d6ac web/res/metadataplayer/Annotation.js --- a/web/res/metadataplayer/Annotation.js Thu Jan 24 18:55:58 2013 +0100 +++ b/web/res/metadataplayer/Annotation.js Fri Jan 25 18:49:33 2013 +0100 @@ -76,17 +76,12 @@ return; } var title = currentAnnotation.title, - description = currentAnnotation.description.replace(/(^\s+|\s+$)/g,''); - if (currentAnnotation.found) { - var rgxp = _this.source.getAnnotations().regexp || /^$/, - repl = '$1'; - title = title.replace(rgxp,repl); - description = description.replace(rgxp,repl).replace(/[\n\r]+/gm,'
'); - } - _this.$.find(".Ldt-Annotation-Title").html(title || "(" + _this.l10n.untitled + ")"); + description = currentAnnotation.description.replace(/(^\s+|\s+$)/g,''), + rx = (currentAnnotation.found ? (_this.source.getAnnotations().regexp || false) : false); + _this.$.find(".Ldt-Annotation-Title").html(IriSP.textFieldHtml(title,rx) || "(" + _this.l10n.untitled + ")"); if (description) { _this.$.find(".Ldt-Annotation-Description-Block").removeClass("Ldt-Annotation-EmptyBlock"); - _this.$.find(".Ldt-Annotation-Description").html(description); + _this.$.find(".Ldt-Annotation-Description").html(IriSP.textFieldHtml(description,rx)); } else { _this.$.find(".Ldt-Annotation-Description-Block").addClass("Ldt-Annotation-EmptyBlock"); } @@ -156,7 +151,7 @@ this.insertSubwidget(this.$.find(".Ldt-Annotation-Social"), { type: "Social" }, "socialWidget"); } - this.insertSubwidget(this.$.find(".Ldt-Annotation-Arrow"), { type: "Arrow" }, "arrow"); + this.insertSubwidget(this.$.find(".Ldt-Annotation-Arrow"), { type: "Arrow", width: this.width }, "arrow"); this.onMediaEvent("timeupdate",timeupdate); this.onMdpEvent("Annotation.hide","hide"); this.onMdpEvent("Annotation.show","show"); diff -r edbb8df3a091 -r 525f00c2d6ac web/res/metadataplayer/AnnotationsList.css --- a/web/res/metadataplayer/AnnotationsList.css Thu Jan 24 18:55:58 2013 +0100 +++ b/web/res/metadataplayer/AnnotationsList.css Fri Jan 25 18:49:33 2013 +0100 @@ -25,9 +25,6 @@ .Ldt-AnnotationsList-li.selected { background-image: url(img/pinstripe-grey.png); } -.Ldt-AnnotationsList-highlight { - background: #FFA0FC; -} .Ldt-AnnotationsList-ThumbContainer { float: left; width: 80px; @@ -54,14 +51,25 @@ margin: 2px 2px 0 82px; font-weight: bold; } -h3.Ldt-AnnotationsList-Title a { + +.Ldt-AnnotationsList-Title a { color: #0068c4; } + p.Ldt-AnnotationsList-Description { margin: 2px 0 2px 82px; font-size: 12px; color: #333333; } + +.Ldt-AnnotationsList-Description a { + color: #0068c4; +} + +.Ldt-AnnotationsList-Description a:hover { + text-decoration: underline; color: #800000; +} + ul.Ldt-AnnotationsList-Tags { list-style: none; padding: 0; diff -r edbb8df3a091 -r 525f00c2d6ac web/res/metadataplayer/AnnotationsList.js --- a/web/res/metadataplayer/AnnotationsList.js Thu Jan 24 18:55:58 2013 +0100 +++ b/web/res/metadataplayer/AnnotationsList.js Fri Jan 25 18:49:33 2013 +0100 @@ -71,9 +71,9 @@ + '' + '
{{begin}} - {{end}}
' + '

' - + '{{title}}' + + '{{{title}}}' + '

' - + '

{{description}}

' + + '

{{{description}}}

' + '{{#tags.length}}' + '