# HG changeset patch
# User ymh ' +
+__e(renkan.translate("Link")) +
+' \n \n';
- } ;
+'" target="_blank">' +
+__e(renkan.translate("Link")) +
+' ' +
+__e(renkan.translate("Link")) +
+' ' +
+__e(renkan.translate("Video link")) +
+' "+(null==(__t=edge.description)?"":__t)+" \n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n \n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n \n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n \n \n \n \n \n \n \n '+__e(renkan.translate("Change edge direction"))+"\n \n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n \n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n \n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n "+(null==(__t=hdescription)?"":__t)+" Start: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+' "+(null==(__t=hdescription)?"":__t)+" Start: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+' '+(null==(__t=hdescription)?"":__t)+" '+(null==(__t=node.description)?"":__t)+" \n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n \n \n ",__p+=options.show_node_editor_title_richtext?'\n \n ×\n ';
+
+
+function get_youtube_id(url) {
+ var regExp = /^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/;
+ var match = url.match(regExp);
+ if (match && match[2].length == 11) {
+ return match[2];
+ } else {
+ return false;
+ }
+}
+
+function get_vimeo_id(url) {
+ var regExp = /https?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/;
+
+ var match = url.match(regExp);
+
+ if (match){
+ return match[2];
+ } else {
+ return false;
+ }
+}
+
+function get_dailymotion_id(url) {
+ var regExp = /^(?:(?:http|https):\/\/)?(?:www.)?(dailymotion\.com|dai\.ly)\/((video\/([^_]+))|(hub\/([^_]+)|([^\/_]+)))$/;
+
+ var match = url.match(regExp);
+
+ if (match) {
+ if(match[4] !== undefined) {
+ return match[4];
+ }
+ return match[2];
+ }
+ return false;
+}
+
+function get_facebook_id(url) {
+ var regExp = /^https?:\/\/www\.facebook\.com\/(?:video\.php\?v=\d+|.*?\/videos\/\d+)\/?$/;
+
+ var match = url.match(regExp);
+
+ if (match) {
+ return encodeURIComponent(url);
+ }
+ return false;
+}
+
+;
+__p += '\n
\n ×\n ';
if (options.show_node_tooltip_color) { ;
__p += '\n \n
\n\n ×\n ',options.show_edge_tooltip_color&&(__p+='\n \n '),__p+='\n \n ',edge.uri&&(__p+='\n \n '),__p+="\n "+__e(edge.title)+"\n ",edge.uri&&(__p+=" "),__p+="\n \n
\n",options.show_edge_tooltip_uri&&edge.uri&&(__p+='\n \n"),__p+="\n\n ×'+__e(renkan.translate("Edit Edge"))+"
\n
'+(null==(__t=htitle)?"":__t)+"
\n \n
'+(null==(__t=htitle)?"":__t)+"
\n
\n '+(null==(__t=htitle)?"":__t)+'
\n \n\n'),__p+='\n
\n ',url&&(__p+='\n \n '),__p+="\n "+(null==(__t=htitle)?"":__t)+"\n ",url&&(__p+=""),__p+="\n
\n ",description&&(__p+='\n '+__e(translate("Select contents:"))+'
\n \n \n \n
\n ×\n ',options.show_node_tooltip_color&&(__p+='\n \n '),__p+='\n \n ',node.uri&&(__p+='\n \n '),__p+="\n "+(null==(__t=node.title)?"":__t)+"\n ",node.uri&&(__p+=""),__p+="\n \n
\n",node.uri&&options.show_node_tooltip_uri&&(__p+='\n \n"),__p+=" ",options.show_node_tooltip_description&&(__p+='\n \n'),__p+=" ",node.has_creator&&options.show_node_tooltip_creator&&(__p+='\n
\n ×\n ',options.show_node_tooltip_color&&(__p+='\n \n '),__p+='\n \n ',node.uri&&(__p+='\n \n '),__p+="\n "+(null==(__t=node.title)?"":__t)+"\n ",node.uri&&(__p+=""),__p+="\n \n
\n",node.uri&&options.show_node_tooltip_uri&&(__p+='\n \n'),__p+='\n '+__e(renkan.translate("Link to the node"))+"\n";return __p},this.renkanJST["templates/nodeeditor.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='\n\n ×'+__e(renkan.translate("Edit Node"))+"\n
\n
\n \n \n
\n"),__p+=" ",options.show_node_editor_description&&(__p+="\n\n \n ",__p+=options.show_node_editor_description_richtext?'\n
\n '+__e(renkan.translate("Size:"))+'\n -\n '+__e(node.size)+'\n +\n
\n'),__p+=" ",options.show_node_editor_style&&(__p+='\n\n \n
\n \n",options.allow_image_upload&&(__p+="\n\n \n \n
\n')),__p+=" ",options.show_node_editor_creator&&node.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+=" ",options.change_shapes&&(__p+="\n\n \n \n
\n"),__p+="\n";return __p},this.renkanJST["templates/scene.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)options.show_top_bar&&(__p+='\n
\n '+(null==(__t=hdescription)?"":__t)+"
\n"+(null==(__t=edge.description)?"":__t)+"
\n",options.show_edge_tooltip_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_tooltip_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/edgeeditor.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='\n \n \n
\n',options.show_edge_editor_uri&&(__p+="\n \n ',options.properties.length&&(__p+="\n\n \n \n
\n")),__p+="\n",options.show_edge_editor_style&&(__p+='\n\n '+__e(renkan.translate("Change edge direction"))+"\n
\n"),__p+="\n",options.show_edge_editor_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_editor_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/ldtjson-bin/annotationtemplate.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n
\n '+(null==(__t=hdescription)?"":__t)+"
\n "),__p+="\n ",image&&(__p+='\n \n '),__p+="\n'+(null==(__t=node.description)?"":__t)+"
\n"),__p+=" ",node.image&&options.show_node_tooltip_image&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+='\n '+__e(renkan.translate("Link to the node"))+"\n";return __p},this.renkanJST["templates/nodeeditor_video.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}function get_youtube_id(a){var b=/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,c=a.match(b);return!(!c||11!=c[2].length)&&c[2]}function get_vimeo_id(a){var b=/https?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/,c=a.match(b);return!!c&&c[2]}function get_dailymotion_id(a){var b=/^(?:(?:http|https):\/\/)?(?:www.)?(dailymotion\.com|dai\.ly)\/((video\/([^_]+))|(hub\/([^_]+)|([^\/_]+)))$/,c=a.match(b);return!!c&&(void 0!==c[4]?c[4]:c[2])}function get_facebook_id(a){var b=/^https?:\/\/www\.facebook\.com\/(?:video\.php\?v=\d+|.*?\/videos\/\d+)\/?$/,c=a.match(b);return!!c&&encodeURIComponent(a)}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj){if(__p+='\n'+__e(renkan.translate("Link"))+"
\n ":(video_id=get_vimeo_id(node.uri))?'\n \n'+__e(renkan.translate("Link"))+"
\n ":(video_id=get_dailymotion_id(node.uri))?'\n \n'+__e(renkan.translate("Link"))+"
\n ":(video_id=get_facebook_id(node.uri))?'\n \n'+__e(renkan.translate("Video link"))+"
\n ":' \n \n '}__p+='\n '+__e(renkan.translate("Link to the node"))+"\n"}return __p},this.renkanJST["templates/nodeeditor.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='\n\n \n ",__p+=options.show_node_editor_title_richtext?'\n
\n \n \n
\n"),__p+=" ",options.show_node_editor_description&&(__p+="\n\n \n ",__p+=options.show_node_editor_description_richtext?'\n
\n '+__e(renkan.translate("Size:"))+'\n -\n '+__e(node.size)+'\n +\n
\n'),__p+=" ",options.show_node_editor_style&&(__p+='\n\n \n
\n \n",options.allow_image_upload&&(__p+="\n\n \n \n
\n')),__p+=" ",options.show_node_editor_creator&&node.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+=" ",options.change_shapes&&(__p+="\n\n \n \n
\n"),__p+="\n";return __p},this.renkanJST["templates/scene.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)options.show_top_bar&&(__p+='\n
\n '+(null==(__t=hdescription)?"":__t)+"
\n\\n ' +\n__e( edge.short_uri ) +\n'\\n
\\n';\n } ;\n__p += '\\n' +\n((__t = (edge.description)) == null ? '' : __t) +\n'
\\n';\n if (options.show_edge_tooltip_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_tooltip_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/edgeeditor.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n \\n \\n
\\n';\n if (options.show_edge_editor_uri) { ;\n__p += '\\n \\n ';\n if (options.properties.length) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } } ;\n__p += '\\n';\n if (options.show_edge_editor_style) { ;\n__p += '\\n\\n ' +\n__e( renkan.translate(\"Change edge direction\") ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n %-edge.to_color%>;\">\\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n ;\">\\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/ldtjson-bin/annotationtemplate.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape;\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n ';\n } ;\n__p += '\\n ';\n if (image) { ;\n__p += '\\n \\n ';\n } ;\n__p += '\\n\\n ' +\n__e(node.short_uri) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_tooltip_description) { ;\n__p += '\\n' +\n((__t = (node.description)) == null ? '' : __t) +\n'
\\n';\n } ;\n__p += ' ';\n if (node.image && options.show_node_tooltip_image) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n ' +\n__e(renkan.translate(\"Link to the node\")) +\n'\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_video.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n \\n ';\n if (options.show_node_editor_title_richtext) { ;\n__p += '\\n
\\n \\n \\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_description) { ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_description_richtext) { ;\n__p += '\\n
\\n ' +\n__e(renkan.translate(\"Size:\")) +\n'\\n -\\n ' +\n__e(node.size) +\n'\\n +\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_style) { ;\n__p += '\\n\\n \\n
\\n \\n';\n if (options.allow_image_upload) { ;\n__p += '\\n\\n \\n \\n
\\n';\n };\n\n } ;\n__p += ' ';\n if (options.show_node_editor_creator && node.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.change_shapes) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/scene.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n\n if (options.show_top_bar) { ;\n__p += '\\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n\\n ' +\n__e( edge.short_uri ) +\n'\\n
\\n';\n } ;\n__p += '\\n' +\n((__t = (edge.description)) == null ? '' : __t) +\n'
\\n';\n if (options.show_edge_tooltip_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_tooltip_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/edgeeditor.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n \\n \\n
\\n';\n if (options.show_edge_editor_uri) { ;\n__p += '\\n \\n ';\n if (options.properties.length) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } } ;\n__p += '\\n';\n if (options.show_edge_editor_style) { ;\n__p += '\\n\\n ' +\n__e( renkan.translate(\"Change edge direction\") ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n %-edge.to_color%>;\">\\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n ;\">\\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/ldtjson-bin/annotationtemplate.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape;\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n ';\n } ;\n__p += '\\n ';\n if (image) { ;\n__p += '\\n \\n ';\n } ;\n__p += '\\n\\n ' +\n__e(node.short_uri) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_tooltip_description) { ;\n__p += '\\n' +\n((__t = (node.description)) == null ? '' : __t) +\n'
\\n';\n } ;\n__p += ' ';\n if (node.image && options.show_node_tooltip_image) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n ' +\n__e(renkan.translate(\"Link to the node\")) +\n'\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_video.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n\n\nfunction get_youtube_id(url) {\n var regExp = /^.*(youtu\\.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=|\\&v=)([^#\\&\\?]*).*/;\n var match = url.match(regExp);\n if (match && match[2].length == 11) {\n return match[2];\n } else {\n return false;\n }\n}\n\nfunction get_vimeo_id(url) {\n var regExp = /https?:\\/\\/(www\\.)?vimeo.com\\/(\\d+)($|\\/)/;\n \n var match = url.match(regExp);\n \n if (match){\n return match[2];\n } else {\n return false;\n }\n}\n\nfunction get_dailymotion_id(url) {\n var regExp = /^(?:(?:http|https):\\/\\/)?(?:www.)?(dailymotion\\.com|dai\\.ly)\\/((video\\/([^_]+))|(hub\\/([^_]+)|([^\\/_]+)))$/;\n\n var match = url.match(regExp);\n\n if (match) {\n if(match[4] !== undefined) {\n return match[4];\n }\n return match[2];\n }\n return false;\n}\n\nfunction get_facebook_id(url) {\n var regExp = /^https?:\\/\\/www\\.facebook\\.com\\/(?:video\\.php\\?v=\\d+|.*?\\/videos\\/\\d+)\\/?$/;\n \n var match = url.match(regExp);\n\n if (match) {\n return encodeURIComponent(url);\n }\n return false;\n}\n\n;\n__p += '\\n' +\n__e(renkan.translate(\"Link\")) +\n'
\\n ';\n }\n else if(video_id = get_vimeo_id(node.uri)) { ;\n__p += '\\n \\n' +\n__e(renkan.translate(\"Link\")) +\n'
\\n ';\n }\n else if(video_id = get_dailymotion_id(node.uri)) { ;\n__p += '\\n \\n' +\n__e(renkan.translate(\"Link\")) +\n'
\\n ';\n }\n else if(video_id = get_facebook_id(node.uri)) { ;\n__p += '\\n \\n' +\n__e(renkan.translate(\"Video link\")) +\n'
\\n ';\n }\n else { ;\n__p += ' \\n \\n ';\n }\n }\n;\n__p += '\\n ' +\n__e(renkan.translate(\"Link to the node\")) +\n'\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n\n //TODO: change class to id ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_title_richtext) { ;\n__p += '\\n
\\n \\n \\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_description) { ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_description_richtext) { ;\n__p += '\\n
\\n ' +\n__e(renkan.translate(\"Size:\")) +\n'\\n -\\n ' +\n__e(node.size) +\n'\\n +\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_style) { ;\n__p += '\\n\\n \\n
\\n \\n';\n if (options.allow_image_upload) { ;\n__p += '\\n\\n \\n \\n
\\n';\n };\n\n } ;\n__p += ' ';\n if (options.show_node_editor_creator && node.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.change_shapes) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/scene.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n\n if (options.show_top_bar) { ;\n__p += '\\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n' + +__e(renkan.translate("Link")) + +'
\n '; + } + else if(video_id = get_vimeo_id(node.uri)) { ; +__p += '\n \n\n \n'; - } ; +'" target="_blank">' + +__e(renkan.translate("Link")) + +'
\n '; + } + else if(video_id = get_dailymotion_id(node.uri)) { ; +__p += '\n \n' + +__e(renkan.translate("Link")) + +'
\n '; + } + else if(video_id = get_facebook_id(node.uri)) { ; +__p += '\n \n' + +__e(renkan.translate("Video link")) + +'
\n '; + } + else { ; +__p += ' \n \n '; + } + } +; __p += '\n ' + @@ -2304,6 +2394,7 @@ "Fullscreen not supported by your browser": "Le plein écran n'est pas supporté par votre navigateur", "Title size:": "Taille :", "Title color:": "Couleur :", + "Video link": "Lien vidéo" } }; diff -r 50f5e8d2c839 -r cac26275af31 server/python/django/renkanmanager/static/renkanmanager/lib/renkan/js/renkan.min.js --- a/server/python/django/renkanmanager/static/renkanmanager/lib/renkan/js/renkan.min.js Fri Sep 15 14:04:42 2017 +0200 +++ b/server/python/django/renkanmanager/static/renkanmanager/lib/renkan/js/renkan.min.js Fri Sep 15 14:11:36 2017 +0200 @@ -24,12 +24,12 @@ * knowledge of the CeCILL-C license and that you accept its terms. */ -/*! renkan - v00.13 - Copyright © IRI 2017 */ +/*! renkan - v00.13.02 - Copyright © IRI 2017 */ -this.renkanJST=this.renkanJST||{},this.renkanJST["templates/colorpicker.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='';return __p},this.renkanJST["templates/edgeeditor_readonly.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='"+(null==(__t=edge.description)?"":__t)+"
\n",options.show_edge_tooltip_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_tooltip_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/edgeeditor.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='\n \n \n
\n',options.show_edge_editor_uri&&(__p+="\n \n ',options.properties.length&&(__p+="\n\n \n \n
\n")),__p+="\n",options.show_edge_editor_style&&(__p+='\n\n '+__e(renkan.translate("Change edge direction"))+"\n
\n"),__p+="\n",options.show_edge_editor_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_editor_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/ldtjson-bin/annotationtemplate.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n
\n '+(null==(__t=hdescription)?"":__t)+"
\n "),__p+="\n ",image&&(__p+='\n \n '),__p+="\n'+(null==(__t=node.description)?"":__t)+"
\n"),__p+=" ",node.image&&options.show_node_tooltip_image&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+='\n '+__e(renkan.translate("Link to the node"))+"\n";return __p},this.renkanJST["templates/nodeeditor_video.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='\n \n ",__p+=options.show_node_editor_title_richtext?'\n
\n \n \n
\n"),__p+=" ",options.show_node_editor_description&&(__p+="\n\n \n ",__p+=options.show_node_editor_description_richtext?'\n
\n '+__e(renkan.translate("Size:"))+'\n -\n '+__e(node.size)+'\n +\n
\n'),__p+=" ",options.show_node_editor_style&&(__p+='\n\n \n
\n \n",options.allow_image_upload&&(__p+="\n\n \n \n
\n')),__p+=" ",options.show_node_editor_creator&&node.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+=" ",options.change_shapes&&(__p+="\n\n \n \n
\n"),__p+="\n";return __p},this.renkanJST["templates/scene.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)options.show_top_bar&&(__p+='\n
\n '+(null==(__t=hdescription)?"":__t)+"
\n"+(null==(__t=edge.description)?"":__t)+"
\n",options.show_edge_tooltip_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_tooltip_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/edgeeditor.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='\n \n \n
\n',options.show_edge_editor_uri&&(__p+="\n \n ',options.properties.length&&(__p+="\n\n \n \n
\n")),__p+="\n",options.show_edge_editor_style&&(__p+='\n\n '+__e(renkan.translate("Change edge direction"))+"\n
\n"),__p+="\n",options.show_edge_editor_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_editor_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/ldtjson-bin/annotationtemplate.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n
\n '+(null==(__t=hdescription)?"":__t)+"
\n "),__p+="\n ",image&&(__p+='\n \n '),__p+="\n'+(null==(__t=node.description)?"":__t)+"
\n"),__p+=" ",node.image&&options.show_node_tooltip_image&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+='\n '+__e(renkan.translate("Link to the node"))+"\n";return __p},this.renkanJST["templates/nodeeditor_video.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}function get_youtube_id(a){var b=/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,c=a.match(b);return!(!c||11!=c[2].length)&&c[2]}function get_vimeo_id(a){var b=/https?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/,c=a.match(b);return!!c&&c[2]}function get_dailymotion_id(a){var b=/^(?:(?:http|https):\/\/)?(?:www.)?(dailymotion\.com|dai\.ly)\/((video\/([^_]+))|(hub\/([^_]+)|([^\/_]+)))$/,c=a.match(b);return!!c&&(void 0!==c[4]?c[4]:c[2])}function get_facebook_id(a){var b=/^https?:\/\/www\.facebook\.com\/(?:video\.php\?v=\d+|.*?\/videos\/\d+)\/?$/,c=a.match(b);return!!c&&encodeURIComponent(a)}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj){if(__p+='\n'+__e(renkan.translate("Link"))+"
\n ":(video_id=get_vimeo_id(node.uri))?'\n \n'+__e(renkan.translate("Link"))+"
\n ":(video_id=get_dailymotion_id(node.uri))?'\n \n'+__e(renkan.translate("Link"))+"
\n ":(video_id=get_facebook_id(node.uri))?'\n \n'+__e(renkan.translate("Video link"))+"
\n ":' \n \n '}__p+='\n '+__e(renkan.translate("Link to the node"))+"\n"}return __p},this.renkanJST["templates/nodeeditor.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='\n\n \n ",__p+=options.show_node_editor_title_richtext?'\n
\n \n \n
\n"),__p+=" ",options.show_node_editor_description&&(__p+="\n\n \n ",__p+=options.show_node_editor_description_richtext?'\n
\n '+__e(renkan.translate("Size:"))+'\n -\n '+__e(node.size)+'\n +\n
\n'),__p+=" ",options.show_node_editor_style&&(__p+='\n\n \n
\n \n",options.allow_image_upload&&(__p+="\n\n \n \n
\n')),__p+=" ",options.show_node_editor_creator&&node.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+=" ",options.change_shapes&&(__p+="\n\n \n \n
\n"),__p+="\n";return __p},this.renkanJST["templates/scene.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)options.show_top_bar&&(__p+='\n
\n '+(null==(__t=hdescription)?"":__t)+"
\n\\n ' +\n__e( edge.short_uri ) +\n'\\n
\\n';\n } ;\n__p += '\\n' +\n((__t = (edge.description)) == null ? '' : __t) +\n'
\\n';\n if (options.show_edge_tooltip_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_tooltip_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/edgeeditor.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n \\n \\n
\\n';\n if (options.show_edge_editor_uri) { ;\n__p += '\\n \\n ';\n if (options.properties.length) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } } ;\n__p += '\\n';\n if (options.show_edge_editor_style) { ;\n__p += '\\n\\n ' +\n__e( renkan.translate(\"Change edge direction\") ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n %-edge.to_color%>;\">\\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n ;\">\\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/ldtjson-bin/annotationtemplate.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape;\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n ';\n } ;\n__p += '\\n ';\n if (image) { ;\n__p += '\\n \\n ';\n } ;\n__p += '\\n\\n ' +\n__e(node.short_uri) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_tooltip_description) { ;\n__p += '\\n' +\n((__t = (node.description)) == null ? '' : __t) +\n'
\\n';\n } ;\n__p += ' ';\n if (node.image && options.show_node_tooltip_image) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n ' +\n__e(renkan.translate(\"Link to the node\")) +\n'\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_video.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n \\n ';\n if (options.show_node_editor_title_richtext) { ;\n__p += '\\n
\\n \\n \\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_description) { ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_description_richtext) { ;\n__p += '\\n
\\n ' +\n__e(renkan.translate(\"Size:\")) +\n'\\n -\\n ' +\n__e(node.size) +\n'\\n +\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_style) { ;\n__p += '\\n\\n \\n
\\n \\n';\n if (options.allow_image_upload) { ;\n__p += '\\n\\n \\n \\n
\\n';\n };\n\n } ;\n__p += ' ';\n if (options.show_node_editor_creator && node.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.change_shapes) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/scene.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n\n if (options.show_top_bar) { ;\n__p += '\\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n\\n ' +\n__e( edge.short_uri ) +\n'\\n
\\n';\n } ;\n__p += '\\n' +\n((__t = (edge.description)) == null ? '' : __t) +\n'
\\n';\n if (options.show_edge_tooltip_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_tooltip_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/edgeeditor.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n__p += '\\n \\n \\n
\\n';\n if (options.show_edge_editor_uri) { ;\n__p += '\\n \\n ';\n if (options.properties.length) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } } ;\n__p += '\\n';\n if (options.show_edge_editor_style) { ;\n__p += '\\n\\n ' +\n__e( renkan.translate(\"Change edge direction\") ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_nodes) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"From:\")) +\n'\\n \\n ' +\n__e( shortenText(edge.from_title, 25) ) +\n'\\n
\\n\\n ' +\n__e(renkan.translate(\"To:\")) +\n'\\n %-edge.to_color%>;\">\\n ' +\n__e( shortenText(edge.to_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n if (options.show_edge_editor_creator && edge.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n ;\">\\n ' +\n__e( shortenText(edge.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/ldtjson-bin/annotationtemplate.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape;\nwith (obj) {\n__p += '' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\nStart: ' +\n((__t = (start)) == null ? '' : __t) +\n', End: ' +\n((__t = (end)) == null ? '' : __t) +\n', Duration: ' +\n((__t = (duration)) == null ? '' : __t) +\n'
\\n \\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n ';\n } ;\n__p += '\\n ';\n if (image) { ;\n__p += '\\n \\n ';\n } ;\n__p += '\\n\\n ' +\n__e(node.short_uri) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_tooltip_description) { ;\n__p += '\\n' +\n((__t = (node.description)) == null ? '' : __t) +\n'
\\n';\n } ;\n__p += ' ';\n if (node.image && options.show_node_tooltip_image) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += '\\n ' +\n__e(renkan.translate(\"Link to the node\")) +\n'\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor_video.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n\n\nfunction get_youtube_id(url) {\n var regExp = /^.*(youtu\\.be\\/|v\\/|u\\/\\w\\/|embed\\/|watch\\?v=|\\&v=)([^#\\&\\?]*).*/;\n var match = url.match(regExp);\n if (match && match[2].length == 11) {\n return match[2];\n } else {\n return false;\n }\n}\n\nfunction get_vimeo_id(url) {\n var regExp = /https?:\\/\\/(www\\.)?vimeo.com\\/(\\d+)($|\\/)/;\n \n var match = url.match(regExp);\n \n if (match){\n return match[2];\n } else {\n return false;\n }\n}\n\nfunction get_dailymotion_id(url) {\n var regExp = /^(?:(?:http|https):\\/\\/)?(?:www.)?(dailymotion\\.com|dai\\.ly)\\/((video\\/([^_]+))|(hub\\/([^_]+)|([^\\/_]+)))$/;\n\n var match = url.match(regExp);\n\n if (match) {\n if(match[4] !== undefined) {\n return match[4];\n }\n return match[2];\n }\n return false;\n}\n\nfunction get_facebook_id(url) {\n var regExp = /^https?:\\/\\/www\\.facebook\\.com\\/(?:video\\.php\\?v=\\d+|.*?\\/videos\\/\\d+)\\/?$/;\n \n var match = url.match(regExp);\n\n if (match) {\n return encodeURIComponent(url);\n }\n return false;\n}\n\n;\n__p += '\\n' +\n__e(renkan.translate(\"Link\")) +\n'
\\n ';\n }\n else if(video_id = get_vimeo_id(node.uri)) { ;\n__p += '\\n \\n' +\n__e(renkan.translate(\"Link\")) +\n'
\\n ';\n }\n else if(video_id = get_dailymotion_id(node.uri)) { ;\n__p += '\\n \\n' +\n__e(renkan.translate(\"Link\")) +\n'
\\n ';\n }\n else if(video_id = get_facebook_id(node.uri)) { ;\n__p += '\\n \\n' +\n__e(renkan.translate(\"Video link\")) +\n'
\\n ';\n }\n else { ;\n__p += ' \\n \\n ';\n }\n }\n;\n__p += '\\n ' +\n__e(renkan.translate(\"Link to the node\")) +\n'\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/nodeeditor.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n\n //TODO: change class to id ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_title_richtext) { ;\n__p += '\\n
\\n \\n \\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_description) { ;\n__p += '\\n\\n \\n ';\n if (options.show_node_editor_description_richtext) { ;\n__p += '\\n
\\n ' +\n__e(renkan.translate(\"Size:\")) +\n'\\n -\\n ' +\n__e(node.size) +\n'\\n +\\n
\\n';\n } ;\n__p += ' ';\n if (options.show_node_editor_style) { ;\n__p += '\\n\\n \\n
\\n \\n';\n if (options.allow_image_upload) { ;\n__p += '\\n\\n \\n \\n
\\n';\n };\n\n } ;\n__p += ' ';\n if (options.show_node_editor_creator && node.has_creator) { ;\n__p += '\\n\\n ' +\n__e(renkan.translate(\"Created by:\")) +\n'\\n \\n ' +\n__e( shortenText(node.created_by_title, 25) ) +\n'\\n
\\n';\n } ;\n__p += ' ';\n if (options.change_shapes) { ;\n__p += '\\n\\n \\n \\n
\\n';\n } ;\n__p += '\\n';\n\n}\nreturn __p\n};\n\nthis[\"renkanJST\"][\"templates/scene.html\"] = function(obj) {\nobj || (obj = {});\nvar __t, __p = '', __e = _.escape, __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\nwith (obj) {\n\n if (options.show_top_bar) { ;\n__p += '\\n' +\n((__t = (hdescription)) == null ? '' : __t) +\n'
\\n' + +__e(renkan.translate("Link")) + +'
\n '; + } + else if(video_id = get_vimeo_id(node.uri)) { ; +__p += '\n \n\n \n'; - } ; +'" target="_blank">' + +__e(renkan.translate("Link")) + +'
\n '; + } + else if(video_id = get_dailymotion_id(node.uri)) { ; +__p += '\n \n' + +__e(renkan.translate("Link")) + +'
\n '; + } + else if(video_id = get_facebook_id(node.uri)) { ; +__p += '\n \n' + +__e(renkan.translate("Video link")) + +'
\n '; + } + else { ; +__p += ' \n \n '; + } + } +; __p += '\n ' + @@ -2304,6 +2394,7 @@ "Fullscreen not supported by your browser": "Le plein écran n'est pas supporté par votre navigateur", "Title size:": "Taille :", "Title color:": "Couleur :", + "Video link": "Lien vidéo" } }; diff -r 50f5e8d2c839 -r cac26275af31 server/python/django2/renkanmanager/static/renkanmanager/lib/renkan/js/renkan.min.js --- a/server/python/django2/renkanmanager/static/renkanmanager/lib/renkan/js/renkan.min.js Fri Sep 15 14:04:42 2017 +0200 +++ b/server/python/django2/renkanmanager/static/renkanmanager/lib/renkan/js/renkan.min.js Fri Sep 15 14:11:36 2017 +0200 @@ -24,12 +24,12 @@ * knowledge of the CeCILL-C license and that you accept its terms. */ -/*! renkan - v00.13 - Copyright © IRI 2017 */ +/*! renkan - v00.13.02 - Copyright © IRI 2017 */ -this.renkanJST=this.renkanJST||{},this.renkanJST["templates/colorpicker.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='';return __p},this.renkanJST["templates/edgeeditor_readonly.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='"+(null==(__t=edge.description)?"":__t)+"
\n",options.show_edge_tooltip_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_tooltip_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/edgeeditor.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='\n \n \n
\n',options.show_edge_editor_uri&&(__p+="\n \n ',options.properties.length&&(__p+="\n\n \n \n
\n")),__p+="\n",options.show_edge_editor_style&&(__p+='\n\n '+__e(renkan.translate("Change edge direction"))+"\n
\n"),__p+="\n",options.show_edge_editor_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_editor_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/ldtjson-bin/annotationtemplate.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n
\n '+(null==(__t=hdescription)?"":__t)+"
\n "),__p+="\n ",image&&(__p+='\n \n '),__p+="\n'+(null==(__t=node.description)?"":__t)+"
\n"),__p+=" ",node.image&&options.show_node_tooltip_image&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+='\n '+__e(renkan.translate("Link to the node"))+"\n";return __p},this.renkanJST["templates/nodeeditor_video.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='\n \n ",__p+=options.show_node_editor_title_richtext?'\n
\n \n \n
\n"),__p+=" ",options.show_node_editor_description&&(__p+="\n\n \n ",__p+=options.show_node_editor_description_richtext?'\n
\n '+__e(renkan.translate("Size:"))+'\n -\n '+__e(node.size)+'\n +\n
\n'),__p+=" ",options.show_node_editor_style&&(__p+='\n\n \n
\n \n",options.allow_image_upload&&(__p+="\n\n \n \n
\n')),__p+=" ",options.show_node_editor_creator&&node.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+=" ",options.change_shapes&&(__p+="\n\n \n \n
\n"),__p+="\n";return __p},this.renkanJST["templates/scene.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)options.show_top_bar&&(__p+='\n
\n '+(null==(__t=hdescription)?"":__t)+"
\n"+(null==(__t=edge.description)?"":__t)+"
\n",options.show_edge_tooltip_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_tooltip_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/edgeeditor.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='\n \n \n
\n',options.show_edge_editor_uri&&(__p+="\n \n ',options.properties.length&&(__p+="\n\n \n \n
\n")),__p+="\n",options.show_edge_editor_style&&(__p+='\n\n '+__e(renkan.translate("Change edge direction"))+"\n
\n"),__p+="\n",options.show_edge_editor_nodes&&(__p+='\n\n '+__e(renkan.translate("From:"))+'\n \n '+__e(shortenText(edge.from_title,25))+'\n
\n\n '+__e(renkan.translate("To:"))+'\n \n '+__e(shortenText(edge.to_title,25))+"\n
\n"),__p+="\n",options.show_edge_editor_creator&&edge.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(edge.created_by_title,25))+"\n
\n"),__p+="\n";return __p},this.renkanJST["templates/ldtjson-bin/annotationtemplate.html"]=function(obj){obj||(obj={});var __t,__p="",__e=_.escape;with(obj)__p+='"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n"+(null==(__t=hdescription)?"":__t)+"
\nStart: "+(null==(__t=start)?"":__t)+", End: "+(null==(__t=end)?"":__t)+", Duration: "+(null==(__t=duration)?"":__t)+'
\n \n
\n '+(null==(__t=hdescription)?"":__t)+"
\n "),__p+="\n ",image&&(__p+='\n \n '),__p+="\n'+(null==(__t=node.description)?"":__t)+"
\n"),__p+=" ",node.image&&options.show_node_tooltip_image&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+='\n '+__e(renkan.translate("Link to the node"))+"\n";return __p},this.renkanJST["templates/nodeeditor_video.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}function get_youtube_id(a){var b=/^.*(youtu\.be\/|v\/|u\/\w\/|embed\/|watch\?v=|\&v=)([^#\&\?]*).*/,c=a.match(b);return!(!c||11!=c[2].length)&&c[2]}function get_vimeo_id(a){var b=/https?:\/\/(www\.)?vimeo.com\/(\d+)($|\/)/,c=a.match(b);return!!c&&c[2]}function get_dailymotion_id(a){var b=/^(?:(?:http|https):\/\/)?(?:www.)?(dailymotion\.com|dai\.ly)\/((video\/([^_]+))|(hub\/([^_]+)|([^\/_]+)))$/,c=a.match(b);return!!c&&(void 0!==c[4]?c[4]:c[2])}function get_facebook_id(a){var b=/^https?:\/\/www\.facebook\.com\/(?:video\.php\?v=\d+|.*?\/videos\/\d+)\/?$/,c=a.match(b);return!!c&&encodeURIComponent(a)}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj){if(__p+='\n'+__e(renkan.translate("Link"))+"
\n ":(video_id=get_vimeo_id(node.uri))?'\n \n'+__e(renkan.translate("Link"))+"
\n ":(video_id=get_dailymotion_id(node.uri))?'\n \n'+__e(renkan.translate("Link"))+"
\n ":(video_id=get_facebook_id(node.uri))?'\n \n'+__e(renkan.translate("Video link"))+"
\n ":' \n \n '}__p+='\n '+__e(renkan.translate("Link to the node"))+"\n"}return __p},this.renkanJST["templates/nodeeditor.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)__p+='\n\n \n ",__p+=options.show_node_editor_title_richtext?'\n
\n \n \n
\n"),__p+=" ",options.show_node_editor_description&&(__p+="\n\n \n ",__p+=options.show_node_editor_description_richtext?'\n
\n '+__e(renkan.translate("Size:"))+'\n -\n '+__e(node.size)+'\n +\n
\n'),__p+=" ",options.show_node_editor_style&&(__p+='\n\n \n
\n \n",options.allow_image_upload&&(__p+="\n\n \n \n
\n')),__p+=" ",options.show_node_editor_creator&&node.has_creator&&(__p+='\n\n '+__e(renkan.translate("Created by:"))+'\n \n '+__e(shortenText(node.created_by_title,25))+"\n
\n"),__p+=" ",options.change_shapes&&(__p+="\n\n \n \n
\n"),__p+="\n";return __p},this.renkanJST["templates/scene.html"]=function(obj){function print(){__p+=__j.call(arguments,"")}obj||(obj={});var __t,__p="",__e=_.escape,__j=Array.prototype.join;with(obj)options.show_top_bar&&(__p+='\n
\n '+(null==(__t=hdescription)?"":__t)+"
\n