# HG changeset patch
# User veltr
# Date 1361989084 -3600
# Node ID d3a125e619d9141f6a18348313130c7a1f9dc726
# Parent f1e48630fc591c1fa198dc845fc7aabaac117c5e
Added drag-and-drop behaviour in mdp for Renkan interoperability
diff -r f1e48630fc59 -r d3a125e619d9 .project
--- a/.project Wed Feb 27 00:13:08 2013 +0100
+++ b/.project Wed Feb 27 19:18:04 2013 +0100
@@ -1,23 +1,12 @@
-
-
- platform_group
-
-
-
-
-
- org.python.pydev.PyDevBuilder
-
-
-
-
- com.aptana.ide.core.unifiedBuilder
-
-
-
-
-
- com.aptana.projects.webnature
- org.python.pydev.pythonNature
-
-
+
+
+ platform_group
+
+
+
+
+
+
+ com.aptana.projects.webnature
+
+
diff -r f1e48630fc59 -r d3a125e619d9 src/ldt/ldt/static/ldt/metadataplayer/Annotation.js
--- a/src/ldt/ldt/static/ldt/metadataplayer/Annotation.js Wed Feb 27 00:13:08 2013 +0100
+++ b/src/ldt/ldt/static/ldt/metadataplayer/Annotation.js Wed Feb 27 19:18:04 2013 +0100
@@ -34,7 +34,7 @@
+ '
'
+ '
'
+ '{{#show_social}}
{{/show_social}}'
- + '
{{#show_annotation_type}} » {{/show_annotation_type}} '
+ + '{{#show_annotation_type}} » {{/show_annotation_type}} '
+ '( - )
'
+ '{{l10n.excerpt_from}} '
+ '( - )
'
@@ -167,6 +167,14 @@
this.source.getAnnotations().on("found", highlightTitleAndDescription);
this.source.getAnnotations().on("not-found", highlightTitleAndDescription);
this.source.getAnnotations().on("search-cleared", highlightTitleAndDescription);
+ this.$.find("[draggable]").on("dragstart", function(e) {
+ var url = (typeof currentAnnotation.url !== "undefined"
+ ? currentAnnotation.url
+ : (document.location.href.replace(/#.*$/,'') + '#id=' + currentAnnotation.id));
+ e.originalEvent.dataTransfer.setData("text/x-iri-title",currentAnnotation.title);
+ e.originalEvent.dataTransfer.setData("text/x-iri-description",currentAnnotation.description);
+ e.originalEvent.dataTransfer.setData("text/x-iri-uri",url);
+ });
}
IriSP.Widgets.Annotation.prototype.sendBounds = function() {
diff -r f1e48630fc59 -r d3a125e619d9 src/ldt/ldt/static/ldt/metadataplayer/AnnotationsList.js
--- a/src/ldt/ldt/static/ldt/metadataplayer/AnnotationsList.js Wed Feb 27 00:13:08 2013 +0100
+++ b/src/ldt/ldt/static/ldt/metadataplayer/AnnotationsList.js Wed Feb 27 19:18:04 2013 +0100
@@ -65,15 +65,15 @@
IriSP.Widgets.AnnotationsList.prototype.annotationTemplate =
''
+ ''
+ '{{begin}} - {{end}}
'
- + '{{{description}}}
'
+ + '{{{hdescription}}}
'
+ '{{#tags.length}}'
+ '