Reworked mdplayer embed config (iframe and div) to allow for config versioning, added MultiSegment widget to config list
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/iframe_base.html Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,84 @@
+{% load i18n %}
+{% load thumbnail %}
+{% load static %}
+{% load absurl %}
+{% load analytics %}
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{LANGUAGE_CODE}}" lang="{{LANGUAGE_CODE}}">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+ <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
+ <meta http-equiv="Pragma" content="no-cache" />
+ <meta http-equiv="Cache" content="no store" />
+ <meta http-equiv="Expires" content="-1" />
+ <title>Ligne de Temps - IRI - Metadata Player</title>
+ <script type="text/javascript">
+ {% if tag_titles or tag_titles == "" %}
+ tag_string= '{{ tag_titles }}';
+ tag_titles_array=tag_string.split(",");
+ {% endif %}
+
+ // Public function to set location's hash. Usefull because browser's security does not allow to get/set document.getElementById("my-iframe").contentWindow.location.hash
+ var setHash = function(e) {
+ // e.data is the string sent by the origin with postMessage.
+ if(e.data.substr(0,1) == '#') {
+ window.location.hash = e.data.substr(1);
+ }
+ }
+ // we have to listen for 'message'
+ window.addEventListener('message', setHash, false);
+ </script>
+ </head>
+ <body id="init_embed_popup">
+ <div style="float:left; width:550px;" id="wrapper_{{player_id}}">
+
+ <div>
+ <div id="{{ player_id }}_embed" class="iri_player_embed"></div>
+ <script type="text/javascript" src='{% static "ldt/metadataplayer/LdtPlayer-core.js" %}'></script>
+ <script type="text/javascript">
+
+ if (typeof jQuery == "undefined") {
+ jQuery = IriSP.jQuery;
+ }
+ var metadatas = {metadata: {url: '{{json_url}}'}};
+ var metadata_key = "metadata";
+
+ IriSP.libFiles.defaultDir = '{% static "ldt/js/" %}';
+ IriSP.libFiles.locations.jwPlayerSWF = '{% static "ldt/swf/player.swf" %}';
+ IriSP.libFiles.locations.recordMicSwf = '{% static "ldt/swf/record_mic.swf" %}';
+ IriSP.libFiles.locations.zeroClipboardSwf = '{% static "ldt/swf/ZeroClipboard10.swf" %}';
+ IriSP.libFiles.locations.cssjQueryUI = '{% static "ldt/css/jq-css/themes/base/jquery-ui.css" %}';
+ IriSP.language = '{{LANGUAGE_CODE}}';
+
+ IriSP.widgetsDir = '{% static "ldt/metadataplayer" %}';
+ var _metadata = {
+ url: metadatas[metadata_key].url,
+ format: 'ldt'
+ };
+
+ {% block mdplayer_config %}
+ {% endblock mdplayer_config %}
+
+ _myPlayer = new IriSP.Metadataplayer(_config);
+
+ </script>
+ </div>
+ </div>
+ {% if social %}
+ <div id="Social_ext" class="Ldt-TraceMe Ldt-Widget" style="float:right; width:400px; height:24px;" widget-type="Social">
+ </div>
+ {% endif %}
+ {% if slideshare %}
+ <div id="Slideshare_ext" class="ext_widget Ldt-TraceMe Ldt-Widget" style="float:left; width:400px;" widget-type="Slideshare">
+ </div>
+ {% endif %}
+ {% if annotations_list %}
+ <div style="float:left; width:400px;" id="AnnotationsList_ext"></div>
+ {% endif %}
+
+{% analytics %}
+ </body>
+</html>
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/mdplayer_config_base.html Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,139 @@
+{% extends "ldt/ldt_utils/workspace_base.html" %}
+{% load i18n %}
+{% load front_tags %}
+{% load absurl %}
+{% load static %}
+{% load static %}
+{% load analytics %}
+ {% block js_import %}
+ {{ block.super }}
+ <script type="text/javascript" src='{% static "ldt/js/jquery.min.js" %}'></script>
+ <script type="text/javascript" src='{% static "ldt/js/jscolor/jscolor.js" %}'></script>
+ {{ content_form.media.js }}
+ {% endblock %}
+
+ {% block js_declaration %}
+ <script type="text/javascript">
+ var $j = jQuery.noConflict();
+ var iframe_url='{{iframe_url}}';
+ var external_url='{{external_url}}';
+ var polemic='{{polemic}}';
+ var show_mic_record='{{show_mic_record}}';
+ var annotations_list='{{annotations_list}}';
+ var player_id='{{player_id}}';
+ var translate_show="{% trans 'Show Player' %}";
+ var translate_hide="{% trans 'Hide Player' %}";
+ var LANGUAGE_CODE='{{LANGUAGE_CODE}}';
+ var json_url='{{json_url}}';
+ var player_id='{{player_id}}';
+ var defaultDir='{% static "ldt/js/" %}';
+ var jwPlayerSWF='{% static "ldt/swf/player.swf" %}';
+ var recordMicSwf='{% static "ldt/swf/record_mic.swf" %}';
+ var zeroClipboardSwf='{% static "ldt/swf/ZeroClipboard10.swf" %}';
+ var cssjQueryUI='{% static "ldt/css/jq-css/themes/base/jquery-ui.css" %}';
+ var widgetsDir='{% static "ldt/metadataplayer" %}';
+ var configCss='{% static "ldt/metadataplayer/LdtPlayer-core.css" %}';
+ var default_thumbnail='{% static "ldt/css/imgs/video_sequence.png" %}';
+ var segment_api="{% absurl 'segment_api_empty' resource_name='segments' api_name='1.0' %}{% templatetag openvariable %}media{% templatetag closevariable %}/{% templatetag openvariable %}begin{% templatetag closevariable %}/{% templatetag openvariable %}end{% templatetag closevariable %}";
+ var LdtPlayer_core='{% static "ldt/metadataplayer/LdtPlayer-core.js" %}';
+ var creator_name='{{request.user.username}}';
+
+ $j(document).ready(function(){
+ init_events();
+ });
+
+ </script>
+ {% endblock %}
+ {% block css_import %}
+ {{ block.super }}
+ {{ content_form.media.css }}
+ <link rel="stylesheet" href='{% static "ldt/css/style.css" %}' />
+ <link rel="stylesheet" href='{% static "ldt/css/workspace.css" %}'/>
+ <link rel="stylesheet" href='{% static "ldt/css/embed_popup.css" %}'/>
+ <link rel="stylesheet" href='{% static "ldt/css/jq-css/jquery.qtip.css" %}' type="text/css"/>
+
+ {% endblock %}
+
+
+ {% block content %}
+ <div id='ldt_id'>
+ <p>{% trans 'Share the project' %} : <span class="large_text">{{ project.title }}</span></p>
+ <p class="margin0">{% trans "List of the project's contents" %}:<br/>
+ <ul>
+ {% for c in contents %}
+ <li>{{ c.title }} - <span class="middle_text">{% trans 'Link to the Metadata Player' %} : <a href="{% url 'ldt.ldt_utils.views.front.annot_content' c.iri_id ldt_id %}" target="_blank">{% trans 'See' %}</a> - </span><span class="click_to_select">{% trans 'Select' %}</span> : <input id="" class="copy_input" value="{% absurl 'ldt.ldt_utils.views.front.annot_content' c.iri_id ldt_id %}"/></li>
+ {% endfor %}
+ </ul>
+ </p>
+ <div>{% trans 'project id' %} <span id="project_id_select" class="click_to_select">({% trans 'Select' %})</span> : <input id="project_id_input" class="copy_input" value="{{ldt_id}}"/></div>
+ <div>{% trans 'The project in Lignes de Temps' %} : <span class="middle_text"><a href="{% url 'index_project_full' ldt_id %}" target="_blank">{% trans 'See' %}</a> - </span><span class="click_to_select">{% trans 'Select' %}</span> : <input id="" class="copy_input" value="{% absurl 'index_project_full' ldt_id %}"/></div>
+ </div>
+ <br>
+ <div id="button_row">
+ <div id="display_select">
+ <input id="player_button" type="button" class="code_button" value="{% trans 'popup_player'%}"/>
+ <input id="ldt_iframe_button" type="button" class="code_button" value="{% trans 'popup_ldt_iframe' %}"/>
+ <input id="seo_body_button" type="button" class="code_button" value="{% trans 'popup_seo_body' %}"/>
+ <input id="seo_meta_button" type="button" class="code_button" value="{% trans 'popup_seo_meta' %}"/>
+ <input id="links_button" type="button" class="code_button" value="{% trans 'popup_links' %}"/>
+ </div>
+ </div>
+
+
+ <div style="float: left;">
+ <div id="links_code" class="ldt_player_code">{% include "ldt/ldt_utils/partial/embed_links.html" %}</div>
+ <div id="ldt_iframe_code">
+ <textarea id="ldt_iframe_id_code" readonly="readonly" class="ldt_player_code" >{% autoescape off %}<iframe src="{% absurl 'embed_ldt' ldt_id %}" width='1005' height='635' seamless='seamless'></iframe>{% endautoescape %}</textarea>
+ </div>
+ <div id="seo_body_code">
+ <textarea id="seo_body_id_code" readonly="readonly" class="ldt_player_code" >{{ embed_rendered.seo_body }}</textarea>
+ </div>
+ <div id="seo_meta_code">
+ <textarea id="seo_meta_id_code" readonly="readonly" class="ldt_player_code">{{ embed_rendered.seo_meta }}</textarea>
+ </div>
+
+ <div id="player_code">
+ <div class="configuration">
+ <br><div id="embed_options"><br> {% trans 'Integration mode' %}
+ <input type="radio" id="type_embed_div" name="player_code_type" value="div" checked onClick="div_event()" > {% trans 'div' %} </input>
+ <input type="radio" id="type_embed_iframe" name="player_code_type" value="iframe" onClick="iframe_event()"> {% trans 'iframe' %} </input><br>
+ </div>
+ <div id="player_size">
+ {% trans 'Player Size : ' %}
+ <input type="text" class="number_area" id="player_width" onChange="put_new_code();"></input> x
+ <input type="text" class="number_area" id="player_height" onChange="put_new_code();"></input>
+ </div>
+ <a id="displayPreMode" class="OptionsEmbedDisplay">
+ <span id= "preModeExpArrow" class="expArrow"></span>
+ <span id= "preModeCollArrow" class="collArrow"></span>
+ <span class="title">{% trans 'Preset Modes' %}</span>
+ </a><br>
+ <div id="iframe_div_premode" class="embedPersonnalisation">
+ <input type="radio" id="mode_1" name="embed_mode" value="mode1" checked onClick="mode1()" > {% trans 'Basic configuration' %} </input><br>
+ <input type="radio" id="mode_2" name="embed_mode" value="mode2" onClick="mode2()"> {% trans 'Polemic configuration' %} </input><br>
+ <input type="radio" id="mode_3" name="embed_mode" value="mode3" onClick="mode3()"> {% trans 'Polemic configuration with tagcloud, annotationsList and Social widgets' %} </input><br>
+ <br>
+ </div>
+
+ <a id="displayEmbedOptions" class="OptionsEmbedDisplay">
+ <span id= "optionsExpArrow" class="expArrow"></span>
+ <span id= "optionsCollArrow" class="collArrow"></span>
+ <span class="title">{% trans 'Create your own configuration' %}</span>
+ </a><br>
+ <div id="embed_personnalisation" class="embedPersonnalisation">
+ {% block embed_widget_config %}
+ {% endblock embed_widget_config %}
+ </div>
+ <textarea id="player_id_code" readonly="readonly" class="ldt_player_code" onClick="select_code();"></textarea>
+ </div>
+ </div>
+ <a id="displayPlayer" href="javascript:toggle();">{% trans 'Show Player' %}</a>
+ </div>
+ <div id="player_div" style="display:none">
+ <button type="button" class="refresh_button" id="refresh_player_button" title="Rafraichir le player" >
+ <img src='{% static "ldt/img/arrow_refresh.png" %}' id="refresh_player" ></img>
+ </button>
+ <div class="ldt_player" id="wrapper_{{player_id}}"></div>
+ </div>
+ {% endblock %}
+ {% analytics %}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/v1/iframe.html Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,164 @@
+{% extends "ldt/ldt_utils/embed/iframe_base.html" %}
+{% load i18n %}
+{% load thumbnail %}
+{% load static %}
+{% load absurl %}
+{% load analytics %}
+{% block mdplayer_config %}
+ var _config = {
+ width: '{{ player_width }}',
+ container: '{{ player_id }}_embed',
+ css: '{% static "ldt/metadataplayer/LdtPlayer-core.css" %}',
+ default_options: {
+ metadata: _metadata
+ },
+ widgets: [
+ {
+ type: "AutoPlayer",
+ {% if external_url %}
+ video: "{{ external_url }}",
+ {% else %}
+ streamer: function(_url) {
+ var _matches = _url.match(/^[^\/]+\/\/[^\/]+\/[^\/]+\//);
+ if (_matches) {
+ return _matches[0];
+ } else {
+ return _url;
+ }
+ },
+ {% endif %}
+ height: '{{ player_height }}',
+ url_transform: function(url) {
+ // Adaptation to jwplayer 6
+ if(url.substr(url.length - 4).toLowerCase()=='.flv'){
+ return url.replace('/ddc_player/video/','/ddc_player/flv:video/');
+ }
+ return url.replace('/ddc_player/video/','/ddc_player/mp4:video/');
+ },
+ autostart: {% if autostart %} true {% else %} false {% endif %}
+ }
+ {% if polemic == 'all' or polemic == 'tweet' %}
+ ,{
+ type: "Polemic",
+ {% if polemic == 'all' %}
+ annotation_type: false,
+ {% endif %}
+ {% if polemic == 'tweet' %}
+ annotation_type: "tweet",
+ {% endif %}
+ max_elements: {{ polemic__max_elements }},
+ defaultcolor: "#{{ polemic_defaultColor }}",
+ foundcolor: "#{{ polemic_foundColor }}",
+ {% if polemics_list %}
+ polemics : {{ polemics_list|safe }}
+ {% else %}
+ polemics : [
+ {
+ "name" : "OK",
+ "keywords" : [ "++" ],
+ "color" : "#{{ polemic_okColor }}"
+ },
+ {
+ "name" : "KO",
+ "keywords" : [ "--" ],
+ "color" : "#{{ polemic_koColor }}"
+ },
+ {
+ "name" : "REF",
+ "keywords" : [ "==", "http://" ],
+ "color" : "#{{ polemic_refColor }}"
+ },
+ {
+ "name" : "Q",
+ "keywords" : [ "?" ],
+ "color" : "#{{ polemic_qColor }}"
+ }
+ ]
+ {% endif %}
+ }
+ {% endif %}
+ {% if sparkline %}
+ ,{
+ type: "Sparkline",
+ lineColor: "#{{ sparkline_lineColor }}",
+ fillColor: "#{{ sparkline_fillColor }}",
+ }
+ {% endif %}
+ ,{
+ type: "Slider"
+ }
+
+ {% if annotations_list %},{
+ type: "AnnotationsList",
+ container: "AnnotationsList_ext",
+ ajax_url: "{% absurl 'segment_api_empty' resource_name='segments' api_name='1.0' %}{% templatetag openvariable %}media{% templatetag closevariable %}/{% templatetag openvariable %}begin{% templatetag closevariable %}/{% templatetag openvariable %}end{% templatetag closevariable %}",
+ ajax_granularity : 300000,
+ default_thumbnail : '{% static "ldt/css/imgs/video_sequence.png" %}',
+ show_audio: true,
+ rtmp_streamer: "rtmp://media.iri.centrepompidou.fr/ddc_micro_record/"
+ }{% endif %},{
+ type: "Controller"
+ }
+ {% if segments %},{
+ type: "MultiSegments"
+ }
+ {% endif %}
+ {% if annotation %},{
+ type: "Annotation",
+ start_minimized: true,
+ site_name : "Lignes de Temps",
+ annotation_type: ["chap","découpage"]
+ }
+ {% endif %}
+ {% if tweet %},{
+ type: "Tweet",
+ hide_timeout: 5000
+ }
+ {% endif %}
+ {% if createannotation %},{
+ type: "CreateAnnotation",
+ api_endpoint_template: "{% absurl 'api_dispatch_list' resource_name='annotations' api_name='1.0' %}",
+ after_send_timeout: 8000,
+ {% if tag_titles or tag_titles == "" %}
+ tag_titles : tag_titles_array,
+ {% else %}
+ tag_titles : false,
+ {% endif %}
+ show_mic_record: {% if show_mic_record %}true{% else %}false{% endif %},
+ close_after_send: false,
+ slice_annotation_type: ["chap","découpage"],
+ creator_name: '{{request.user.username}}',
+ creator_avatar: '{% thumbnail request.user.image "48x48" format="PNG" crop="center" as im %}{{WEB_URL}}{{ im.url }}{% endthumbnail %}' || "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
+ {% if not createannotation_polemics %}polemics: []{% endif %}
+ }{% endif %}
+ {% if slideshare %},{
+ type: "Slideshare",
+ container: "Slideshare_ext",
+ embed_width: 400,
+ embed_height: 334,
+ annotation_type: "slide"
+ }
+ {% endif %},{
+ type: "Mediafragment"
+ }
+ {% if social %},{
+ type: "Social",
+ container: "Social_ext",
+ show_url: {% if show_url %}true{% else %}false{% endif %},
+ show_twitter: {% if show_twitter %}true{% else %}false{% endif %},
+ show_fb: {% if show_fb %}true{% else %}false{% endif %},
+ show_gplus: {% if show_gplus %}true{% else %}false{% endif %},
+ show_mail: {% if show_mail %}true{% else %}false{% endif %},
+ url: document.location.href.replace(/#.*$/,""),
+ text: document.title
+ }
+ {% endif %}
+
+ {% if tagcloud %},{
+ type: "Tagcloud"
+ }
+ {% endif %}
+ ]
+ };
+{% endblock mdplayer_config %}
+{% analytics %}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/v1/mdplayer_config.html Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,136 @@
+{% extends "ldt/ldt_utils/embed/mdplayer_config_base.html" %}
+{% load i18n %}
+{% load front_tags %}
+{% load absurl %}
+{% load static %}
+{% load static %}
+{% load analytics %}
+{% block js_import %}
+ {{ block.super }}
+ <script type="text/javascript" src='{% static "ldt/js/embed/v1/embed.js" %}'></script>
+{% endblock %}
+
+{% block js_declaration %}
+ {{ block.super }}
+{% endblock %}
+{% block css_import %}
+ {{ block.super }}
+{% endblock %}
+{% block embed_widget_config %}
+ <input type="checkbox" id="autostart_checkbox" value="autostart" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="AutoStart" data-desc="{% trans 'The video starts automatically' %}">Autostart</span>
+ </input><br>
+ <div id="createannotation_block">
+ <input type="checkbox" id="createannotation_checkbox" value="createannotation" onClick="put_new_code(); display_createannotation();" >
+ <span class="infostooltip title" data-title="createAnnotation" data-desc="{% trans 'Displays a form to create a new annotation' %}">CreateAnnotation</span>
+ </input><br>
+ <div id="createannotation_options" class="embedPersonnalisationSecondLevel">
+ <input type="checkbox" id="show_mic_record_checkbox" value="{% trans 'audio annotation' %}" onClick="put_new_code()" >
+ <span class="infostooltip title" data-title="{% trans 'Audio annotation' %}" data-desc="{% trans 'Allows the user to record an annotation' %}">{% trans 'Audio annotation' %}</span>
+ </input><br>
+ <input type="radio" name="annotation_tag" id="default_tags" checked onClick="put_new_code();">{% trans 'Use most used tags ' %}</input>
+ <input type="radio" name="annotation_tag" id="set_tags">
+ <span class="infostooltip title" data-title="{%trans 'Set your own tags : ' %}" data-desc="{% trans 'Write your tags separeted by a comma' %}">{%trans 'Set your own tags : ' %}</span>
+ <input type="text" id="tag_list" class="tags_area" onChange="put_new_code()"></input>
+ </input><br>
+ <input type="checkbox" id="createannotation_polemics_checkbox" value="{% trans '4 polemics buttons' %} ++/--/??/==" onClick="put_new_code()" >
+ <span class="infostooltip title" data-title="{% trans '4 polemics buttons' %} ++/--/??/==" data-desc="{% trans 'Displays or removes the 4 polemics buttons' %} ++/--/??/==">{% trans '4 polemics buttons' %} ++/--/??/==</span>
+ </input>
+ </div>
+ </div>
+ <input type="checkbox" id="segments_checkbox" value="segments" onClick="put_new_code()" >
+ <span class="infostooltip title" data-title="Segments" data-desc="{% trans 'Displays segments of a media as rectangles on an horizontal line' %}">Segments</span>
+ </input><br>
+ <div id="multisegments_block">
+ <input type="checkbox" id="multisegments_checkbox" value="multisegments" onClick="put_new_code()" >
+ <span class="infostooltip title" data-title="MultiSegments" data-desc="{% trans 'Displays every segment of a media as rectangles on multiple horizontal lines' %}">MultiSegments</span>
+ </input><br>
+ </div>
+ <input type="checkbox" id="annotations_list_checkbox" value="annotationslist" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="Annotationlist" data-desc="{% trans 'Show a list of all annotations accross every project for this content' %}">AnnotationsList</span>
+ </input><br>
+ <div id='polemic_bloc'>
+ <input type="checkbox" id="polemic_checkbox" value="polemic" onClick="put_new_code(); display_polemic();">
+ <span class="infostooltip title" data-title="Polemic" data-desc="{% trans 'Shows the polemical timeline, i.e. tweets colored according to the polemical syntax' %}">Polemic</span>
+ </input><br>
+ <div id="polemic_options" class="embedPersonnalisationSecondLevel">
+ <div id="displayPolemicOptions">{% trans 'Display in the polemic timeline : ' %}
+ <input type="radio" id="tweet_polemic" name="polemic_annotation_type" checked onClick="put_new_code()">{% trans 'only tweets' %} </input>
+ <input type="radio" id="all_polemic" name="polemic_annotation_type" onClick="put_new_code()">{% trans 'all annotations' %} </input><br>
+ <a id="displayPolemicColorOptions" class="AdvancedOptionsDisplay">
+ <span class="title">{% trans "Personalize tweet's color" %}</span>
+ </a>
+ </div>
+ <div id="polemic_color_options" class="embedPersonnalisation">
+ <div id="color_default_options">
+ <span class="title">{% trans "Default color" %} </span>
+ <input id="polemic_default_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ </div>
+ <div id="polemics_colors">
+ <span class="title">{% trans "Polemic's color : ++ : " %} </span>
+ <input id="polemic_ok_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ <span class="title"> -- : </span>
+ <input id="polemic_ko_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ <span class="title"> == : </span>
+ <input id="polemic_ref_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ <span class="title"> ? : </span>
+ <input id="polemic_q_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ </div>
+ <div id="color_found_options">
+ <span class="title">{% trans "Found color" %}</span>
+ <input id="polemic_found_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div>
+ <input type="checkbox" id="sparkline_checkbox" value="sparkline" onClick="put_new_code(); display_sparkline();">
+ <span class="infostooltip title" data-title="Sparkline" data-desc="{% trans 'Displays a curve showing the project annotation volume across time' %}">Sparkline</span>
+ </input><br>
+ <div id="sparkline_options" class="embedPersonnalisationSecondLevel">
+ <a id="displaySparklineOptions" class="AdvancedOptionsDisplay">
+ <span class="title">{% trans "personalize sparkline's color" %}</span>
+ </a>
+ <div id="sparkline_color_options" class="embedPersonnalisation">
+ <div id="color_line_options">
+ <span class="title">{% trans 'line color' %} </span>
+ <input id="sparkline_line_color" class="codeColor_text color {hash:true,caps:false}" onchange='put_new_code();' type="text" maxlength="7"></input>
+ </div>
+
+ <div id="fill_color_options">
+ <span class="title">{% trans 'fill color' %} </span>
+ <input id="sparkline_fill_color" class="codeColor_text color {hash:true,caps:false}" onchange='put_new_code();' type="text" maxlength="7"></input>
+ </div>
+ </div>
+ </div>
+ </div>
+ <input type="checkbox" id="slideshare_checkbox" value="slideshare" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="Slideshare" data-desc="{% trans 'Displays a div in order to watch the slides displayed in the media' %}">Slideshare</span>
+ </input><br>
+ <div>
+ <input type="checkbox" id="social_checkbox" value="social" onClick="put_new_code(); display_social();">
+ <span class="infostooltip title" data-title="Social" data-desc="{% trans ' Adds buttons to share an URL on social networks' %}">Social</span>
+ </input><br>
+ <div id="social_options" class="embedPersonnalisation">
+ <input type="checkbox" id="show_url_checkbox" value="show_url" checked onClick="put_new_code()"> Url </input>
+ <input type="checkbox" id="show_twitter_checkbox" value="show_twitter" checked onClick="put_new_code()"> Twitter </input>
+ <input type="checkbox" id="show_fb_checkbox" value="show_fb" checked onClick="put_new_code()"> Facebook </input>
+ <input type="checkbox" id="show_gplus_checkbox" value="show_gplus" checked onClick="put_new_code()"> Google Plus </input>
+ <input type="checkbox" id="show_mail_checkbox" value="show_mail" checked onClick="put_new_code()"> {% trans 'share with email' %} </input><br>
+ </div>
+ </div>
+ <input type="checkbox" id="annotation_checkbox" value="annotation" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="Annotation" data-desc="{% trans ' Displays information relative to a single segment/annotation while it is being played' %}">Annotation</span>
+ </input><br>
+ <input type="checkbox" id="tweet_checkbox" value="tweet" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="Tweet" data-desc="{% trans 'Show the contents on a tweet when clicked (in Polemic Widget)' %}">Tweet</span>
+ </input><br>
+ <input type="checkbox" id="tagcloud_checkbox" value="tagcloud" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="Tagcloud" data-desc="{% trans 'Shows a tag cloud' %}">Tagcloud</span>
+ </input><br><br>
+ <input type="checkbox" id="concatenate_projects_checkbox" value="concatenate_projects" onClick="put_new_code()" /><span>{% trans "Concatenate all projects using this content" %}</span><br/>
+{% endblock %}
+{% block content %}
+ {{ block.super }}
+{% endblock %}
+{% analytics %}
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/v2/iframe.html Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,169 @@
+{% extends "ldt/ldt_utils/embed/iframe_base.html" %}
+{% load i18n %}
+{% load thumbnail %}
+{% load static %}
+{% load absurl %}
+{% load analytics %}
+{% block mdplayer_config %}
+ var _config = {
+ width: '{{ player_width }}',
+ container: '{{ player_id }}_embed',
+ css: '{% static "ldt/metadataplayer/LdtPlayer-core.css" %}',
+ default_options: {
+ metadata: _metadata
+ },
+ widgets: [
+ {
+ type: "AutoPlayer",
+ {% if external_url %}
+ video: "{{ external_url }}",
+ {% else %}
+ streamer: function(_url) {
+ var _matches = _url.match(/^[^\/]+\/\/[^\/]+\/[^\/]+\//);
+ if (_matches) {
+ return _matches[0];
+ } else {
+ return _url;
+ }
+ },
+ {% endif %}
+ height: '{{ player_height }}',
+ url_transform: function(url) {
+ // Adaptation to jwplayer 6
+ if(url.substr(url.length - 4).toLowerCase()=='.flv'){
+ return url.replace('/ddc_player/video/','/ddc_player/flv:video/');
+ }
+ return url.replace('/ddc_player/video/','/ddc_player/mp4:video/');
+ },
+ autostart: {% if autostart %} true {% else %} false {% endif %}
+ }
+ {% if polemic == 'all' or polemic == 'tweet' %}
+ ,{
+ type: "Polemic",
+ {% if polemic == 'all' %}
+ annotation_type: false,
+ {% endif %}
+ {% if polemic == 'tweet' %}
+ annotation_type: "tweet",
+ {% endif %}
+ max_elements: {{ polemic__max_elements }},
+ defaultcolor: "#{{ polemic_defaultColor }}",
+ foundcolor: "#{{ polemic_foundColor }}",
+ {% if polemics_list %}
+ polemics : {{ polemics_list|safe }}
+ {% else %}
+ polemics : [
+ {
+ "name" : "OK",
+ "keywords" : [ "++" ],
+ "color" : "#{{ polemic_okColor }}"
+ },
+ {
+ "name" : "KO",
+ "keywords" : [ "--" ],
+ "color" : "#{{ polemic_koColor }}"
+ },
+ {
+ "name" : "REF",
+ "keywords" : [ "==", "http://" ],
+ "color" : "#{{ polemic_refColor }}"
+ },
+ {
+ "name" : "Q",
+ "keywords" : [ "?" ],
+ "color" : "#{{ polemic_qColor }}"
+ }
+ ]
+ {% endif %}
+ }
+ {% endif %}
+ {% if sparkline %}
+ ,{
+ type: "Sparkline",
+ lineColor: "#{{ sparkline_lineColor }}",
+ fillColor: "#{{ sparkline_fillColor }}",
+ }
+ {% endif %}
+ ,{
+ type: "Slider"
+ }
+
+ {% if annotations_list %},{
+ type: "AnnotationsList",
+ container: "AnnotationsList_ext",
+ ajax_url: "{% absurl 'segment_api_empty' resource_name='segments' api_name='1.0' %}{% templatetag openvariable %}media{% templatetag closevariable %}/{% templatetag openvariable %}begin{% templatetag closevariable %}/{% templatetag openvariable %}end{% templatetag closevariable %}",
+ ajax_granularity : 300000,
+ default_thumbnail : '{% static "ldt/css/imgs/video_sequence.png" %}',
+ show_audio: true,
+ rtmp_streamer: "rtmp://media.iri.centrepompidou.fr/ddc_micro_record/"
+ }{% endif %},{
+ type: "Controller"
+ }
+ {% if segments %},{
+ type: "Segments",
+ annotation_type: ["chap","découpage"]
+ }
+ {% endif %}
+ {% if multisegments %},{
+ type: "MultiSegments"
+ }
+ {% endif %}
+ {% if annotation %},{
+ type: "Annotation",
+ start_minimized: true,
+ site_name : "Lignes de Temps",
+ annotation_type: ["chap","découpage"]
+ }
+ {% endif %}
+ {% if tweet %},{
+ type: "Tweet",
+ hide_timeout: 5000
+ }
+ {% endif %}
+ {% if createannotation %},{
+ type: "CreateAnnotation",
+ api_endpoint_template: "{% absurl 'api_dispatch_list' resource_name='annotations' api_name='1.0' %}",
+ after_send_timeout: 8000,
+ {% if tag_titles or tag_titles == "" %}
+ tag_titles : tag_titles_array,
+ {% else %}
+ tag_titles : false,
+ {% endif %}
+ show_mic_record: {% if show_mic_record %}true{% else %}false{% endif %},
+ close_after_send: false,
+ slice_annotation_type: ["chap","découpage"],
+ creator_name: '{{request.user.username}}',
+ creator_avatar: '{% thumbnail request.user.image "48x48" format="PNG" crop="center" as im %}{{WEB_URL}}{{ im.url }}{% endthumbnail %}' || "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
+ {% if not createannotation_polemics %}polemics: []{% endif %}
+ }{% endif %}
+ {% if slideshare %},{
+ type: "Slideshare",
+ container: "Slideshare_ext",
+ embed_width: 400,
+ embed_height: 334,
+ annotation_type: "slide"
+ }
+ {% endif %},{
+ type: "Mediafragment"
+ }
+ {% if social %},{
+ type: "Social",
+ container: "Social_ext",
+ show_url: {% if show_url %}true{% else %}false{% endif %},
+ show_twitter: {% if show_twitter %}true{% else %}false{% endif %},
+ show_fb: {% if show_fb %}true{% else %}false{% endif %},
+ show_gplus: {% if show_gplus %}true{% else %}false{% endif %},
+ show_mail: {% if show_mail %}true{% else %}false{% endif %},
+ url: document.location.href.replace(/#.*$/,""),
+ text: document.title
+ }
+ {% endif %}
+
+ {% if tagcloud %},{
+ type: "Tagcloud"
+ }
+ {% endif %}
+ ]
+ };
+{% endblock mdplayer_config %}
+{% analytics %}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed/v2/mdplayer_config.html Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,136 @@
+{% extends "ldt/ldt_utils/embed/mdplayer_config_base.html" %}
+{% load i18n %}
+{% load front_tags %}
+{% load absurl %}
+{% load static %}
+{% load static %}
+{% load analytics %}
+{% block js_import %}
+ {{ block.super }}
+ <script type="text/javascript" src='{% static "ldt/js/embed/v2/embed.js" %}'></script>
+{% endblock %}
+
+{% block js_declaration %}
+ {{ block.super }}
+{% endblock %}
+{% block css_import %}
+ {{ block.super }}
+{% endblock %}
+{% block embed_widget_config %}
+ <input type="checkbox" id="autostart_checkbox" value="autostart" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="AutoStart" data-desc="{% trans 'The video starts automatically' %}">Autostart</span>
+ </input><br>
+ <div id="createannotation_block">
+ <input type="checkbox" id="createannotation_checkbox" value="createannotation" onClick="put_new_code(); display_createannotation();" >
+ <span class="infostooltip title" data-title="createAnnotation" data-desc="{% trans 'Displays a form to create a new annotation' %}">CreateAnnotation</span>
+ </input><br>
+ <div id="createannotation_options" class="embedPersonnalisationSecondLevel">
+ <input type="checkbox" id="show_mic_record_checkbox" value="{% trans 'audio annotation' %}" onClick="put_new_code()" >
+ <span class="infostooltip title" data-title="{% trans 'Audio annotation' %}" data-desc="{% trans 'Allows the user to record an annotation' %}">{% trans 'Audio annotation' %}</span>
+ </input><br>
+ <input type="radio" name="annotation_tag" id="default_tags" checked onClick="put_new_code();">{% trans 'Use most used tags ' %}</input>
+ <input type="radio" name="annotation_tag" id="set_tags">
+ <span class="infostooltip title" data-title="{%trans 'Set your own tags : ' %}" data-desc="{% trans 'Write your tags separeted by a comma' %}">{%trans 'Set your own tags : ' %}</span>
+ <input type="text" id="tag_list" class="tags_area" onChange="put_new_code()"></input>
+ </input><br>
+ <input type="checkbox" id="createannotation_polemics_checkbox" value="{% trans '4 polemics buttons' %} ++/--/??/==" onClick="put_new_code()" >
+ <span class="infostooltip title" data-title="{% trans '4 polemics buttons' %} ++/--/??/==" data-desc="{% trans 'Displays or removes the 4 polemics buttons' %} ++/--/??/==">{% trans '4 polemics buttons' %} ++/--/??/==</span>
+ </input>
+ </div>
+ </div>
+ <input type="checkbox" id="segments_checkbox" value="segments" onClick="put_new_code()" >
+ <span class="infostooltip title" data-title="Segments" data-desc="{% trans 'Displays segments of a media as rectangles on an horizontal line' %}">Segments</span>
+ </input><br>
+ <div id="multisegments_block">
+ <input type="checkbox" id="multisegments_checkbox" value="multisegments" onClick="put_new_code()" >
+ <span class="infostooltip title" data-title="MultiSegments" data-desc="{% trans 'Displays every segment of a media as rectangles on multiple horizontal lines' %}">MultiSegments</span>
+ </input><br>
+ </div>
+ <input type="checkbox" id="annotations_list_checkbox" value="annotationslist" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="Annotationlist" data-desc="{% trans 'Show a list of all annotations accross every project for this content' %}">AnnotationsList</span>
+ </input><br>
+ <div id='polemic_bloc'>
+ <input type="checkbox" id="polemic_checkbox" value="polemic" onClick="put_new_code(); display_polemic();">
+ <span class="infostooltip title" data-title="Polemic" data-desc="{% trans 'Shows the polemical timeline, i.e. tweets colored according to the polemical syntax' %}">Polemic</span>
+ </input><br>
+ <div id="polemic_options" class="embedPersonnalisationSecondLevel">
+ <div id="displayPolemicOptions">{% trans 'Display in the polemic timeline : ' %}
+ <input type="radio" id="tweet_polemic" name="polemic_annotation_type" checked onClick="put_new_code()">{% trans 'only tweets' %} </input>
+ <input type="radio" id="all_polemic" name="polemic_annotation_type" onClick="put_new_code()">{% trans 'all annotations' %} </input><br>
+ <a id="displayPolemicColorOptions" class="AdvancedOptionsDisplay">
+ <span class="title">{% trans "Personalize tweet's color" %}</span>
+ </a>
+ </div>
+ <div id="polemic_color_options" class="embedPersonnalisation">
+ <div id="color_default_options">
+ <span class="title">{% trans "Default color" %} </span>
+ <input id="polemic_default_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ </div>
+ <div id="polemics_colors">
+ <span class="title">{% trans "Polemic's color : ++ : " %} </span>
+ <input id="polemic_ok_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ <span class="title"> -- : </span>
+ <input id="polemic_ko_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ <span class="title"> == : </span>
+ <input id="polemic_ref_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ <span class="title"> ? : </span>
+ <input id="polemic_q_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ </div>
+ <div id="color_found_options">
+ <span class="title">{% trans "Found color" %}</span>
+ <input id="polemic_found_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div>
+ <input type="checkbox" id="sparkline_checkbox" value="sparkline" onClick="put_new_code(); display_sparkline();">
+ <span class="infostooltip title" data-title="Sparkline" data-desc="{% trans 'Displays a curve showing the project annotation volume across time' %}">Sparkline</span>
+ </input><br>
+ <div id="sparkline_options" class="embedPersonnalisationSecondLevel">
+ <a id="displaySparklineOptions" class="AdvancedOptionsDisplay">
+ <span class="title">{% trans "personalize sparkline's color" %}</span>
+ </a>
+ <div id="sparkline_color_options" class="embedPersonnalisation">
+ <div id="color_line_options">
+ <span class="title">{% trans 'line color' %} </span>
+ <input id="sparkline_line_color" class="codeColor_text color {hash:true,caps:false}" onchange='put_new_code();' type="text" maxlength="7"></input>
+ </div>
+
+ <div id="fill_color_options">
+ <span class="title">{% trans 'fill color' %} </span>
+ <input id="sparkline_fill_color" class="codeColor_text color {hash:true,caps:false}" onchange='put_new_code();' type="text" maxlength="7"></input>
+ </div>
+ </div>
+ </div>
+ </div>
+ <input type="checkbox" id="slideshare_checkbox" value="slideshare" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="Slideshare" data-desc="{% trans 'Displays a div in order to watch the slides displayed in the media' %}">Slideshare</span>
+ </input><br>
+ <div>
+ <input type="checkbox" id="social_checkbox" value="social" onClick="put_new_code(); display_social();">
+ <span class="infostooltip title" data-title="Social" data-desc="{% trans ' Adds buttons to share an URL on social networks' %}">Social</span>
+ </input><br>
+ <div id="social_options" class="embedPersonnalisation">
+ <input type="checkbox" id="show_url_checkbox" value="show_url" checked onClick="put_new_code()"> Url </input>
+ <input type="checkbox" id="show_twitter_checkbox" value="show_twitter" checked onClick="put_new_code()"> Twitter </input>
+ <input type="checkbox" id="show_fb_checkbox" value="show_fb" checked onClick="put_new_code()"> Facebook </input>
+ <input type="checkbox" id="show_gplus_checkbox" value="show_gplus" checked onClick="put_new_code()"> Google Plus </input>
+ <input type="checkbox" id="show_mail_checkbox" value="show_mail" checked onClick="put_new_code()"> {% trans 'share with email' %} </input><br>
+ </div>
+ </div>
+ <input type="checkbox" id="annotation_checkbox" value="annotation" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="Annotation" data-desc="{% trans ' Displays information relative to a single segment/annotation while it is being played' %}">Annotation</span>
+ </input><br>
+ <input type="checkbox" id="tweet_checkbox" value="tweet" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="Tweet" data-desc="{% trans 'Show the contents on a tweet when clicked (in Polemic Widget)' %}">Tweet</span>
+ </input><br>
+ <input type="checkbox" id="tagcloud_checkbox" value="tagcloud" onClick="put_new_code()">
+ <span class="infostooltip title" data-title="Tagcloud" data-desc="{% trans 'Shows a tag cloud' %}">Tagcloud</span>
+ </input><br><br>
+ <input type="checkbox" id="concatenate_projects_checkbox" value="concatenate_projects" onClick="put_new_code()" /><span>{% trans "Concatenate all projects using this content" %}</span><br/>
+{% endblock %}
+{% block content %}
+ {{ block.super }}
+{% endblock %}
+{% analytics %}
\ No newline at end of file
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_iframe.html Wed Mar 11 12:02:26 2015 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,236 +0,0 @@
-{% load i18n %}
-{% load thumbnail %}
-{% load static %}
-{% load absurl %}
-{% load analytics %}
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{{LANGUAGE_CODE}}" lang="{{LANGUAGE_CODE}}">
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />
- <meta http-equiv="Pragma" content="no-cache" />
- <meta http-equiv="Cache" content="no store" />
- <meta http-equiv="Expires" content="-1" />
- <title>Ligne de Temps - IRI - Metadata Player</title>
- <script type="text/javascript">
- {% if tag_titles or tag_titles == "" %}
- tag_string= '{{ tag_titles }}';
- tag_titles_array=tag_string.split(",");
- {% endif %}
-
- // Public function to set location's hash. Usefull because browser's security does not allow to get/set document.getElementById("my-iframe").contentWindow.location.hash
- var setHash = function(e) {
- // e.data is the string sent by the origin with postMessage.
- if(e.data.substr(0,1) == '#') {
- window.location.hash = e.data.substr(1);
- }
- }
- // we have to listen for 'message'
- window.addEventListener('message', setHash, false);
- </script>
- </head>
- <body id="init_embed_popup">
- <div style="float:left; width:550px;" id="wrapper_{{player_id}}">
-
- <div>
- <div id="{{ player_id }}_embed" class="iri_player_embed"></div>
- <script type="text/javascript" src='{% static "ldt/metadataplayer/LdtPlayer-core.js" %}'></script>
- <script type="text/javascript">
-
- if (typeof jQuery == "undefined") {
- jQuery = IriSP.jQuery;
- }
- var metadatas = {metadata: {url: '{{json_url}}'}};
- var metadata_key = "metadata";
-
- IriSP.libFiles.defaultDir = '{% static "ldt/js/" %}';
- IriSP.libFiles.locations.jwPlayerSWF = '{% static "ldt/swf/player.swf" %}';
- IriSP.libFiles.locations.recordMicSwf = '{% static "ldt/swf/record_mic.swf" %}';
- IriSP.libFiles.locations.zeroClipboardSwf = '{% static "ldt/swf/ZeroClipboard10.swf" %}';
- IriSP.libFiles.locations.cssjQueryUI = '{% static "ldt/css/jq-css/themes/base/jquery-ui.css" %}';
- IriSP.language = '{{LANGUAGE_CODE}}';
-
- IriSP.widgetsDir = '{% static "ldt/metadataplayer" %}';
- var _metadata = {
- url: metadatas[metadata_key].url,
- format: 'ldt'
- };
- var _config = {
- width: '{{ player_width }}',
- container: '{{ player_id }}_embed',
- css: '{% static "ldt/metadataplayer/LdtPlayer-core.css" %}',
- default_options: {
- metadata: _metadata
- },
- widgets: [
- {
- type: "AutoPlayer",
- {% if external_url %}
- video: "{{ external_url }}",
- {% else %}
- streamer: function(_url) {
- var _matches = _url.match(/^[^\/]+\/\/[^\/]+\/[^\/]+\//);
- if (_matches) {
- return _matches[0];
- } else {
- return _url;
- }
- },
- {% endif %}
- height: '{{ player_height }}',
- url_transform: function(url) {
- // Adaptation to jwplayer 6
- if(url.substr(url.length - 4).toLowerCase()=='.flv'){
- return url.replace('/ddc_player/video/','/ddc_player/flv:video/');
- }
- return url.replace('/ddc_player/video/','/ddc_player/mp4:video/');
- },
- autostart: {% if autostart %} true {% else %} false {% endif %}
- }
- {% if polemic == 'all' or polemic == 'tweet' %}
- ,{
- type: "Polemic",
- {% if polemic == 'all' %}
- annotation_type: false,
- {% endif %}
- {% if polemic == 'tweet' %}
- annotation_type: "tweet",
- {% endif %}
- max_elements: {{ polemic__max_elements }},
- defaultcolor: "#{{ polemic_defaultColor }}",
- foundcolor: "#{{ polemic_foundColor }}",
- {% if polemics_list %}
- polemics : {{ polemics_list|safe }}
- {% else %}
- polemics : [
- {
- "name" : "OK",
- "keywords" : [ "++" ],
- "color" : "#{{ polemic_okColor }}"
- },
- {
- "name" : "KO",
- "keywords" : [ "--" ],
- "color" : "#{{ polemic_koColor }}"
- },
- {
- "name" : "REF",
- "keywords" : [ "==", "http://" ],
- "color" : "#{{ polemic_refColor }}"
- },
- {
- "name" : "Q",
- "keywords" : [ "?" ],
- "color" : "#{{ polemic_qColor }}"
- }
- ]
- {% endif %}
- }
- {% endif %}
- {% if sparkline %}
- ,{
- type: "Sparkline",
- lineColor: "#{{ sparkline_lineColor }}",
- fillColor: "#{{ sparkline_fillColor }}",
- }
- {% endif %}
- ,{
- type: "Slider"
- }
-
- {% if annotations_list %},{
- type: "AnnotationsList",
- container: "AnnotationsList_ext",
- ajax_url: "{% absurl 'segment_api_empty' resource_name='segments' api_name='1.0' %}{% templatetag openvariable %}media{% templatetag closevariable %}/{% templatetag openvariable %}begin{% templatetag closevariable %}/{% templatetag openvariable %}end{% templatetag closevariable %}",
- ajax_granularity : 300000,
- default_thumbnail : '{% static "ldt/css/imgs/video_sequence.png" %}',
- show_audio: true,
- rtmp_streamer: "rtmp://media.iri.centrepompidou.fr/ddc_micro_record/"
- }{% endif %},{
- type: "Controller"
- }
- {% if segments %},{
- type: "MultiSegments"
- }
- {% endif %}
- {% if annotation %},{
- type: "Annotation",
- start_minimized: true,
- site_name : "Lignes de Temps",
- annotation_type: ["chap","découpage"]
- }
- {% endif %}
- {% if tweet %},{
- type: "Tweet",
- hide_timeout: 5000
- }
- {% endif %}
- {% if createannotation %},{
- type: "CreateAnnotation",
- api_endpoint_template: "{% absurl 'api_dispatch_list' resource_name='annotations' api_name='1.0' %}",
- after_send_timeout: 8000,
- {% if tag_titles or tag_titles == "" %}
- tag_titles : tag_titles_array,
- {% else %}
- tag_titles : false,
- {% endif %}
- show_mic_record: {% if show_mic_record %}true{% else %}false{% endif %},
- close_after_send: false,
- slice_annotation_type: ["chap","découpage"],
- creator_name: '{{request.user.username}}',
- creator_avatar: '{% thumbnail request.user.image "48x48" format="PNG" crop="center" as im %}{{WEB_URL}}{{ im.url }}{% endthumbnail %}' || "https://si0.twimg.com/sticky/default_profile_images/default_profile_1_normal.png",
- {% if not createannotation_polemics %}polemics: []{% endif %}
- }{% endif %}
- {% if slideshare %},{
- type: "Slideshare",
- container: "Slideshare_ext",
- embed_width: 400,
- embed_height: 334,
- annotation_type: "slide"
- }
- {% endif %},{
- type: "Mediafragment"
- }
- {% if social %},{
- type: "Social",
- container: "Social_ext",
- show_url: {% if show_url %}true{% else %}false{% endif %},
- show_twitter: {% if show_twitter %}true{% else %}false{% endif %},
- show_fb: {% if show_fb %}true{% else %}false{% endif %},
- show_gplus: {% if show_gplus %}true{% else %}false{% endif %},
- show_mail: {% if show_mail %}true{% else %}false{% endif %},
- url: document.location.href.replace(/#.*$/,""),
- text: document.title
- }
- {% endif %}
-
- {% if tagcloud %},{
- type: "Tagcloud"
- }
- {% endif %}
- ]
- };
-
- _myPlayer = new IriSP.Metadataplayer(_config);
-
- </script>
- </div>
- </div>
- {% if social %}
- <div id="Social_ext" class="Ldt-TraceMe Ldt-Widget" style="float:right; width:400px; height:24px;" widget-type="Social">
- </div>
- {% endif %}
- {% if slideshare %}
- <div id="Slideshare_ext" class="ext_widget Ldt-TraceMe Ldt-Widget" style="float:left; width:400px;" widget-type="Slideshare">
- </div>
- {% endif %}
- {% if annotations_list %}
- <div style="float:left; width:400px;" id="AnnotationsList_ext"></div>
- {% endif %}
-
-{% analytics %}
- </body>
-</html>
-
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/embed_popup.html Wed Mar 11 12:02:26 2015 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,245 +0,0 @@
-{% extends "ldt/ldt_utils/workspace_base.html" %}
-{% load i18n %}
-{% load front_tags %}
-{% load absurl %}
-{% load static %}
-{% load static %}
-{% load analytics %}
- {% block js_import %}
- {{ block.super }}
- <script type="text/javascript" src='{% static "ldt/js/jquery.min.js" %}'></script>
- <script type="text/javascript" src='{% static "ldt/js/embed_popup.js" %}'></script>
- <script type="text/javascript" src='{% static "ldt/js/jscolor/jscolor.js" %}'></script>
- {{ content_form.media.js }}
- {% endblock %}
-
- {% block js_declaration %}
- <script type="text/javascript">
- var $j = jQuery.noConflict();
- var iframe_url='{{iframe_url}}';
- var external_url='{{external_url}}';
- var polemic='{{polemic}}';
- var show_mic_record='{{show_mic_record}}';
- var annotations_list='{{annotations_list}}';
- var player_id='{{player_id}}';
- var translate_show="{% trans 'Show Player' %}";
- var translate_hide="{% trans 'Hide Player' %}";
- var LANGUAGE_CODE='{{LANGUAGE_CODE}}';
- var json_url='{{json_url}}';
- var player_id='{{player_id}}';
- var defaultDir='{% static "ldt/js/" %}';
- var jwPlayerSWF='{% static "ldt/swf/player.swf" %}';
- var recordMicSwf='{% static "ldt/swf/record_mic.swf" %}';
- var zeroClipboardSwf='{% static "ldt/swf/ZeroClipboard10.swf" %}';
- var cssjQueryUI='{% static "ldt/css/jq-css/themes/base/jquery-ui.css" %}';
- var widgetsDir='{% static "ldt/metadataplayer" %}';
- var configCss='{% static "ldt/metadataplayer/LdtPlayer-core.css" %}';
- var default_thumbnail='{% static "ldt/css/imgs/video_sequence.png" %}';
- var segment_api="{% absurl 'segment_api_empty' resource_name='segments' api_name='1.0' %}{% templatetag openvariable %}media{% templatetag closevariable %}/{% templatetag openvariable %}begin{% templatetag closevariable %}/{% templatetag openvariable %}end{% templatetag closevariable %}";
- var LdtPlayer_core='{% static "ldt/metadataplayer/LdtPlayer-core.js" %}';
- var creator_name='{{request.user.username}}';
-
- $j(document).ready(function(){
- init_events();
- });
-
- </script>
- {% endblock %}
- {% block css_import %}
- {{ block.super }}
- {{ content_form.media.css }}
- <link rel="stylesheet" href='{% static "ldt/css/style.css" %}' />
- <link rel="stylesheet" href='{% static "ldt/css/workspace.css" %}'/>
- <link rel="stylesheet" href='{% static "ldt/css/embed_popup.css" %}'/>
- <link rel="stylesheet" href='{% static "ldt/css/jq-css/jquery.qtip.css" %}' type="text/css"/>
-
- {% endblock %}
-
-
- {% block content %}
- <div id='ldt_id'>
- <p>{% trans 'Share the project' %} : <span class="large_text">{{ project.title }}</span></p>
- <p class="margin0">{% trans "List of the project's contents" %}:<br/>
- <ul>
- {% for c in contents %}
- <li>{{ c.title }} - <span class="middle_text">{% trans 'Link to the Metadata Player' %} : <a href="{% url 'ldt.ldt_utils.views.front.annot_content' c.iri_id ldt_id %}" target="_blank">{% trans 'See' %}</a> - </span><span class="click_to_select">{% trans 'Select' %}</span> : <input id="" class="copy_input" value="{% absurl 'ldt.ldt_utils.views.front.annot_content' c.iri_id ldt_id %}"/></li>
- {% endfor %}
- </ul>
- </p>
- <div>{% trans 'project id' %} <span id="project_id_select" class="click_to_select">({% trans 'Select' %})</span> : <input id="project_id_input" class="copy_input" value="{{ldt_id}}"/></div>
- <div>{% trans 'The project in Lignes de Temps' %} : <span class="middle_text"><a href="{% url 'index_project_full' ldt_id %}" target="_blank">{% trans 'See' %}</a> - </span><span class="click_to_select">{% trans 'Select' %}</span> : <input id="" class="copy_input" value="{% absurl 'index_project_full' ldt_id %}"/></div>
- </div>
- <br>
- <div id="button_row">
- <div id="display_select">
- <input id="player_button" type="button" class="code_button" value="{% trans 'popup_player'%}"/>
- <input id="ldt_iframe_button" type="button" class="code_button" value="{% trans 'popup_ldt_iframe' %}"/>
- <input id="seo_body_button" type="button" class="code_button" value="{% trans 'popup_seo_body' %}"/>
- <input id="seo_meta_button" type="button" class="code_button" value="{% trans 'popup_seo_meta' %}"/>
- <input id="links_button" type="button" class="code_button" value="{% trans 'popup_links' %}"/>
- </div>
- </div>
-
-
- <div style="float: left;">
- <div id="links_code" class="ldt_player_code">{% include "ldt/ldt_utils/partial/embed_links.html" %}</div>
- <div id="ldt_iframe_code">
- <textarea id="ldt_iframe_id_code" readonly="readonly" class="ldt_player_code" >{% autoescape off %}<iframe src="{% absurl 'embed_ldt' ldt_id %}" width='1005' height='635' seamless='seamless'></iframe>{% endautoescape %}</textarea>
- </div>
- <div id="seo_body_code">
- <textarea id="seo_body_id_code" readonly="readonly" class="ldt_player_code" >{{ embed_rendered.seo_body }}</textarea>
- </div>
- <div id="seo_meta_code">
- <textarea id="seo_meta_id_code" readonly="readonly" class="ldt_player_code">{{ embed_rendered.seo_meta }}</textarea>
- </div>
-
- <div id="player_code">
- <div class="configuration">
- <br><div id="embed_options"><br> {% trans 'Integration mode' %}
- <input type="radio" id="type_embed_div" name="player_code_type" value="div" checked onClick="div_event()" > {% trans 'div' %} </input>
- <input type="radio" id="type_embed_iframe" name="player_code_type" value="iframe" onClick="iframe_event()"> {% trans 'iframe' %} </input><br>
- </div>
- <div id="player_size">
- {% trans 'Player Size : ' %}
- <input type="text" class="number_area" id="player_width" onChange="put_new_code();"></input> x
- <input type="text" class="number_area" id="player_height" onChange="put_new_code();"></input>
- </div>
- <a id="displayPreMode" class="OptionsEmbedDisplay">
- <span id= "preModeExpArrow" class="expArrow"></span>
- <span id= "preModeCollArrow" class="collArrow"></span>
- <span class="title">{% trans 'Preset Modes' %}</span>
- </a><br>
- <div id="iframe_div_premode" class="embedPersonnalisation">
- <input type="radio" id="mode_1" name="embed_mode" value="mode1" checked onClick="mode1()" > {% trans 'Basic configuration' %} </input><br>
- <input type="radio" id="mode_2" name="embed_mode" value="mode2" onClick="mode2()"> {% trans 'Polemic configuration' %} </input><br>
- <input type="radio" id="mode_3" name="embed_mode" value="mode3" onClick="mode3()"> {% trans 'Polemic configuration with tagcloud, annotationsList and Social widgets' %} </input><br>
- <br>
- </div>
-
- <a id="displayEmbedOptions" class="OptionsEmbedDisplay">
- <span id= "optionsExpArrow" class="expArrow"></span>
- <span id= "optionsCollArrow" class="collArrow"></span>
- <span class="title">{% trans 'Create your own configuration' %}</span>
- </a><br>
- <div id="embed_personnalisation" class="embedPersonnalisation">
- <input type="checkbox" id="autostart_checkbox" value="autostart" onClick="put_new_code()">
- <span class="infostooltip title" data-title="AutoStart" data-desc="{% trans 'The video starts automatically' %}">Autostart</span>
- </input><br>
- <div id="createannotation_block">
- <input type="checkbox" id="createannotation_checkbox" value="createannotation" onClick="put_new_code(); display_createannotation();" >
- <span class="infostooltip title" data-title="createAnnotation" data-desc="{% trans 'Displays a form to create a new annotation' %}">CreateAnnotation</span>
- </input><br>
- <div id="createannotation_options" class="embedPersonnalisationSecondLevel">
- <input type="checkbox" id="show_mic_record_checkbox" value="{% trans 'audio annotation' %}" onClick="put_new_code()" >
- <span class="infostooltip title" data-title="{% trans 'Audio annotation' %}" data-desc="{% trans 'Allows the user to record an annotation' %}">{% trans 'Audio annotation' %}</span>
- </input><br>
- <input type="radio" name="annotation_tag" id="default_tags" checked onClick="put_new_code();">{% trans 'Use most used tags ' %}</input>
- <input type="radio" name="annotation_tag" id="set_tags">
- <span class="infostooltip title" data-title="{%trans 'Set your own tags : ' %}" data-desc="{% trans 'Write your tags separeted by a comma' %}">{%trans 'Set your own tags : ' %}</span>
- <input type="text" id="tag_list" class="tags_area" onChange="put_new_code()"></input>
- </input><br>
- <input type="checkbox" id="createannotation_polemics_checkbox" value="{% trans '4 polemics buttons' %} ++/--/??/==" onClick="put_new_code()" >
- <span class="infostooltip title" data-title="{% trans '4 polemics buttons' %} ++/--/??/==" data-desc="{% trans 'Displays or removes the 4 polemics buttons' %} ++/--/??/==">{% trans '4 polemics buttons' %} ++/--/??/==</span>
- </input>
- </div>
- </div>
- <input type="checkbox" id="segments_checkbox" value="segments" onClick="put_new_code()" >
- <span class="infostooltip title" data-title="Segments" data-desc="{% trans 'Displays segments of a media as rectangles on an horizontal line' %}">Segments</span>
- </input><br>
- <input type="checkbox" id="annotations_list_checkbox" value="annotationslist" onClick="put_new_code()">
- <span class="infostooltip title" data-title="Annotationlist" data-desc="{% trans 'Show a list of annotations' %}">AnnotationsList</span>
- </input><br>
- <div id='polemic_bloc'>
- <input type="checkbox" id="polemic_checkbox" value="polemic" onClick="put_new_code(); display_polemic();">
- <span class="infostooltip title" data-title="Polemic" data-desc="{% trans 'Shows the polemical timeline, i.e. tweets colored according to the polemical syntax' %}">Polemic</span>
- </input><br>
- <div id="polemic_options" class="embedPersonnalisationSecondLevel">
- <div id="displayPolemicOptions">{% trans 'Display in the polemic timeline : ' %}
- <input type="radio" id="tweet_polemic" name="polemic_annotation_type" checked onClick="put_new_code()">{% trans 'only tweets' %} </input>
- <input type="radio" id="all_polemic" name="polemic_annotation_type" onClick="put_new_code()">{% trans 'all annotations' %} </input><br>
- <a id="displayPolemicColorOptions" class="AdvancedOptionsDisplay">
- <span class="title">{% trans "Personalize tweet's color" %}</span>
- </a>
- </div>
- <div id="polemic_color_options" class="embedPersonnalisation">
- <div id="color_default_options">
- <span class="title">{% trans "Default color" %} </span>
- <input id="polemic_default_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
- </div>
- <div id="polemics_colors">
- <span class="title">{% trans "Polemic's color : ++ : " %} </span>
- <input id="polemic_ok_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
- <span class="title"> -- : </span>
- <input id="polemic_ko_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
- <span class="title"> == : </span>
- <input id="polemic_ref_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
- <span class="title"> ? : </span>
- <input id="polemic_q_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
- </div>
- <div id="color_found_options">
- <span class="title">{% trans "Found color" %}</span>
- <input id="polemic_found_color" class="codeColor_text color {hash:true,caps:false}" onchange="put_new_code();" type="text" maxlength="8"></input>
- </div>
- </div>
- </div>
- </div>
- <div>
- <input type="checkbox" id="sparkline_checkbox" value="sparkline" onClick="put_new_code(); display_sparkline();">
- <span class="infostooltip title" data-title="Sparkline" data-desc="{% trans 'Displays a curve showing the volume of tweets across time' %}">Sparkline</span>
- </input><br>
- <div id="sparkline_options" class="embedPersonnalisationSecondLevel">
- <a id="displaySparklineOptions" class="AdvancedOptionsDisplay">
- <span class="title">{% trans "personalize sparkline's color" %}</span>
- </a>
- <div id="sparkline_color_options" class="embedPersonnalisation">
- <div id="color_line_options">
- <span class="title">{% trans 'line color' %} </span>
- <input id="sparkline_line_color" class="codeColor_text color {hash:true,caps:false}" onchange='put_new_code();' type="text" maxlength="7"></input>
- </div>
-
- <div id="fill_color_options">
- <span class="title">{% trans 'fill color' %} </span>
- <input id="sparkline_fill_color" class="codeColor_text color {hash:true,caps:false}" onchange='put_new_code();' type="text" maxlength="7"></input>
- </div>
- </div>
- </div>
- </div>
- <input type="checkbox" id="slideshare_checkbox" value="slideshare" onClick="put_new_code()">
- <span class="infostooltip title" data-title="Slideshare" data-desc="{% trans 'Displays a div in order to watch the slides displayed in the media' %}">Slideshare</span>
- </input><br>
- <div>
- <input type="checkbox" id="social_checkbox" value="social" onClick="put_new_code(); display_social();">
- <span class="infostooltip title" data-title="Social" data-desc="{% trans ' Adds buttons to share an URL on social networks' %}">Social</span>
- </input><br>
- <div id="social_options" class="embedPersonnalisation">
- <input type="checkbox" id="show_url_checkbox" value="show_url" checked onClick="put_new_code()"> Url </input>
- <input type="checkbox" id="show_twitter_checkbox" value="show_twitter" checked onClick="put_new_code()"> Twitter </input>
- <input type="checkbox" id="show_fb_checkbox" value="show_fb" checked onClick="put_new_code()"> Facebook </input>
- <input type="checkbox" id="show_gplus_checkbox" value="show_gplus" checked onClick="put_new_code()"> Google Plus </input>
- <input type="checkbox" id="show_mail_checkbox" value="show_mail" checked onClick="put_new_code()"> {% trans 'share with email' %} </input><br>
- </div>
- </div>
- <input type="checkbox" id="annotation_checkbox" value="annotation" onClick="put_new_code()">
- <span class="infostooltip title" data-title="Annotation" data-desc="{% trans ' Displays information relative to a single segment/annotation while it is being played' %}">Annotation</span>
- </input><br>
- <input type="checkbox" id="tweet_checkbox" value="tweet" onClick="put_new_code()">
- <span class="infostooltip title" data-title="Tweet" data-desc="{% trans 'Show the contents on a tweet when clicked (in Polemic Widget)' %}">Tweet</span>
- </input><br>
- <input type="checkbox" id="tagcloud_checkbox" value="tagcloud" onClick="put_new_code()">
- <span class="infostooltip title" data-title="Tagcloud" data-desc="{% trans 'Shows a tag cloud' %}">Tagcloud</span>
- </input><br>
- <input type="checkbox" id="concatenate_projects_checkbox" value="concatenate_projects" onClick="put_new_code()" /><span>{% trans "All the content's projects concatenated" %}</span><br/>
- </div>
- <textarea id="player_id_code" readonly="readonly" class="ldt_player_code" onClick="select_code();"></textarea>
- </div>
- </div>
- <a id="displayPlayer" href="javascript:toggle();">{% trans 'Show Player' %}</a>
- </div>
- <div id="player_div" style="display:none">
- <button type="button" class="refresh_button" id="refresh_player_button" title="Rafraichir le player" >
- <img src='{% static "ldt/img/arrow_refresh.png" %}' id="refresh_player" ></img>
- </button>
- <div class="ldt_player" id="wrapper_{{player_id}}"></div>
- </div>
- {% endblock %}
- {% analytics %}
\ No newline at end of file
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/groups.html Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/groups.html Tue Mar 17 17:59:10 2015 +0100
@@ -21,7 +21,7 @@
var get_group_projects_url = "{% url 'ldt.ldt_utils.views.group.get_group_projects_view' %}";
function init_events(base_node) {
- init_events_projects(base_node, "{% url 'ldt.ldt_utils.views.workspace.popup_embed' %}", project_filter_url, publish_project_url, unpublish_project_url);
+ init_events_projects(base_node, "{% url 'embed_config_v2' %}", project_filter_url, publish_project_url, unpublish_project_url);
}
var global_csrf_token = "{{ csrf_token }}";
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/ldt_list.html Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/ldt_list.html Tue Mar 17 17:59:10 2015 +0100
@@ -18,7 +18,7 @@
function init_events(base_node) {
- init_events_base(base_node, "{% url 'ldt.ldt_utils.views.workspace.popup_embed' %}");
+ init_events_base(base_node, "{% url 'embed_config_v2' %}");
$('.publishedproject', base_node).click(function(e) {
e.preventDefault();
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html Tue Mar 17 17:59:10 2015 +0100
@@ -48,7 +48,7 @@
<td class="cellimg"><div class="cellimgdiv"><img src='{% static "ldt/img/page_copy.png" %}' href="{% url 'ldt.ldt_utils.views.project.copy_project' ldt_id=project.ldt_id group_id=group_id %}" class="ldt_link_copy_project" alt="{% trans 'copy project' %}" title="{% trans 'copy project' %}"/></div></td>
<td class="cellimg">
<div class="cellimgdiv">
- <a href='{% url 'ldt.ldt_utils.views.workspace.popup_embed' %}?json_url={{WEB_URL}}{{json_url_id}}&player_id=player_project_{{project.ldt_id}}&ldt_id={{project.ldt_id}}'>
+ <a href="{% url 'embed_config_v2' %}?json_url={{WEB_URL}}{{json_url_id}}&player_id=player_project_{{project.ldt_id}}&ldt_id={{project.ldt_id}}">
<img src='{% static "ldt/img/plugin.png" %}' id="player_project_{{project.ldt_id}}" class="ldt_link_embed" alt="{% trans 'link json by id' %}" title="{% trans 'link json by id' %}"/>
</a>
</div>
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html Tue Mar 17 17:59:10 2015 +0100
@@ -26,7 +26,7 @@
<td class="cellimg"><div class="cellimgdiv"><img src='{% static "ldt/img/page_copy.png" %}' href="{% url 'ldt.ldt_utils.views.project.copy_project' ldt_id=project.ldt_id %}" class="ldt_link_copy_project" alt="{% trans 'copy the project' %}" title="{% trans 'copy the project' %}"/></div></td>
<td class="cellimg">
<div class="cellimgdiv">
- <a href='{% url 'ldt.ldt_utils.views.workspace.popup_embed' %}?json_url={{WEB_URL}}{{json_url_id}}&player_id=player_project_{{project.ldt_id}}&ldt_id={{project.ldt_id}}'>
+ <a href='{% url "embed_config_v2" %}?json_url={{WEB_URL}}{{json_url_id}}&player_id=player_project_{{project.ldt_id}}&ldt_id={{project.ldt_id}}'>
<img src='{% static "ldt/img/plugin.png" %}' id="player_project_{{project.ldt_id}}" class="ldt_link_embed" alt="{% trans 'link json by id' %}" title="{% trans 'link json by id' %}"/>
</a>
</div>
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/published_projects.html Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/published_projects.html Tue Mar 17 17:59:10 2015 +0100
@@ -19,7 +19,7 @@
function init_events(base_node) {
- init_events_all(base_node, "{% url 'ldt.ldt_utils.views.workspace.popup_embed' %}", content_filter_url, project_filter_url, publish_project_url, unpublish_project_url);
+ init_events_all(base_node, "{% url 'embed_config_v2' %}", content_filter_url, project_filter_url, publish_project_url, unpublish_project_url);
}
var global_csrf_token = "{{ csrf_token }}";
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/search_results.html Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/search_results.html Tue Mar 17 17:59:10 2015 +0100
@@ -41,7 +41,7 @@
{{ block.super }}
<script type="text/javascript">
$(document).ready(function(){
- init_events_all(document, "{% url 'ldt.ldt_utils.views.workspace.popup_embed' %}", '', '', '', '');
+ init_events_all(document, "{% url 'embed_config_v2' %}", '', '', '', '');
});
</script>
{% endblock %}
--- a/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/workspace_base.html Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/ldt_utils/templates/ldt/ldt_utils/workspace_base.html Tue Mar 17 17:59:10 2015 +0100
@@ -23,7 +23,7 @@
var unpublish_project_url = "{% url 'ldt.ldt_utils.views.project.unpublish' id='__PROJECT_ID__' %}";
function init_events(base_node) {
- init_events_all(base_node, "{% url 'ldt.ldt_utils.views.workspace.popup_embed' %}", content_filter_url, project_filter_url, publish_project_url, unpublish_project_url);
+ init_events_all(base_node, "{% url 'embed_config_v2' %}", content_filter_url, project_filter_url, publish_project_url, unpublish_project_url);
}
var global_csrf_token = "{{ csrf_token }}";
--- a/src/ldt/ldt/ldt_utils/urls.py Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/ldt_utils/urls.py Tue Mar 17 17:59:10 2015 +0100
@@ -1,5 +1,6 @@
from django.conf.urls import patterns, url, include
from ldt.management import test_ldt
+import ldt.ldt_utils.views.embed.v1.views as embed_v1
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
@@ -33,8 +34,9 @@
url(r'^filtercontents/_(?P<filter_c>[\w \%\_\-\+]*?)/$', "views.content.contents_filter",),
url(r'^filtergroups/_(?P<filter>[\w \%\_\-\+]*?)/$', "views.group.groups_filter",),
url(r'filtershare/_(?P<filter>[\w \%\_\-\+]*?)/(?P<use_groups>true|false)$', "views.workspace.share_filter"),
- url(r'^embedpopup/?$', "views.workspace.popup_embed"),
- url(r'^embediframe/?$', "views.workspace.iframe_embed", name="embediframe_page"),
+ url(r'^embedpopup/?$', embed_v1.ConfigViewV1.as_view(), name="embed_config_v1"),
+ url(r'^embediframe/?$', embed_v1.IframeViewV1.as_view(), name="embed_iframe_v1"),
+ url(r'^embed/', include('ldt.ldt_utils.views.embed.urls')),
url(r'^embedldt/(?P<id>.*)$', 'views.lignesdetemps.embed_ldt', name='embed_ldt'),
url(r'^segment/(?P<project_id>.*)/(?P<content_id>.*)/(?P<ensemble_id>.*)/(?P<cutting_id>.*)/(?P<segment_id>.*)/$', 'views.lignesdetemps.index_segment'),
url(r'^segmentInit/(?P<project_id>.*)/(?P<content_id>.*)/(?P<ensemble_id>.*)/(?P<cutting_id>.*)/(?P<segment_id>.*)/$', 'views.lignesdetemps.init_segment'),
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/views/embed/meta.py Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,191 @@
+from django.views.generic import View
+from django.core.urlresolvers import reverse
+from django.http import (HttpResponseForbidden, HttpResponseNotFound,
+ HttpResponseRedirect)
+from django.shortcuts import render_to_response
+from django.template import RequestContext
+from django.template.loader import render_to_string
+from django.utils.html import escape
+from django.utils.translation import ugettext as _
+
+from utils import get_datas_for_embed
+
+class ConfigView(View):
+ """
+ Meta class for generating metadataplayer config view.
+ This class is supposed to be inherited with corresponding template_name and iframe_base_url (see v1 and v2)
+ The relevant methods also have to be redefined if necessary
+ """
+ template_name = ""
+ iframe_base_url = ""
+
+ def get(self, request):
+ json_url = request.GET.get("json_url")
+ player_id = request.GET.get("player_id")
+ ldt_id = request.GET.get("ldt_id")
+ rend_dict = get_datas_for_embed(request, json_url, player_id, ldt_id, self.iframe_base_url)
+
+ embed_rendered = dict((typestr,
+ (lambda s:escape(render_to_string("ldt/ldt_utils/partial/embed_%s.html" % (s), rend_dict, context_instance=RequestContext(request))))(typestr))
+ for typestr in ('seo_body', 'seo_meta', 'links'))
+
+ rend_dict['embed_rendered'] = embed_rendered
+ return render_to_response(self.template_name, rend_dict, context_instance=RequestContext(request))
+
+
+class IframeView(View):
+ """
+ Meta class for generating metadataplayer iframe view.
+ This class is supposed to be inherited with corresponding template_name and iframe_base_url (see v1 and v2)
+ The relevant methods also have to be redefined if necessary
+ """
+ template_name = ""
+ iframe_base_url = ""
+
+ def get(self, request):
+ content_id = request.GET.get("content_id")
+ project_id = request.GET.get("project_id")
+ if not project_id:
+ try:
+ content = Content.safe_objects.get(iri_id=content_id)
+ except:
+ return HttpResponseForbidden(_("The content does not exists or you are not allowed to access this content"))
+ project = content.get_or_create_front_project()
+ project_id = project.ldt_id
+ if not project_id :
+ return HttpResponseForbidden(_("Parameters project_id or content_id must be given in the url"))
+
+ json_url = reverse("projectjson_id", kwargs={'id':project_id})
+ player_id = "player_project_" + project_id
+ ldt_id = project_id
+ rend_dict = get_datas_for_embed(request, json_url, player_id, ldt_id, self.iframe_base_url)
+
+ # Test if concatenated projects has been asked
+ concatenate_projects = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("concatenate_projects", "").lower())
+ if concatenate_projects:
+ json_url = reverse("api_content_all_projects", kwargs={'api_name': '1.0', 'resource_name': 'contents', 'iri_id': content_id})
+ # add filter
+ group_id = request.GET.get("group")
+ if group_id is not None :
+ json_url += "?group=" + group_id
+ rend_dict["json_url"] = json_url
+
+
+ # Manage iframe options
+ if request.GET.has_key("player_height"):
+ rend_dict["player_height"]=request.GET.get("player_height")
+ else:
+ rend_dict["player_height"]=300
+ if request.GET.has_key("player_width"):
+ rend_dict["player_width"]=request.GET.get("player_width")
+ else:
+ rend_dict["player_width"]=550
+ if request.GET.has_key("polemic"):
+ rend_dict["polemic"] = request.GET.get("polemic")
+ if request.GET.has_key("polemic_defaultColor"):
+ rend_dict["polemic_defaultColor"] = request.GET.get("polemic_defaultColor")
+ else:
+ rend_dict["polemic_defaultColor"]="585858"
+ if request.GET.has_key("polemic_foundColor"):
+ rend_dict["polemic_foundColor"] = request.GET.get("polemic_foundColor")
+ else:
+ rend_dict["polemic_foundColor"]="fc00ff"
+ if request.GET.has_key("polemic_okColor"):
+ rend_dict["polemic_okColor"] = request.GET.get("polemic_okColor")
+ else:
+ rend_dict["polemic_okColor"] = "1d973d"
+ if request.GET.has_key("polemic_koColor"):
+ rend_dict["polemic_koColor"] = request.GET.get("polemic_koColor")
+ else:
+ rend_dict["polemic_koColor"]="ce0a15"
+ if request.GET.has_key("polemic_refColor"):
+ rend_dict["polemic_refColor"] = request.GET.get("polemic_refColor")
+ else:
+ rend_dict["polemic_refColor"] = "c5a62d"
+ if request.GET.has_key("polemic_qColor"):
+ rend_dict["polemic_qColor"] = request.GET.get("polemic_qColor")
+ else:
+ rend_dict["polemic_qColor"] = "036aae"
+ if request.GET.has_key("polemics_list"):
+ try:
+ # Very rough : has to be something like
+ # [{"name":"OK","keywords":["%2B%2B"],"color":"%23DDDDDD"},{"name":"KO","keywords":["--"],"color":"%23AAAAAA"},{"name":"REF","keywords":["==","http://"],"color":"%23777777"},{"name":"Q","keywords":["?"],"color":"%23333333"}]
+ pd = request.GET.get("polemics_list")
+ except:
+ pd = False
+ rend_dict["polemics_list"] = pd
+ else:
+ rend_dict["polemics_list"] = False
+ if request.GET.has_key("polemic__max_elements"):
+ try:
+ pme = int(request.GET.get("polemic__max_elements"))
+ except:
+ pme = 20
+ rend_dict["polemic__max_elements"] = pme
+ else:
+ rend_dict["polemic__max_elements"] = 20
+
+ if request.GET.has_key("autostart"):
+ rend_dict["autostart"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("autostart").lower())
+ else :
+ rend_dict["autostart"] = True
+ if request.GET.has_key("createannotation"):
+ rend_dict["createannotation"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("createannotation").lower())
+ if request.GET.has_key("show_mic_record"):
+ rend_dict["show_mic_record"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_mic_record").lower())
+ if rend_dict["show_mic_record"]:
+ rend_dict["createannotation"]=True
+ rend_dict["createannotation_polemics"] = True
+ if request.GET.has_key("createannotation_polemics"):
+ rend_dict["createannotation_polemics"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("createannotation_polemics").lower())
+ if request.GET.has_key("annotations_list"):
+ rend_dict["annotations_list"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("annotations_list").lower())
+ rend_dict["player_width"] = 550
+ if request.GET.has_key("tag_titles"):
+ rend_dict["tag_titles"] = request.GET.get("tag_titles")
+ if request.GET.has_key("sparkline"):
+ rend_dict["sparkline"] = request.GET.get("sparkline")
+ if request.GET.has_key("sparkline_lineColor"):
+ rend_dict["sparkline_lineColor"] = request.GET.get("sparkline_lineColor")
+ else:
+ rend_dict["sparkline_lineColor"] = "7492b4"
+ if request.GET.has_key("sparkline_fillColor"):
+ rend_dict["sparkline_fillColor"] = request.GET.get("sparkline_fillColor")
+ else:
+ rend_dict["sparkline_fillColor"] = "aeaeb8"
+ if request.GET.has_key("slideshare"):
+ rend_dict["slideshare"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("slideshare").lower())
+ if request.GET.has_key("social"):
+ rend_dict["social"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("social").lower())
+ if request.GET.has_key("show_url"):
+ rend_dict["show_url"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_url").lower())
+ else:
+ rend_dict["show_url"] = True
+ if request.GET.has_key("show_twitter"):
+ rend_dict["show_twitter"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_twitter").lower())
+ else:
+ rend_dict["show_twitter"] = True
+ if request.GET.has_key("show_fb"):
+ rend_dict["show_fb"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_fb").lower())
+ else:
+ rend_dict["show_fb"] = True
+ if request.GET.has_key("show_gplus"):
+ rend_dict["show_gplus"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_gplus").lower())
+ else:
+ rend_dict["show_gplus"] = True
+ if request.GET.has_key("show_mail"):
+ rend_dict["show_mail"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_mail").lower())
+ else:
+ rend_dict["show_mail"] = True
+ if request.GET.has_key("annotation"):
+ rend_dict["annotation"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("annotation").lower())
+ if request.GET.has_key("tweet"):
+ rend_dict["tweet"] ={'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("tweet").lower())
+ if request.GET.has_key("segments"):
+ rend_dict["segments"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("segments").lower())
+ else:
+ rend_dict["segments"] = True
+ if request.GET.has_key("tagcloud"):
+ rend_dict["tagcloud"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("tagcloud").lower())
+ return render_to_response(self.template_name, rend_dict, context_instance=RequestContext(request))
+
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/views/embed/urls.py Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,6 @@
+from django.conf.urls import patterns, url, include
+
+urlpatterns = patterns('ldt.ldt_utils.views.embed',
+ url(r'^v1/', include('ldt.ldt_utils.views.embed.v1.urls')),
+ url(r'^v2/', include('ldt.ldt_utils.views.embed.v2.urls'))
+)
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/views/embed/utils.py Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,44 @@
+from django.conf import settings
+from django.utils.safestring import mark_safe
+from django.core.urlresolvers import reverse
+
+import ldt.auth as ldt_auth
+from ldt.ldt_utils.models import Content, Project, Segment
+from ldt.ldt_utils.projectserializer import ProjectJsonSerializer
+
+from ldt.utils.web_url_management import get_web_url
+
+
+def get_datas_for_embed(request, json_url, player_id, ldt_id, iframe_base_url):
+ project = Project.safe_objects.prefetch_related("contents", "owner").get(ldt_id=ldt_id) #@UndefinedVariable
+ project_contents = project.contents.all()
+ content = project_contents[0]
+ WEB_URL = get_web_url(request)
+ iframe_url = mark_safe(WEB_URL+settings.SRC_BASE_URL+str(iframe_base_url)[1:]+"?content_id="+content.iri_id+"&project_id="+ldt_id)
+ external_url = None
+ if content.src is not None:
+ for external_src in settings.EXTERNAL_STREAM_SRC:
+ if external_src in content.src:
+ external_url = content.src
+ break
+
+ stream_mode = project.stream_mode
+ if stream_mode != "video":
+ stream_mode = 'radio'
+
+ if not ldt_auth.check_access(request.user, project):
+ # If the project is unpublished AND if the user is the owner, we display few datas
+ #TODO : enhance rend_dict and display in this case
+ if project.state==1 and project.owner==request.user:
+ pass
+ else:
+ #return HttpResponseForbidden(_("You can not access this project"))
+ return {'ldt_id': ldt_id}
+ LANGUAGE_CODE = settings.LANGUAGE_CODE
+ ps = ProjectJsonSerializer(project, from_contents=True, from_display=True)
+ annotations = ps.get_annotations(first_cutting=True)
+ rend_dict = {'project':project, 'contents':project_contents, 'json_url':json_url, 'player_id':player_id, 'annotations':annotations, 'ldt_id': ldt_id, 'stream_mode': stream_mode,
+ 'external_url': external_url,
+ 'polemic':False, 'show_mic_record':False, 'annotations_list':False, 'iframe_url':iframe_url, 'WEB_URL':WEB_URL,
+ 'LANGUAGE_CODE':LANGUAGE_CODE}
+ return rend_dict
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/views/embed/v1/urls.py Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,7 @@
+from django.conf.urls import patterns, url, include
+from views import ConfigViewV1, IframeViewV1
+
+urlpatterns = patterns('ldt.ldt_utils.views.embed.v1',
+ url(r'^config/?$', ConfigViewV1.as_view()),
+ url(r'^iframe/?$', IframeViewV1.as_view())
+)
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/views/embed/v1/views.py Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,10 @@
+from django.core.urlresolvers import reverse_lazy
+from ldt.ldt_utils.views.embed.meta import ConfigView, IframeView
+
+class ConfigViewV1(ConfigView):
+ template_name = "ldt/ldt_utils/embed/v1/mdplayer_config.html"
+ iframe_base_url = reverse_lazy("embed_iframe_v1", urlconf="ldtplatform.urls")
+
+class IframeViewV1(IframeView):
+ template_name = "ldt/ldt_utils/embed/v1/iframe.html"
+ iframe_base_url = reverse_lazy("embed_iframe_v1", urlconf="ldtplatform.urls")
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/views/embed/v2/urls.py Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,7 @@
+from django.conf.urls import patterns, url, include
+from views import ConfigViewV2, IframeViewV2
+
+urlpatterns = patterns('ldt.ldt_utils.views.embed.v2',
+ url(r'^config/?$', ConfigViewV2.as_view(), name="embed_config_v2"),
+ url(r'^iframe/?$', IframeViewV2.as_view(), name="embed_iframe_v2")
+)
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/ldt_utils/views/embed/v2/views.py Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,169 @@
+from django.views.generic import View
+from django.http import (HttpResponseForbidden, HttpResponseNotFound,
+ HttpResponseRedirect)
+from django.shortcuts import render_to_response
+from django.template import RequestContext
+from django.template.loader import render_to_string
+from django.utils.html import escape
+from django.utils.translation import ugettext as _
+from django.core.urlresolvers import reverse_lazy, reverse
+
+from ldt.ldt_utils.views.embed.meta import ConfigView, IframeView
+from ldt.ldt_utils.views.embed.utils import get_datas_for_embed
+
+class ConfigViewV2(ConfigView):
+ template_name = "ldt/ldt_utils/embed/v2/mdplayer_config.html"
+ iframe_base_url = reverse_lazy("embed_iframe_v2", urlconf="ldtplatform.urls")
+
+class IframeViewV2(IframeView):
+ template_name = "ldt/ldt_utils/embed/v2/iframe.html"
+ iframe_base_url = reverse_lazy("embed_iframe_v2", urlconf="ldtplatform.urls")
+
+ def get(self, request):
+ content_id = request.GET.get("content_id")
+ project_id = request.GET.get("project_id")
+ if not project_id:
+ try:
+ content = Content.safe_objects.get(iri_id=content_id)
+ except:
+ return HttpResponseForbidden(_("The content does not exists or you are not allowed to access this content"))
+ project = content.get_or_create_front_project()
+ project_id = project.ldt_id
+ if not project_id :
+ return HttpResponseForbidden(_("Parameters project_id or content_id must be given in the url"))
+
+ json_url = reverse("projectjson_id", kwargs={'id':project_id})
+ player_id = "player_project_" + project_id
+ ldt_id = project_id
+ rend_dict = get_datas_for_embed(request, json_url, player_id, ldt_id, self.iframe_base_url)
+
+ # Test if concatenated projects has been asked
+ concatenate_projects = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("concatenate_projects", "").lower())
+ if concatenate_projects:
+ json_url = reverse("api_content_all_projects", kwargs={'api_name': '1.0', 'resource_name': 'contents', 'iri_id': content_id})
+ # add filter
+ group_id = request.GET.get("group")
+ if group_id is not None :
+ json_url += "?group=" + group_id
+ rend_dict["json_url"] = json_url
+
+
+ # Manage iframe options
+ if request.GET.has_key("player_height"):
+ rend_dict["player_height"]=request.GET.get("player_height")
+ else:
+ rend_dict["player_height"]=300
+ if request.GET.has_key("player_width"):
+ rend_dict["player_width"]=request.GET.get("player_width")
+ else:
+ rend_dict["player_width"]=550
+ if request.GET.has_key("polemic"):
+ rend_dict["polemic"] = request.GET.get("polemic")
+ if request.GET.has_key("polemic_defaultColor"):
+ rend_dict["polemic_defaultColor"] = request.GET.get("polemic_defaultColor")
+ else:
+ rend_dict["polemic_defaultColor"]="585858"
+ if request.GET.has_key("polemic_foundColor"):
+ rend_dict["polemic_foundColor"] = request.GET.get("polemic_foundColor")
+ else:
+ rend_dict["polemic_foundColor"]="fc00ff"
+ if request.GET.has_key("polemic_okColor"):
+ rend_dict["polemic_okColor"] = request.GET.get("polemic_okColor")
+ else:
+ rend_dict["polemic_okColor"] = "1d973d"
+ if request.GET.has_key("polemic_koColor"):
+ rend_dict["polemic_koColor"] = request.GET.get("polemic_koColor")
+ else:
+ rend_dict["polemic_koColor"]="ce0a15"
+ if request.GET.has_key("polemic_refColor"):
+ rend_dict["polemic_refColor"] = request.GET.get("polemic_refColor")
+ else:
+ rend_dict["polemic_refColor"] = "c5a62d"
+ if request.GET.has_key("polemic_qColor"):
+ rend_dict["polemic_qColor"] = request.GET.get("polemic_qColor")
+ else:
+ rend_dict["polemic_qColor"] = "036aae"
+ if request.GET.has_key("polemics_list"):
+ try:
+ # Very rough : has to be something like
+ # [{"name":"OK","keywords":["%2B%2B"],"color":"%23DDDDDD"},{"name":"KO","keywords":["--"],"color":"%23AAAAAA"},{"name":"REF","keywords":["==","http://"],"color":"%23777777"},{"name":"Q","keywords":["?"],"color":"%23333333"}]
+ pd = request.GET.get("polemics_list")
+ except:
+ pd = False
+ rend_dict["polemics_list"] = pd
+ else:
+ rend_dict["polemics_list"] = False
+ if request.GET.has_key("polemic__max_elements"):
+ try:
+ pme = int(request.GET.get("polemic__max_elements"))
+ except:
+ pme = 20
+ rend_dict["polemic__max_elements"] = pme
+ else:
+ rend_dict["polemic__max_elements"] = 20
+
+ if request.GET.has_key("autostart"):
+ rend_dict["autostart"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("autostart").lower())
+ else :
+ rend_dict["autostart"] = True
+ if request.GET.has_key("createannotation"):
+ rend_dict["createannotation"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("createannotation").lower())
+ if request.GET.has_key("show_mic_record"):
+ rend_dict["show_mic_record"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_mic_record").lower())
+ if rend_dict["show_mic_record"]:
+ rend_dict["createannotation"]=True
+ rend_dict["createannotation_polemics"] = True
+ if request.GET.has_key("createannotation_polemics"):
+ rend_dict["createannotation_polemics"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("createannotation_polemics").lower())
+ if request.GET.has_key("annotations_list"):
+ rend_dict["annotations_list"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("annotations_list").lower())
+ rend_dict["player_width"] = 550
+ if request.GET.has_key("tag_titles"):
+ rend_dict["tag_titles"] = request.GET.get("tag_titles")
+ if request.GET.has_key("sparkline"):
+ rend_dict["sparkline"] = request.GET.get("sparkline")
+ if request.GET.has_key("sparkline_lineColor"):
+ rend_dict["sparkline_lineColor"] = request.GET.get("sparkline_lineColor")
+ else:
+ rend_dict["sparkline_lineColor"] = "7492b4"
+ if request.GET.has_key("sparkline_fillColor"):
+ rend_dict["sparkline_fillColor"] = request.GET.get("sparkline_fillColor")
+ else:
+ rend_dict["sparkline_fillColor"] = "aeaeb8"
+ if request.GET.has_key("slideshare"):
+ rend_dict["slideshare"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("slideshare").lower())
+ if request.GET.has_key("social"):
+ rend_dict["social"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("social").lower())
+ if request.GET.has_key("show_url"):
+ rend_dict["show_url"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_url").lower())
+ else:
+ rend_dict["show_url"] = True
+ if request.GET.has_key("show_twitter"):
+ rend_dict["show_twitter"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_twitter").lower())
+ else:
+ rend_dict["show_twitter"] = True
+ if request.GET.has_key("show_fb"):
+ rend_dict["show_fb"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_fb").lower())
+ else:
+ rend_dict["show_fb"] = True
+ if request.GET.has_key("show_gplus"):
+ rend_dict["show_gplus"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_gplus").lower())
+ else:
+ rend_dict["show_gplus"] = True
+ if request.GET.has_key("show_mail"):
+ rend_dict["show_mail"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_mail").lower())
+ else:
+ rend_dict["show_mail"] = True
+ if request.GET.has_key("annotation"):
+ rend_dict["annotation"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("annotation").lower())
+ if request.GET.has_key("tweet"):
+ rend_dict["tweet"] ={'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("tweet").lower())
+ if request.GET.has_key("segments"):
+ rend_dict["segments"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("segments").lower())
+ else:
+ rend_dict["segments"] = True
+ if request.GET.has_key("multisegments"):
+ rend_dict["multisegments"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("multisegments").lower())
+ if request.GET.has_key("tagcloud"):
+ rend_dict["tagcloud"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("tagcloud").lower())
+ return render_to_response(self.template_name, rend_dict, context_instance=RequestContext(request))
\ No newline at end of file
--- a/src/ldt/ldt/ldt_utils/views/workspace.py Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/ldt_utils/views/workspace.py Tue Mar 17 17:59:10 2015 +0100
@@ -92,207 +92,6 @@
context_instance=RequestContext(request))
-def popup_embed(request):
-
- json_url = request.GET.get("json_url")
- player_id = request.GET.get("player_id")
- ldt_id = request.GET.get("ldt_id")
- rend_dict = get_datas_for_embed(request, json_url, player_id, ldt_id)
-
- embed_rendered = dict((typestr,
- (lambda s:escape(render_to_string("ldt/ldt_utils/partial/embed_%s.html" % (s), rend_dict, context_instance=RequestContext(request))))(typestr))
- for typestr in ('seo_body', 'seo_meta', 'links'))
-
- rend_dict['embed_rendered'] = embed_rendered
- return render_to_response("ldt/ldt_utils/embed_popup.html", rend_dict, context_instance=RequestContext(request))
-
-
-def iframe_embed(request):
-
- content_id = request.GET.get("content_id")
- project_id = request.GET.get("project_id")
- if not project_id:
- try:
- content = Content.safe_objects.get(iri_id=content_id)
- except:
- return HttpResponseForbidden(_("The content does not exists or you are not allowed to access this content"))
- project = content.get_or_create_front_project()
- project_id = project.ldt_id
- if not project_id :
- return HttpResponseForbidden(_("Parameters project_id or content_id must be given in the url"))
-
- json_url = reverse("projectjson_id", kwargs={'id':project_id})
- player_id = "player_project_" + project_id
- ldt_id = project_id
- rend_dict = get_datas_for_embed(request, json_url, player_id, ldt_id)
-
- # Test if concatenated projects has been asked
- concatenate_projects = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("concatenate_projects", "").lower())
- if concatenate_projects:
- json_url = reverse("api_content_all_projects", kwargs={'api_name': '1.0', 'resource_name': 'contents', 'iri_id': content_id})
- # add filter
- group_id = request.GET.get("group")
- if group_id is not None :
- json_url += "?group=" + group_id
- rend_dict["json_url"] = json_url
-
-
- # Manage iframe options
- if request.GET.has_key("player_height"):
- rend_dict["player_height"]=request.GET.get("player_height")
- else:
- rend_dict["player_height"]=300
- if request.GET.has_key("player_width"):
- rend_dict["player_width"]=request.GET.get("player_width")
- else:
- rend_dict["player_width"]=550
- if request.GET.has_key("polemic"):
- rend_dict["polemic"] = request.GET.get("polemic")
- if request.GET.has_key("polemic_defaultColor"):
- rend_dict["polemic_defaultColor"] = request.GET.get("polemic_defaultColor")
- else:
- rend_dict["polemic_defaultColor"]="585858"
- if request.GET.has_key("polemic_foundColor"):
- rend_dict["polemic_foundColor"] = request.GET.get("polemic_foundColor")
- else:
- rend_dict["polemic_foundColor"]="fc00ff"
- if request.GET.has_key("polemic_okColor"):
- rend_dict["polemic_okColor"] = request.GET.get("polemic_okColor")
- else:
- rend_dict["polemic_okColor"] = "1d973d"
- if request.GET.has_key("polemic_koColor"):
- rend_dict["polemic_koColor"] = request.GET.get("polemic_koColor")
- else:
- rend_dict["polemic_koColor"]="ce0a15"
- if request.GET.has_key("polemic_refColor"):
- rend_dict["polemic_refColor"] = request.GET.get("polemic_refColor")
- else:
- rend_dict["polemic_refColor"] = "c5a62d"
- if request.GET.has_key("polemic_qColor"):
- rend_dict["polemic_qColor"] = request.GET.get("polemic_qColor")
- else:
- rend_dict["polemic_qColor"] = "036aae"
- if request.GET.has_key("polemics_list"):
- try:
- # Very rough : has to be something like
- # [{"name":"OK","keywords":["%2B%2B"],"color":"%23DDDDDD"},{"name":"KO","keywords":["--"],"color":"%23AAAAAA"},{"name":"REF","keywords":["==","http://"],"color":"%23777777"},{"name":"Q","keywords":["?"],"color":"%23333333"}]
- pd = request.GET.get("polemics_list")
- except:
- pd = False
- rend_dict["polemics_list"] = pd
- else:
- rend_dict["polemics_list"] = False
- if request.GET.has_key("polemic__max_elements"):
- try:
- pme = int(request.GET.get("polemic__max_elements"))
- except:
- pme = 20
- rend_dict["polemic__max_elements"] = pme
- else:
- rend_dict["polemic__max_elements"] = 20
-
- if request.GET.has_key("autostart"):
- rend_dict["autostart"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("autostart").lower())
- else :
- rend_dict["autostart"] = True
- if request.GET.has_key("createannotation"):
- rend_dict["createannotation"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("createannotation").lower())
- if request.GET.has_key("show_mic_record"):
- rend_dict["show_mic_record"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_mic_record").lower())
- if rend_dict["show_mic_record"]:
- rend_dict["createannotation"]=True
- rend_dict["createannotation_polemics"] = True
- if request.GET.has_key("createannotation_polemics"):
- rend_dict["createannotation_polemics"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("createannotation_polemics").lower())
- if request.GET.has_key("annotations_list"):
- rend_dict["annotations_list"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("annotations_list").lower())
- rend_dict["player_width"] = 550
- if request.GET.has_key("tag_titles"):
- rend_dict["tag_titles"] = request.GET.get("tag_titles")
- if request.GET.has_key("sparkline"):
- rend_dict["sparkline"] = request.GET.get("sparkline")
- if request.GET.has_key("sparkline_lineColor"):
- rend_dict["sparkline_lineColor"] = request.GET.get("sparkline_lineColor")
- else:
- rend_dict["sparkline_lineColor"] = "7492b4"
- if request.GET.has_key("sparkline_fillColor"):
- rend_dict["sparkline_fillColor"] = request.GET.get("sparkline_fillColor")
- else:
- rend_dict["sparkline_fillColor"] = "aeaeb8"
- if request.GET.has_key("slideshare"):
- rend_dict["slideshare"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("slideshare").lower())
- if request.GET.has_key("social"):
- rend_dict["social"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("social").lower())
- if request.GET.has_key("show_url"):
- rend_dict["show_url"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_url").lower())
- else:
- rend_dict["show_url"] = True
- if request.GET.has_key("show_twitter"):
- rend_dict["show_twitter"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_twitter").lower())
- else:
- rend_dict["show_twitter"] = True
- if request.GET.has_key("show_fb"):
- rend_dict["show_fb"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_fb").lower())
- else:
- rend_dict["show_fb"] = True
- if request.GET.has_key("show_gplus"):
- rend_dict["show_gplus"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_gplus").lower())
- else:
- rend_dict["show_gplus"] = True
- if request.GET.has_key("show_mail"):
- rend_dict["show_mail"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("show_mail").lower())
- else:
- rend_dict["show_mail"] = True
- if request.GET.has_key("annotation"):
- rend_dict["annotation"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("annotation").lower())
- if request.GET.has_key("tweet"):
- rend_dict["tweet"] ={'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("tweet").lower())
- if request.GET.has_key("segments"):
- rend_dict["segments"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("segments").lower())
- else:
- rend_dict["segments"] = True
- if request.GET.has_key("tagcloud"):
- rend_dict["tagcloud"] = {'true': True, 'false': False, "0": False, "1": True}.get(request.GET.get("tagcloud").lower())
- return render_to_response("ldt/ldt_utils/embed_iframe.html", rend_dict, context_instance=RequestContext(request))
-
-
-def get_datas_for_embed(request, json_url, player_id, ldt_id):
-
- project = Project.safe_objects.prefetch_related("contents", "owner").get(ldt_id=ldt_id) #@UndefinedVariable
- project_contents = project.contents.all()
- content = project_contents[0]
- WEB_URL = get_web_url(request)
- iframe_url = mark_safe(WEB_URL+settings.BASE_URL+"ldtplatform/ldt/embediframe/?content_id="+content.iri_id+"&project_id="+ldt_id)
- external_url = None
- if content.src is not None:
- for external_src in settings.EXTERNAL_STREAM_SRC:
- if external_src in content.src:
- external_url = content.src
- break
-
- stream_mode = project.stream_mode
- if stream_mode != "video":
- stream_mode = 'radio'
-
- if not ldt_auth.check_access(request.user, project):
- # If the project is unpublished AND if the user is the owner, we display few datas
- #TODO : enhance rend_dict and display in this case
- if project.state==1 and project.owner==request.user:
- pass
- else:
- #return HttpResponseForbidden(_("You can not access this project"))
- return {'ldt_id': ldt_id}
- LANGUAGE_CODE = settings.LANGUAGE_CODE
- ps = ProjectJsonSerializer(project, from_contents=True, from_display=True)
- annotations = ps.get_annotations(first_cutting=True)
- rend_dict = {'project':project, 'contents':project_contents, 'json_url':json_url, 'player_id':player_id, 'annotations':annotations, 'ldt_id': ldt_id, 'stream_mode': stream_mode,
- 'external_url': external_url,
- 'polemic':False, 'show_mic_record':False, 'annotations_list':False, 'iframe_url':iframe_url, 'WEB_URL':WEB_URL,
- 'LANGUAGE_CODE':LANGUAGE_CODE}
- return rend_dict
-
-
-
def share_filter(request, filter, use_groups=False): # @ReservedAssignment
use_groups = boolean_convert(use_groups)
if not filter or len(filter) == 0:
Binary file src/ldt/ldt/locale/en/LC_MESSAGES/django.mo has changed
--- a/src/ldt/ldt/locale/en/LC_MESSAGES/django.po Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/locale/en/LC_MESSAGES/django.po Tue Mar 17 17:59:10 2015 +0100
@@ -6,7 +6,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2013-04-19 11:43+0000\n"
+"POT-Creation-Date: 2015-03-11 12:18+0000\n"
"PO-Revision-Date: 2012-04-29 22:26+0200\n"
"Last-Translator: Yves-Marie Haussonne <ymh.work@gmail.com>\n"
"Language-Team: IRI\n"
@@ -17,203 +17,203 @@
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Virtaal 0.7.0-mac-beta-1\n"
-#: forms/fields.py:22
+#: forms/fields.py:20
#, fuzzy
msgid "The duration field can not be empty."
msgstr "The search field can not be empty."
-#: forms/fields.py:23
+#: forms/fields.py:21
#, fuzzy
msgid "Enter a valid duration format;"
msgstr "Enter a valid duration format"
-#: forms/widgets.py:21
+#: forms/widgets.py:17
msgid "Date"
msgstr "Date"
-#: forms/widgets.py:21
+#: forms/widgets.py:17
msgid "Time"
msgstr "Time"
-#: ldt_utils/forms.py:32 ldt_utils/templates/front/front_base.html:53
-#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:53
+#: ldt_utils/forms.py:33 ldt_utils/templates/front/front_base.html:53
+#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:79
msgid "Search"
msgstr "search"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "all"
msgstr "all"
-#: ldt_utils/forms.py:33 ldt_utils/models.py:70
+#: ldt_utils/forms.py:34 ldt_utils/models.py:72
#: ldt_utils/templates/ldt/ldt_utils/content_list.html:70
msgid "title"
msgstr "title"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "resume"
msgstr "resume"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "tags"
msgstr "tags"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "Fields"
msgstr "Fields"
-#: ldt_utils/forms.py:34
+#: ldt_utils/forms.py:35
msgid "Display the results in Lignes De Temps"
msgstr "Display the results in Lignes De Temps"
-#: ldt_utils/forms.py:36
+#: ldt_utils/forms.py:37
msgid "Content Tag"
msgstr "Content category"
-#: ldt_utils/forms.py:52 ldt_utils/models.py:175
+#: ldt_utils/forms.py:53 ldt_utils/models.py:177
msgid "content.content_creation_date"
msgstr "content creation date"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "content.media_input_type"
msgstr "Media source type"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "file_upload"
msgstr "file upload"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "url"
msgstr "url"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "existing_media"
msgstr "existing media"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "create_media"
msgstr "create media"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "none_media"
msgstr "no media"
-#: ldt_utils/forms.py:56
+#: ldt_utils/forms.py:57
msgid "content.front_project"
msgstr "front project"
-#: ldt_utils/forms.py:57 ldt_utils/models.py:174
+#: ldt_utils/forms.py:58 ldt_utils/models.py:176
msgid "content.duration"
msgstr "duration (ms)"
-#: ldt_utils/models.py:59
+#: ldt_utils/models.py:61
msgid "media.external_id"
msgstr "external id"
-#: ldt_utils/models.py:60
+#: ldt_utils/models.py:62
msgid "media.external_permalink"
msgstr "media permalink"
-#: ldt_utils/models.py:61
+#: ldt_utils/models.py:63
msgid "media.external_publication_url"
msgstr "media publication url"
-#: ldt_utils/models.py:62
+#: ldt_utils/models.py:64
msgid "media.external_src_url"
msgstr "media external source url"
-#: ldt_utils/models.py:63
+#: ldt_utils/models.py:65
msgid "media.creation_date"
msgstr "media object creation date"
-#: ldt_utils/models.py:64
+#: ldt_utils/models.py:66
msgid "media.media_creation_date"
msgstr "media creation date"
-#: ldt_utils/models.py:65
+#: ldt_utils/models.py:67
msgid "media.update_date"
msgstr "update date"
-#: ldt_utils/models.py:66
+#: ldt_utils/models.py:68
msgid "media.videopath"
msgstr "videopath"
-#: ldt_utils/models.py:67
+#: ldt_utils/models.py:69
msgid "media.duration"
msgstr "duration (ms)"
-#: ldt_utils/models.py:68
+#: ldt_utils/models.py:70
msgid "media.creator"
msgstr "media creator"
-#: ldt_utils/models.py:69
+#: ldt_utils/models.py:71
msgid "description"
msgstr "description"
-#: ldt_utils/models.py:71
+#: ldt_utils/models.py:73
msgid "media.src"
msgstr "media source"
-#: ldt_utils/models.py:72
+#: ldt_utils/models.py:74
msgid "media.src_hash"
msgstr "source hash"
-#: ldt_utils/models.py:73
+#: ldt_utils/models.py:75
msgid "media.mimetype"
msgstr "mimetype"
-#: ldt_utils/models.py:167
+#: ldt_utils/models.py:169
msgid "content.iri_id"
msgstr "iri id"
-#: ldt_utils/models.py:168
+#: ldt_utils/models.py:170
msgid "content.iriurl"
msgstr "iri url"
-#: ldt_utils/models.py:169
+#: ldt_utils/models.py:171
msgid "content.creation_date"
msgstr "content creation date"
-#: ldt_utils/models.py:170
+#: ldt_utils/models.py:172
msgid "content.update_date"
msgstr "content update date"
-#: ldt_utils/models.py:171
+#: ldt_utils/models.py:173
msgid "content.title"
msgstr "title"
-#: ldt_utils/models.py:172
+#: ldt_utils/models.py:174
msgid "content.description"
msgstr "description"
-#: ldt_utils/models.py:173
+#: ldt_utils/models.py:175
msgid "content.authors"
msgstr "authors"
-#: ldt_utils/models.py:544
+#: ldt_utils/models.py:550
msgid "content_stat.content"
msgstr "annotation statistics"
-#: ldt_utils/models.py:545
+#: ldt_utils/models.py:551
msgid "content_stat.annotations_volume"
msgstr "annotation volume"
-#: ldt_utils/models.py:546
+#: ldt_utils/models.py:552
msgid "content_stat.polemics_volume"
msgstr "Annotation volume"
-#: ldt_utils/models.py:547
+#: ldt_utils/models.py:553
msgid "content.nb_annotation"
msgstr "annotation number"
-#: ldt_utils/models.py:548
+#: ldt_utils/models.py:554
msgid "content.last_annotated"
msgstr "last annotated"
-#: ldt_utils/models.py:603
+#: ldt_utils/models.py:614
msgid "created by"
msgstr "created by"
-#: ldt_utils/models.py:604
+#: ldt_utils/models.py:615
msgid "changed by"
msgstr "changed by"
@@ -230,84 +230,87 @@
msgid "Home"
msgstr "Home"
-#: ldt_utils/templates/front/front_all_contents.html:9
+#: ldt_utils/templates/front/front_all_contents.html:10
#, python-format
msgid "Lignes de temps : %(tag_label)s"
msgstr "Lignes de temps : %(tag_label)s"
-#: ldt_utils/templates/front/front_all_contents.html:11
+#: ldt_utils/templates/front/front_all_contents.html:12
msgid "Lignes de temps : all medias"
msgstr "Lignes de temps : all medias"
-#: ldt_utils/templates/front/front_all_contents.html:45
-#: ldt_utils/templates/front/front_home.html:39
+#: ldt_utils/templates/front/front_all_contents.html:46
+#: ldt_utils/templates/front/front_home.html:40
msgid "Filter the medias by category"
msgstr "Filter the medias by category"
-#: ldt_utils/templates/front/front_all_contents.html:50
#: ldt_utils/templates/front/front_all_contents.html:51
#: ldt_utils/templates/front/front_all_contents.html:52
-#: ldt_utils/templates/front/front_home.html:45
+#: ldt_utils/templates/front/front_all_contents.html:53
+#: ldt_utils/templates/front/front_home.html:46
msgid "All medias"
msgstr "All medias"
-#: ldt_utils/templates/front/front_all_contents.html:55
-#: ldt_utils/templates/front/front_home.html:45
+#: ldt_utils/templates/front/front_all_contents.html:56
+#: ldt_utils/templates/front/front_home.html:46
msgid "Filter the medias"
msgstr "Filter the medias"
-#: ldt_utils/templates/front/front_all_contents.html:61
-#: ldt_utils/templates/front/front_home.html:51
-msgid "Search in the medias title"
-msgstr "Search in the medias title"
-
-#: ldt_utils/templates/front/front_all_contents.html:64
-#: ldt_utils/templates/front/front_all_contents.html:120
-#: ldt_utils/templates/front/front_home.html:54
+#: ldt_utils/templates/front/front_all_contents.html:62
+#: ldt_utils/templates/front/front_all_contents.html:118
+#: ldt_utils/templates/front/front_home.html:52
msgid "All categories of medias"
msgstr "All categories of medias"
-#: ldt_utils/templates/front/front_all_contents.html:72
-#: ldt_utils/templates/front/front_group.html:47
-#: ldt_utils/templates/front/front_search_results.html:138
+#: ldt_utils/templates/front/front_all_contents.html:70
+#: ldt_utils/templates/front/front_group.html:48
+#: ldt_utils/templates/front/front_search_results.html:160
#: ldt_utils/templates/ldt/ldt_utils/search_results.html:105
msgid "previous"
msgstr "Previous"
-#: ldt_utils/templates/front/front_all_contents.html:90
-#: ldt_utils/templates/front/front_group.html:65
-#: ldt_utils/templates/front/front_search_results.html:158
+#: ldt_utils/templates/front/front_all_contents.html:88
+#: ldt_utils/templates/front/front_group.html:66
+#: ldt_utils/templates/front/front_search_results.html:180
#: ldt_utils/templates/ldt/ldt_utils/search_results.html:115
msgid "next"
msgstr "Next"
-#: ldt_utils/templates/front/front_all_contents.html:93
-#: ldt_utils/templates/front/front_group.html:68
+#: ldt_utils/templates/front/front_all_contents.html:91
+#: ldt_utils/templates/front/front_group.html:69
msgid "All"
msgstr "All"
-#: ldt_utils/templates/front/front_all_contents.html:102
-#: ldt_utils/templates/front/front_all_contents.html:115
-#: ldt_utils/templates/front/front_home.html:62
-#: ldt_utils/templates/front/front_home.html:73
-#: ldt_utils/templates/front/front_home.html:90
-#: ldt_utils/templates/front/front_home.html:99
+#: ldt_utils/templates/front/front_all_contents.html:100
+#: ldt_utils/templates/front/front_all_contents.html:113
+#: ldt_utils/templates/front/front_group.html:91
+#: ldt_utils/templates/front/front_group.html:93
+#: ldt_utils/templates/front/front_home.html:60
+#: ldt_utils/templates/front/front_home.html:71
+#: ldt_utils/templates/front/front_home.html:88
+#: ldt_utils/templates/front/front_home.html:97
+#: ldt_utils/templates/front/front_search_results.html:68
+#: ldt_utils/templates/front/front_search_results.html:77
msgid "open this media"
msgstr "Play this media"
-#: ldt_utils/templates/front/front_all_contents.html:114
-#: ldt_utils/templates/front/front_home.html:72
-#: ldt_utils/templates/front/front_home.html:98
+#: ldt_utils/templates/front/front_all_contents.html:112
+#: ldt_utils/templates/front/front_group.html:92
+#: ldt_utils/templates/front/front_home.html:70
+#: ldt_utils/templates/front/front_home.html:96
+#: ldt_utils/templates/front/front_search_results.html:76
#, python-format
msgid "%(nb)s annotation on this media"
msgid_plural "%(nb)s annotations on this media"
msgstr[0] "%(nb)s annotation on this media"
msgstr[1] "%(nb)s annotations on this media"
-#: ldt_utils/templates/front/front_all_contents.html:116
-#: ldt_utils/templates/front/front_group.html:77
-#: ldt_utils/templates/front/front_home.html:74
-#: ldt_utils/templates/front/front_home.html:100
+#: ldt_utils/templates/front/front_all_contents.html:114
+#: ldt_utils/templates/front/front_group.html:78
+#: ldt_utils/templates/front/front_group.html:94
+#: ldt_utils/templates/front/front_home.html:72
+#: ldt_utils/templates/front/front_home.html:98
+#: ldt_utils/templates/front/front_search_results.html:78
msgid "by"
msgstr "by"
@@ -320,7 +323,7 @@
msgstr "<b>Lignes</b> de temps"
#: ldt_utils/templates/front/front_base.html:60
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:68
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:119
msgid "My projects"
msgstr "My projects"
@@ -331,14 +334,14 @@
#: ldt_utils/templates/front/front_base.html:70
#: templates/cms/admin/cms/page/change_form.html:11
-#: templates/ldt/ldt_base.html:98 user/templates/ldt/user/login_form.html:35
+#: templates/ldt/ldt_base.html:98 user/templates/ldt/user/login_form.html:34
msgid "Log out"
msgstr "Log out"
#: ldt_utils/templates/front/front_base.html:72
#: templates/admin/page_login.html:32
-#: user/templates/ldt/user/login_form.html:38
-#: user/templates/ldt/user/login_form.html:46
+#: user/templates/ldt/user/login_form.html:37
+#: user/templates/ldt/user/login_form.html:45
#: user/templates/registration/login.html:22
#: user/templates/registration/password_reset_complete.html:14
msgid "Log in"
@@ -357,45 +360,61 @@
msgid "about"
msgstr "about"
-#: ldt_utils/templates/front/front_group.html:34
+#: ldt_utils/templates/front/front_group.html:35
#, fuzzy
msgid "Projects shared by the group"
msgstr "Projects shared with me only"
-#: ldt_utils/templates/front/front_group.html:35
+#: ldt_utils/templates/front/front_group.html:36
#: templates/admin/cms_change_list.html:110
#: templates/admin/page_change_list.html:65
msgid "Filter"
msgstr "Filter"
-#: ldt_utils/templates/front/front_group.html:39
+#: ldt_utils/templates/front/front_group.html:40
#, fuzzy
msgid "Search in the projects title"
msgstr "Search in the medias title"
-#: ldt_utils/templates/front/front_group.html:75
#: ldt_utils/templates/front/front_group.html:76
+#: ldt_utils/templates/front/front_group.html:77
#, fuzzy
msgid "open this project"
msgstr "Copy your project"
-#: ldt_utils/templates/front/front_group.html:82
+#: ldt_utils/templates/front/front_group.html:83
+#: ldt_utils/templates/front/front_group.html:118
+#, fuzzy
+msgid "See all the group's medias"
+msgstr "See for all medias"
+
+#: ldt_utils/templates/front/front_group.html:87
+msgid "Medias annotated by the group"
+msgstr "Medias annotated by the group"
+
+#: ldt_utils/templates/front/front_group.html:98
+#: ldt_utils/templates/front/front_group.html:120
+#, fuzzy
+msgid "See all the group's projects"
+msgstr "The group's project"
+
+#: ldt_utils/templates/front/front_group.html:102
msgid "Back to the group list"
msgstr ""
-#: ldt_utils/templates/front/front_group.html:107
+#: ldt_utils/templates/front/front_group.html:110
msgid "About the group"
msgstr "About the group"
-#: ldt_utils/templates/front/front_group.html:116
+#: ldt_utils/templates/front/front_group.html:125
msgid "Members"
msgstr "Members"
-#: ldt_utils/templates/front/front_group.html:123
+#: ldt_utils/templates/front/front_group.html:132
msgid "active since"
msgstr "active since"
-#: ldt_utils/templates/front/front_groups.html:22 user/admin.py:38
+#: ldt_utils/templates/front/front_groups.html:22
msgid "Groups"
msgstr "Groups"
@@ -405,53 +424,58 @@
msgid "See this group"
msgstr "Edit this group"
-#: ldt_utils/templates/front/front_home.html:7
+#: ldt_utils/templates/front/front_home.html:8
msgid "front.home"
msgstr "Ligne de Temps Platform"
-#: ldt_utils/templates/front/front_home.html:43
+#: ldt_utils/templates/front/front_home.html:44
msgid "Last annotated medias"
msgstr "Last annotated medias"
-#: ldt_utils/templates/front/front_home.html:45
+#: ldt_utils/templates/front/front_home.html:46
msgid "view all medias"
msgstr "view all medias"
-#: ldt_utils/templates/front/front_home.html:83
+#: ldt_utils/templates/front/front_home.html:81
msgid "Most annotated medias"
msgstr "Most annotated medias"
-#: ldt_utils/templates/front/front_home.html:107
+#: ldt_utils/templates/front/front_home.html:105
msgid "Active groups"
msgstr "Active groups"
-#: ldt_utils/templates/front/front_home.html:112
+#: ldt_utils/templates/front/front_home.html:110
msgid "group picture"
msgstr "group picture"
-#: ldt_utils/templates/front/front_home.html:112
-#: ldt_utils/templates/front/front_home.html:116
+#: ldt_utils/templates/front/front_home.html:110
+#: ldt_utils/templates/front/front_home.html:114
msgid "view more infos on this group"
msgstr "View more information on this group"
-#: ldt_utils/templates/front/front_home.html:115
+#: ldt_utils/templates/front/front_home.html:113
#, python-format
msgid "%(nb)s user in this group"
msgid_plural "%(nb)s users in this group"
msgstr[0] "%(nb)s user in this group"
msgstr[1] "%(nb)s users in this group"
-#: ldt_utils/templates/front/front_player.html:49
+#: ldt_utils/templates/front/front_player.html:55
+msgid "Afficher/Masquer les annotations"
+msgstr ""
+
+#: ldt_utils/templates/front/front_player.html:66
+#: ldt_utils/templates/front/front_player.html:77
msgid "All annotations on the media"
msgstr "All annotations on the media"
#: ldt_utils/templates/front/front_search_results.html:7
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:100
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:112
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:130
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:142
#: ldt_utils/templates/ldt/ldt_utils/ldt_list.html:80
-#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:70
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:56
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:71
+#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:96
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:107
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:122
#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:133
#: templates/ldt/ldt_base.html:128
msgid "search"
@@ -476,46 +500,57 @@
msgid " No results for <b>%(search)s</b>."
msgstr "No results for <b>%(search)s</b>."
-#: ldt_utils/templates/front/front_search_results.html:73
-#: ldt_utils/templates/front/front_search_results.html:75
-msgid "Search results for "
-msgstr "Search results for"
+#: ldt_utils/templates/front/front_search_results.html:63
+#, fuzzy
+msgid "Results in medias for"
+msgstr "Results for"
-#: ldt_utils/templates/front/front_search_results.html:80
+#: ldt_utils/templates/front/front_search_results.html:63
+#, fuzzy
+msgid "See all medias"
+msgstr "See for all medias"
+
+#: ldt_utils/templates/front/front_search_results.html:95
+#: ldt_utils/templates/front/front_search_results.html:97
+#, fuzzy
+msgid "Results in annotations for"
+msgstr "tags"
+
+#: ldt_utils/templates/front/front_search_results.html:102
#: ldt_utils/templates/ldt/ldt_utils/search_results.html:62
msgid "Result"
msgstr "Result"
-#: ldt_utils/templates/front/front_search_results.html:81
+#: ldt_utils/templates/front/front_search_results.html:103
msgid "Segment"
msgstr ""
-#: ldt_utils/templates/front/front_search_results.html:100
+#: ldt_utils/templates/front/front_search_results.html:122
msgid "annotation distribution"
msgstr "annotation distribution"
-#: ldt_utils/templates/front/front_search_results.html:114
-#: ldt_utils/templates/front/front_search_results.html:119
+#: ldt_utils/templates/front/front_search_results.html:136
+#: ldt_utils/templates/front/front_search_results.html:141
msgid "view this annotation in the player"
msgstr "view this annotation in the player"
-#: ldt_utils/templates/front/front_search_results.html:115
-#: ldt_utils/templates/front/front_search_results.html:120
+#: ldt_utils/templates/front/front_search_results.html:137
+#: ldt_utils/templates/front/front_search_results.html:142
#: ldt_utils/templates/ldt/ldt_utils/search_results.html:84
msgid "No title"
msgstr "No title"
-#: ldt_utils/templates/front/front_search_results.html:116
+#: ldt_utils/templates/front/front_search_results.html:138
msgid "Begin"
msgstr "Begin"
-#: ldt_utils/templates/front/front_search_results.html:116
+#: ldt_utils/templates/front/front_search_results.html:138
msgid "duration"
msgstr "duration"
#: ldt_utils/templates/ldt/ldt_utils/content_list.html:56
#: templates/admin/page_base.html:19
-#: user/templates/ldt/user/login_form.html:34
+#: user/templates/ldt/user/login_form.html:33
msgid "Space"
msgstr "Space"
@@ -537,7 +572,7 @@
#: ldt_utils/templates/ldt/ldt_utils/content_list.html:71
#: ldt_utils/templates/ldt/ldt_utils/content_list.html:78
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:29
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:30
msgid "create project"
msgstr "Create new project"
@@ -546,7 +581,7 @@
msgstr "Copy your project"
#: ldt_utils/templates/ldt/ldt_utils/copy_ldt.html:17
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:96
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:95
msgid "Title"
msgstr "Title"
@@ -554,23 +589,19 @@
msgid "Copy"
msgstr "Copy"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:35
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:31
msgid "Browse"
msgstr "Browse"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:36
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:32
msgid "File uploaded"
msgstr "File uploaded"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:37
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:33
msgid "Please wait, the upload is not finished yet"
msgstr "Please wait, the upload is not finished yet"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:38
-msgid "Cancel upload"
-msgstr "Cancel upload"
-
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:73
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:92
msgid ""
"The operation could not be performed because one or more error(s) occurred."
"<br />Please resubmit the media form after making the following changes:"
@@ -578,34 +609,34 @@
"The operation could not be performed because one or more error(s) occurred."
"<br />Please resubmit the media form after making the following changes:"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:88
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:107
#, fuzzy
msgid "Modify this content"
msgstr "You can not edit this content"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:90
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:53
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:109
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:104
msgid "Create content"
msgstr "Create content"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:132
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:149
msgid "Actual front project"
msgstr "Actual front project"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:133
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:149
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:150
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:148
#: ldt_utils/templates/ldt/ldt_utils/reset_confirm.html:39
#: ldt_utils/templates/ldt/ldt_utils/reset_confirm_popup.html:54
msgid "reset_front_project"
msgstr "reset front project"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:147
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:163
msgid "media file is being processed please wait."
msgstr "media file is being processed please wait."
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:151
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:79
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:145
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:167
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:83
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:144
#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:37
#: ldt_utils/templates/ldt/ldt_utils/error_confirm_popup.html:53
#: ldt_utils/templates/ldt/ldt_utils/reset_confirm.html:38
@@ -613,312 +644,335 @@
msgid "close_cancel"
msgstr "Close"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:152
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:168
msgid "delete"
msgstr "Approve delete"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:153
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:169
msgid "write"
msgstr "Write"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:38
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:36
msgid "Do you really want to delete this group ?"
msgstr "Do you really want to delete this group ?"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:56
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:62
msgid "Update a group"
msgstr "Update a group"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:56
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:62
msgid "Create a group"
msgstr "Create a group"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:63
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:69
#: user/templates/ldt/user/change_profile.html:62
msgid "Name"
msgstr "Name"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:69
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:75
msgid "Description"
msgstr "Description"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:81
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:85
msgid "update_group"
msgstr "update the group"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:83
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:87
msgid "delete_group"
msgstr "delete project"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:86
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:90
msgid "create_group"
msgstr "Create a group"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:48
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:47
msgid "more options"
msgstr "more options"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:52
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:51
msgid "hide"
msgstr "hide"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:90
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:89
msgid "Update your project"
msgstr "Create your project"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:90
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:89
msgid "Create your project"
msgstr "Create your project"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:101
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:100
msgid "Description :"
msgstr "description :"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:106
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:105
msgid "List of contents"
msgstr "List of contents"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:120
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:22
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:119
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:23
#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:13
#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:13
msgid "name"
msgstr "name"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:136
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:135
msgid "More options"
msgstr "More options"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:147
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:146
msgid "delete_project"
msgstr "delete project"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:151
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:150
msgid "update_project"
msgstr "update project"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:153
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:152
msgid "create_project"
msgstr "Create new project"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:26
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:231
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:25
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:239
msgid "Show Player"
msgstr "Show Player"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:27
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:26
msgid "Hide Player"
msgstr "Hide Player"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:62
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:61
#, fuzzy
msgid "Share the project"
msgstr "Create new project"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:63
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:62
#, fuzzy
msgid "List of the project's contents"
msgstr "clik here to see the project content"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:66
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:65
msgid "Link to the Metadata Player"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:66
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:71
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:65
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70
#, fuzzy
msgid "See"
msgstr "Select"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:66
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:65
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:69
#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:71
msgid "Select"
msgstr "Select"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:69
msgid "project id"
msgstr "project id"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:71
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70
#, fuzzy
msgid "The project in Lignes de Temps"
msgstr "Display the results in Lignes De Temps"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:76
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:75
msgid "popup_player"
msgstr "player"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:77
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:76
msgid "popup_ldt_iframe"
msgstr "Code for Lignes de Temps"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:78
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:77
msgid "popup_seo_body"
msgstr "seo"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:79
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:78
msgid "popup_seo_meta"
msgstr "meta"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:80
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:79
msgid "popup_links"
msgstr "links"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:100
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:98
msgid "Integration mode"
msgstr "Integration mode"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:101
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:99
msgid "div"
msgstr "div"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:102
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:100
msgid "iframe"
msgstr "iframe"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:105
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:103
msgid "Player Size : "
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:112
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:110
#, fuzzy
msgid "Preset Modes"
msgstr "reset password"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:115
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:113
#, fuzzy
msgid "Basic configuration"
msgstr "New password confirmation"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:116
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:114
msgid "Polemic configuration"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:117
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:115
msgid "Polemic configuration with tagcloud, annotationsList and Social widgets"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:124
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:122
#, fuzzy
msgid "Create your own configuration"
msgstr "Create your project"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:129
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:126
+msgid "The video starts automatically"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:130
msgid "Displays a form to create a new annotation"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:132
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:133
#, fuzzy
msgid "audio annotation"
msgstr "annotation uri"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:133
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:134
#, fuzzy
msgid "Audio annotation"
msgstr "annotation uri"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:133
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:134
msgid "Allows the user to record an annotation"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:135
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:136
msgid "Use most used tags "
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:137
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:138
msgid "Set your own tags : "
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:137
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:138
msgid "Write your tags separeted by a comma"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:143
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:141
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:142
+msgid "4 polemics buttons"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:142
+msgid "Displays or removes the 4 polemics buttons"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:147
msgid "Displays segments of a media as rectangles on an horizontal line"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:146
-msgid "Show a list of annotations"
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:150
+msgid ""
+"Displays every segment of a media as rectangles on multiple horizontal lines"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:150
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:153
+msgid "Show a list of all annotations accross every project for this content"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:157
msgid ""
"Shows the polemical timeline, i.e. tweets colored according to the polemical "
"syntax"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:153
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:160
msgid "Display in the polemic timeline : "
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:154
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:161
msgid "only tweets"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:155
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:162
#, fuzzy
msgid "all annotations"
msgstr "tags"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:157
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:164
msgid "Personalize tweet's color"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:162
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:169
msgid "Default color"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:166
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:173
msgid "Polemic's color : ++ : "
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:176
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:183
msgid "Found color"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:184
-msgid "Displays a curve showing the volume of tweets across time"
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:191
+msgid "Displays a curve showing the volume of annotations across time"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:188
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:195
msgid "personalize sparkline's color"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:192
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:199
msgid "line color"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:197
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:204
msgid "fill color"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:204
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:211
msgid "Displays a div in order to watch the slides displayed in the media"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:208
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:215
msgid " Adds buttons to share an URL on social networks"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:215
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:222
msgid "share with email"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:219
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:226
msgid ""
" Displays information relative to a single segment/annotation while it is "
"being played"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:222
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:229
msgid "Show the contents on a tweet when clicked (in Polemic Widget)"
msgstr ""
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:225
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:232
msgid "Shows a tag cloud"
msgstr ""
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:234
+#, fuzzy
+msgid "Concatenate all projects using this content"
+msgstr "You can not edit this content"
+
#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:21
#: ldt_utils/templates/ldt/ldt_utils/error_confirm_popup.html:34
#: ldt_utils/templates/ldt/ldt_utils/reset_confirm.html:22
@@ -942,20 +996,20 @@
msgid "close_error"
msgstr "Close"
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:67
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:85
msgid "Do you want to leave this group ?"
msgstr "Do you want to leave this group ?"
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:92
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:122
#: templates/ldt/ldt_base.html:116
msgid "My groups"
msgstr "My groups"
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:94
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:124
msgid "Create group"
msgstr "Create a new group"
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:110
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:140
msgid "The group's projects"
msgstr "The group's project"
@@ -971,17 +1025,17 @@
msgid "project list"
msgstr "Projects"
-#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:62
+#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:88
msgid "Submit"
msgstr "Submit"
-#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:67
+#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:93
#: templates/ldt/ldt_base.html:117
msgid "Published projects"
msgstr "Published projects"
-#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:68
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:69
+#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:94
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:120
msgid "Create project"
msgstr "Create new project"
@@ -989,7 +1043,7 @@
msgid "confirm_reset"
msgstr "Confirm reset"
-#: ldt_utils/templates/ldt/ldt_utils/search_form.html:11
+#: ldt_utils/templates/ldt/ldt_utils/search_form.html:10
msgid "The search field can not be empty."
msgstr "The search field can not be empty."
@@ -1008,10 +1062,12 @@
msgstr ""
#: ldt_utils/templates/ldt/ldt_utils/search_results.html:80
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:25
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:27
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:33
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:35
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:26
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:28
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:31
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:38
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:40
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:43
#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:22
#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:24
msgid "open ldt"
@@ -1026,19 +1082,19 @@
msgid "Page %(number)s of %(num_pages)s"
msgstr "Page %(number)s of %(num_pages)s"
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:52
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:103
msgid "content list"
msgstr "Contents"
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:7
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:8
msgid "All categories"
msgstr "All categories"
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:30
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:31
msgid "preview media"
msgstr "preview media"
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:32
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:33
msgid "You can't edit this content"
msgstr "You can not edit this content"
@@ -1130,26 +1186,26 @@
msgid "Upload a new picture"
msgstr "Upload a new picture"
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:41
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:48
msgid "copy project"
msgstr "Copy your project"
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:46
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:52
#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:30
msgid "link json by id"
msgstr "link json by id"
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:53
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:58
msgid "Project published, click to unpublish"
msgstr "Project published, click to unpublish"
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:53
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:55
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:66
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:58
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:60
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:71
msgid "You are not allowed to change this project"
msgstr "You are not allowed to change this project"
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:55
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:60
msgid "Project not published, click to publish"
msgstr "Project not published, click to publish"
@@ -1157,66 +1213,66 @@
msgid "copy the project"
msgstr "Copy your project"
-#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:34
+#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:35
msgid "Project published"
msgstr " published"
-#: ldt_utils/views/content.py:131
+#: ldt_utils/views/content.py:130
msgid "Problem when downloading file from url : "
msgstr "Problem when downloading file from url: "
-#: ldt_utils/views/content.py:134
+#: ldt_utils/views/content.py:133
msgid "Problem when uploading file : "
msgstr "Problem when uploading file: "
-#: ldt_utils/views/content.py:343
+#: ldt_utils/views/content.py:358
#, python-format
msgid "There is %(count)d error when deleting content"
msgid_plural "There are %(count)d errors when deleting content"
msgstr[0] "There is %(count)d error when deleting content"
msgstr[1] "There are %(count)d errors when deleting content"
-#: ldt_utils/views/content.py:344
+#: ldt_utils/views/content.py:359
msgid "title error deleting content"
msgstr "Error when deleting content"
-#: ldt_utils/views/content.py:349
+#: ldt_utils/views/content.py:364
#, python-format
msgid "Confirm delete content %(titles)s"
msgstr "Confirm delete content %(titles)s"
-#: ldt_utils/views/content.py:350
+#: ldt_utils/views/content.py:365
msgid "confirm delete content"
msgstr "Confirm delete content"
-#: ldt_utils/views/content.py:361
+#: ldt_utils/views/content.py:376
#, python-format
msgid "Please unpublish the front project %(title)s"
msgstr "please unpublish the front project %(title)s"
-#: ldt_utils/views/content.py:362
+#: ldt_utils/views/content.py:377
msgid "The front project is published"
msgstr "The front project is published"
-#: ldt_utils/views/content.py:363 ldt_utils/views/content.py:366
-#: ldt_utils/views/project.py:138
+#: ldt_utils/views/content.py:378 ldt_utils/views/content.py:381
+#: ldt_utils/views/project.py:139
msgid "confirm reset"
msgstr "Confirm reset"
-#: ldt_utils/views/content.py:365 ldt_utils/views/project.py:137
+#: ldt_utils/views/content.py:380 ldt_utils/views/project.py:138
#, python-format
msgid "please confirm reseting project %(title)s"
msgstr "please confirm reseting project %(title)s"
-#: ldt_utils/views/content.py:392
+#: ldt_utils/views/content.py:407
msgid "An error occurred - Please try again or contact webmaster"
msgstr "An error occurred - Please try again or contact webmaster"
-#: ldt_utils/views/content.py:393
+#: ldt_utils/views/content.py:408
msgid "Error"
msgstr "Error"
-#: ldt_utils/views/content.py:438
+#: ldt_utils/views/content.py:453
#, python-format
msgid ""
"Content '%(title)s' is referenced by this project : %(project_titles)s. "
@@ -1231,7 +1287,7 @@
"Content '%(title)s' is referenced by %(count)d projects: %(project_titles)s. "
"Please delete them beforehand."
-#: ldt_utils/views/content.py:441
+#: ldt_utils/views/content.py:456
#, python-format
msgid ""
"The project '%(project_title)s' pointing on the content '%(title)s' has "
@@ -1242,25 +1298,24 @@
"several annotations. Do you want to delete the content and the project "
"anyway ?"
-#: ldt_utils/views/json.py:41 ldt_utils/views/rdf.py:15
-#: ldt_utils/views/workspace.py:241
+#: ldt_utils/views/json.py:43 ldt_utils/views/rdf.py:15
msgid "You can not access this project"
msgstr "You can not access this project"
-#: ldt_utils/views/project.py:118
+#: ldt_utils/views/project.py:119
#, python-format
msgid "the project %(title)s is published. please unpublish before deleting."
msgstr "the project %(title)s is published. please unpublish before deleting."
-#: ldt_utils/views/project.py:119 ldt_utils/views/project.py:123
+#: ldt_utils/views/project.py:120 ldt_utils/views/project.py:124
msgid "can not delete the project. Please correct the following error"
msgstr "can not delete the project. Please correct the following error"
-#: ldt_utils/views/project.py:120 ldt_utils/views/project.py:124
+#: ldt_utils/views/project.py:121 ldt_utils/views/project.py:125
msgid "title error deleting project"
msgstr "Error when deleting project"
-#: ldt_utils/views/project.py:122
+#: ldt_utils/views/project.py:123
#, python-format
msgid ""
"the project %(title)s is the front project of %(content)s. please delete "
@@ -1269,36 +1324,36 @@
"the project %(title)s is the front project of %(content)s. please delete "
"this content first."
-#: ldt_utils/views/project.py:126
+#: ldt_utils/views/project.py:127
#, python-format
msgid "please confirm deleting project %(title)s"
msgstr "please confirm deleting project %(title)s"
-#: ldt_utils/views/project.py:127
+#: ldt_utils/views/project.py:128
msgid "confirm deletion"
msgstr "Confirm deletion"
-#: ldt_utils/views/workspace.py:116
+#: ldt_utils/views/workspace.py:118
msgid ""
"The content does not exists or you are not allowed to access this content"
msgstr ""
"The content does not exists or you are not allowed to access this content"
-#: ldt_utils/views/workspace.py:120
+#: ldt_utils/views/workspace.py:122
msgid "Parameters project_id or content_id must be given in the url"
msgstr "Parameters project_id or content_id must be given in the url"
-#: ldt_utils/views/workspace.py:392
+#: ldt_utils/views/workspace.py:438
#, fuzzy
msgid "Annotation not found in the xml"
msgstr "All annotations on the media"
-#: ldt_utils/views/workspace.py:401
+#: ldt_utils/views/workspace.py:449
#, fuzzy
msgid "Annotation not found"
msgstr "All annotations on the media"
-#: ldt_utils/views/workspace.py:403 ldt_utils/views/workspace.py:405
+#: ldt_utils/views/workspace.py:451 ldt_utils/views/workspace.py:453
msgid "Project not found"
msgstr ""
@@ -1560,115 +1615,78 @@
msgid "page_title"
msgstr "LDT Platform"
-#: text/models.py:14
+#: text/models.py:13
msgid "annotation.external_id"
msgstr "external id"
-#: text/models.py:15
+#: text/models.py:14
msgid "annotation.uri"
msgstr "annotation uri"
#: text/models.py:16
-msgid "annotation.tags"
-msgstr "tags"
-
-#: text/models.py:17
msgid "annotation.title"
msgstr "title"
-#: text/models.py:18
+#: text/models.py:17
msgid "annotation.description"
msgstr "description"
-#: text/models.py:19
+#: text/models.py:18
msgid "annotation.text"
msgstr "text"
-#: text/models.py:20
+#: text/models.py:19
msgid "annotation.color"
msgstr "color"
+#: text/models.py:20
+msgid "creator.title"
+msgstr "title"
+
#: text/models.py:21
-msgid "creator.title"
+msgid "contributor.title"
msgstr "title"
#: text/models.py:22
-msgid "contributor.title"
-msgstr "title"
-
-#: text/models.py:23
msgid "annotation.creation_date"
msgstr "creation date"
-#: text/models.py:24
+#: text/models.py:23
msgid "annotation.update_date"
msgstr "update date"
-#: user/admin.py:37
-msgid "User details"
-msgstr "User details"
-
-#: user/admin.py:39
-msgid "Permissions"
-msgstr "Permissions"
-
-#: user/admin.py:50 user/templates/ldt/user/change_profile.html:105
-#: user/templates/ldt/user/login_form.html:62
-msgid "Password"
-msgstr "Password"
-
-#: user/forms.py:27 user/templates/ldt/user/change_password.html:40
-#: user/templates/ldt/user/change_profile.html:118
-msgid "New password"
-msgstr "New password"
+#: user/admin.py:20
+#, fuzzy
+msgid "profile"
+msgstr "Profiles"
-#: user/forms.py:29 user/templates/ldt/user/change_password.html:50
-#: user/templates/ldt/user/change_profile.html:131
-msgid "New password confirmation"
-msgstr "New password confirmation"
-
-#: user/forms.py:58 user/forms.py:59
-msgid "E-mail"
-msgstr "E-mail"
-
-#: user/forms.py:70
-msgid "The two emails didn't match."
-msgstr "The two emails didn't match."
-
-#: user/forms.py:81 user/templates/ldt/user/change_profile.html:54
-msgid "First name"
-msgstr "First name"
-
-#: user/forms.py:82
-msgid "Last name"
-msgstr "Last name"
-
-#: user/forms.py:109 user/templates/ldt/user/change_profile.html:83
+#: user/forms.py:38 user/forms.py:63
+#: user/templates/ldt/user/change_profile.html:83
msgid "Language"
msgstr "Language"
-#: user/forms.py:123
+#: user/forms.py:39 user/forms.py:75
msgid "Profile picture"
msgstr "Profile picture"
-#: user/forms.py:134
+#: user/forms.py:48 user/forms.py:86
#, python-format
msgid "Image size is limited to %s"
msgstr "Image size is limited to %s"
-#: user/views.py:26
+#: user/views.py:25
msgid "Your profile has been updated."
msgstr "Your profile has been updated."
-#: user/views.py:49
+#: user/views.py:48
msgid "Your password has been updated."
msgstr "Your password has been updated."
-#: user/views.py:73
+#: user/views.py:72
msgid "Your profile picture has been updated."
msgstr "Your profile picture has been updated."
-#: user/views.py:95 user/templates/registration/login.html:25
+#: user/views.py:93 user/templates/registration/login.html:25
msgid "Sorry, that's not a valid username or password."
msgstr "Sorry, that's not a valid username or password."
@@ -1676,10 +1694,20 @@
msgid "Old password"
msgstr "Old password"
+#: user/templates/ldt/user/change_password.html:40
+#: user/templates/ldt/user/change_profile.html:118
+msgid "New password"
+msgstr "New password"
+
#: user/templates/ldt/user/change_password.html:44
msgid "passwords don't match"
msgstr "passwords don't match"
+#: user/templates/ldt/user/change_password.html:50
+#: user/templates/ldt/user/change_profile.html:131
+msgid "New password confirmation"
+msgstr "New password confirmation"
+
#: user/templates/ldt/user/change_password.html:57
#: user/templates/ldt/user/change_profile.html:144
#: user/templates/registration/password_change_form.html:14
@@ -1699,38 +1727,47 @@
msgid "Username"
msgstr "Username"
+#: user/templates/ldt/user/change_profile.html:54
+msgid "First name"
+msgstr "First name"
+
#: user/templates/ldt/user/change_profile.html:70
msgid "Email"
msgstr "Email"
+#: user/templates/ldt/user/change_profile.html:105
+#: user/templates/ldt/user/login_form.html:61
+msgid "Password"
+msgstr "Password"
+
#: user/templates/ldt/user/change_profile.html:175
msgid "Profile picture change"
msgstr "Profile picture change"
-#: user/templates/ldt/user/login_form.html:33
+#: user/templates/ldt/user/login_form.html:32
#: user/templates/registration/password_change_done.html:7
#: user/templates/registration/password_change_form.html:13
msgid "Profiles"
msgstr "Profiles"
-#: user/templates/ldt/user/login_form.html:51
+#: user/templates/ldt/user/login_form.html:50
msgid "create account"
msgstr "create account"
-#: user/templates/ldt/user/login_form.html:55
+#: user/templates/ldt/user/login_form.html:54
msgid "Pseudo"
msgstr "Nickname"
-#: user/templates/ldt/user/login_form.html:58
-#: user/templates/ldt/user/login_form.html:65
+#: user/templates/ldt/user/login_form.html:57
+#: user/templates/ldt/user/login_form.html:64
msgid "this field is compulsory"
msgstr "this field is compulsory"
-#: user/templates/ldt/user/login_form.html:69
+#: user/templates/ldt/user/login_form.html:68
msgid "reset password"
msgstr "reset password"
-#: user/templates/ldt/user/login_form.html:72
+#: user/templates/ldt/user/login_form.html:71
msgid "Connection"
msgstr "Connexion"
@@ -1932,8 +1969,32 @@
"We've e-mailed you instructions for activate your account to the e-mail "
"address you submitted. You should be receiving it shortly."
-#~ msgid "Medias annotated by the group"
-#~ msgstr "Medias annotated by the group"
+#~ msgid "Search in the medias title"
+#~ msgstr "Search in the medias title"
+
+#~ msgid "Search results for "
+#~ msgstr "Search results for"
+
+#~ msgid "Cancel upload"
+#~ msgstr "Cancel upload"
+
+#~ msgid "annotation.tags"
+#~ msgstr "tags"
+
+#~ msgid "User details"
+#~ msgstr "User details"
+
+#~ msgid "Permissions"
+#~ msgstr "Permissions"
+
+#~ msgid "E-mail"
+#~ msgstr "E-mail"
+
+#~ msgid "The two emails didn't match."
+#~ msgstr "The two emails didn't match."
+
+#~ msgid "Last name"
+#~ msgstr "Last name"
#~ msgid "Content creation failure"
#~ msgstr "Failed content creation"
Binary file src/ldt/ldt/locale/fr/LC_MESSAGES/django.mo has changed
--- a/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/locale/fr/LC_MESSAGES/django.po Tue Mar 17 17:59:10 2015 +0100
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-01-03 10:41+0000\n"
+"POT-Creation-Date: 2015-03-11 12:18+0000\n"
"PO-Revision-Date: 2010-03-09 15:52+0100\n"
"Last-Translator: Yves-Marie Haussonne <ymh.work@gmail.com>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -32,189 +32,189 @@
msgid "Time"
msgstr "Heure"
-#: ldt_utils/forms.py:32 ldt_utils/templates/front/front_base.html:53
+#: ldt_utils/forms.py:33 ldt_utils/templates/front/front_base.html:53
#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:79
msgid "Search"
msgstr "Recherche"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "all"
msgstr "tous"
-#: ldt_utils/forms.py:33 ldt_utils/models.py:73
+#: ldt_utils/forms.py:34 ldt_utils/models.py:72
#: ldt_utils/templates/ldt/ldt_utils/content_list.html:70
msgid "title"
msgstr "titre"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "resume"
msgstr "description"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "tags"
msgstr "tags"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "Fields"
msgstr "Champs"
-#: ldt_utils/forms.py:34
+#: ldt_utils/forms.py:35
msgid "Display the results in Lignes De Temps"
msgstr "Afficher les résultats dans Lignes De Temps"
-#: ldt_utils/forms.py:36
+#: ldt_utils/forms.py:37
msgid "Content Tag"
msgstr "Catégorie de contenu"
-#: ldt_utils/forms.py:52 ldt_utils/models.py:178
+#: ldt_utils/forms.py:53 ldt_utils/models.py:177
msgid "content.content_creation_date"
msgstr "Date de création du contenu"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "content.media_input_type"
msgstr "Source du média"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "file_upload"
msgstr "upload fichier"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "url"
msgstr "url"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "existing_media"
msgstr "média existant"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "create_media"
msgstr "source externe : fichier streamé, statique, url youtube..."
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "none_media"
msgstr "Aucun"
-#: ldt_utils/forms.py:56
+#: ldt_utils/forms.py:57
msgid "content.front_project"
msgstr "Choisir le front project"
-#: ldt_utils/forms.py:57 ldt_utils/models.py:177
+#: ldt_utils/forms.py:58 ldt_utils/models.py:176
msgid "content.duration"
msgstr "Durée"
-#: ldt_utils/models.py:62
+#: ldt_utils/models.py:61
msgid "media.external_id"
msgstr "id externe"
-#: ldt_utils/models.py:63
+#: ldt_utils/models.py:62
msgid "media.external_permalink"
msgstr "permalien externe"
-#: ldt_utils/models.py:64
+#: ldt_utils/models.py:63
msgid "media.external_publication_url"
msgstr "url de publication externe"
-#: ldt_utils/models.py:65
+#: ldt_utils/models.py:64
msgid "media.external_src_url"
msgstr "url source"
-#: ldt_utils/models.py:66
+#: ldt_utils/models.py:65
msgid "media.creation_date"
msgstr "Date de création"
-#: ldt_utils/models.py:67
+#: ldt_utils/models.py:66
msgid "media.media_creation_date"
msgstr "Date de création du média"
-#: ldt_utils/models.py:68
+#: ldt_utils/models.py:67
msgid "media.update_date"
msgstr "Date de maj"
-#: ldt_utils/models.py:69
+#: ldt_utils/models.py:68
msgid "media.videopath"
msgstr "videopath"
-#: ldt_utils/models.py:70
+#: ldt_utils/models.py:69
msgid "media.duration"
msgstr "Durée du contenu (ms)"
-#: ldt_utils/models.py:71
+#: ldt_utils/models.py:70
msgid "media.creator"
msgstr "Créateur"
-#: ldt_utils/models.py:72
+#: ldt_utils/models.py:71
msgid "description"
msgstr "description"
-#: ldt_utils/models.py:74
+#: ldt_utils/models.py:73
msgid "media.src"
msgstr "Sources"
-#: ldt_utils/models.py:75
+#: ldt_utils/models.py:74
msgid "media.src_hash"
msgstr "Hash de la source"
-#: ldt_utils/models.py:76
+#: ldt_utils/models.py:75
msgid "media.mimetype"
msgstr "mimetype"
-#: ldt_utils/models.py:170
+#: ldt_utils/models.py:169
msgid "content.iri_id"
msgstr "iri id"
-#: ldt_utils/models.py:171
+#: ldt_utils/models.py:170
msgid "content.iriurl"
msgstr "iri url"
-#: ldt_utils/models.py:172
+#: ldt_utils/models.py:171
msgid "content.creation_date"
msgstr "date de création"
-#: ldt_utils/models.py:173
+#: ldt_utils/models.py:172
msgid "content.update_date"
msgstr "Date de maj"
-#: ldt_utils/models.py:174
+#: ldt_utils/models.py:173
msgid "content.title"
msgstr "titre"
-#: ldt_utils/models.py:175
+#: ldt_utils/models.py:174
msgid "content.description"
msgstr "Description"
-#: ldt_utils/models.py:176
+#: ldt_utils/models.py:175
msgid "content.authors"
msgstr "Auteurs"
-#: ldt_utils/models.py:551
+#: ldt_utils/models.py:550
msgid "content_stat.content"
msgstr "statistiques d'annotation"
+#: ldt_utils/models.py:551
+msgid "content_stat.annotations_volume"
+msgstr "Volume d'annotations"
+
#: ldt_utils/models.py:552
-msgid "content_stat.annotations_volume"
+msgid "content_stat.polemics_volume"
msgstr "Volume d'annotations"
#: ldt_utils/models.py:553
-msgid "content_stat.polemics_volume"
-msgstr "Volume d'annotations"
-
-#: ldt_utils/models.py:554
msgid "content.nb_annotation"
msgstr "nombre d'annotations"
-#: ldt_utils/models.py:555
+#: ldt_utils/models.py:554
msgid "content.last_annotated"
msgstr "annoté pour la dernière foiss"
-#: ldt_utils/models.py:615
+#: ldt_utils/models.py:614
msgid "created by"
msgstr "créé par"
-#: ldt_utils/models.py:616
+#: ldt_utils/models.py:615
msgid "changed by"
msgstr "modifié par"
-#: ldt_utils/utils.py:202 ldt_utils/utils.py:385
+#: ldt_utils/utils.py:205 ldt_utils/utils.py:388
msgid "Personal cutting"
msgstr "Découpages personnels"
@@ -227,74 +227,74 @@
msgid "Home"
msgstr "Accueil"
-#: ldt_utils/templates/front/front_all_contents.html:9
+#: ldt_utils/templates/front/front_all_contents.html:10
#, python-format
msgid "Lignes de temps : %(tag_label)s"
msgstr "Lignes de temps : %(tag_label)s"
-#: ldt_utils/templates/front/front_all_contents.html:11
+#: ldt_utils/templates/front/front_all_contents.html:12
msgid "Lignes de temps : all medias"
msgstr "Lignes de temps : tous les médias"
-#: ldt_utils/templates/front/front_all_contents.html:45
-#: ldt_utils/templates/front/front_home.html:39
+#: ldt_utils/templates/front/front_all_contents.html:46
+#: ldt_utils/templates/front/front_home.html:40
msgid "Filter the medias by category"
msgstr "Filtrer les médias par catégorie"
-#: ldt_utils/templates/front/front_all_contents.html:50
#: ldt_utils/templates/front/front_all_contents.html:51
#: ldt_utils/templates/front/front_all_contents.html:52
-#: ldt_utils/templates/front/front_home.html:45
+#: ldt_utils/templates/front/front_all_contents.html:53
+#: ldt_utils/templates/front/front_home.html:46
msgid "All medias"
msgstr "Tous les médias"
-#: ldt_utils/templates/front/front_all_contents.html:55
-#: ldt_utils/templates/front/front_home.html:45
+#: ldt_utils/templates/front/front_all_contents.html:56
+#: ldt_utils/templates/front/front_home.html:46
msgid "Filter the medias"
msgstr "Filtrer les médias"
-#: ldt_utils/templates/front/front_all_contents.html:60
-#: ldt_utils/templates/front/front_all_contents.html:116
-#: ldt_utils/templates/front/front_home.html:50
+#: ldt_utils/templates/front/front_all_contents.html:62
+#: ldt_utils/templates/front/front_all_contents.html:118
+#: ldt_utils/templates/front/front_home.html:52
msgid "All categories of medias"
msgstr "Toutes les catégories de médias"
-#: ldt_utils/templates/front/front_all_contents.html:68
+#: ldt_utils/templates/front/front_all_contents.html:70
#: ldt_utils/templates/front/front_group.html:48
#: ldt_utils/templates/front/front_search_results.html:160
#: ldt_utils/templates/ldt/ldt_utils/search_results.html:105
msgid "previous"
msgstr "Précedent"
-#: ldt_utils/templates/front/front_all_contents.html:86
+#: ldt_utils/templates/front/front_all_contents.html:88
#: ldt_utils/templates/front/front_group.html:66
#: ldt_utils/templates/front/front_search_results.html:180
#: ldt_utils/templates/ldt/ldt_utils/search_results.html:115
msgid "next"
msgstr "Suivant"
-#: ldt_utils/templates/front/front_all_contents.html:89
+#: ldt_utils/templates/front/front_all_contents.html:91
#: ldt_utils/templates/front/front_group.html:69
msgid "All"
msgstr "Tous"
-#: ldt_utils/templates/front/front_all_contents.html:98
-#: ldt_utils/templates/front/front_all_contents.html:111
+#: ldt_utils/templates/front/front_all_contents.html:100
+#: ldt_utils/templates/front/front_all_contents.html:113
#: ldt_utils/templates/front/front_group.html:91
#: ldt_utils/templates/front/front_group.html:93
-#: ldt_utils/templates/front/front_home.html:58
-#: ldt_utils/templates/front/front_home.html:69
-#: ldt_utils/templates/front/front_home.html:86
-#: ldt_utils/templates/front/front_home.html:95
+#: ldt_utils/templates/front/front_home.html:60
+#: ldt_utils/templates/front/front_home.html:71
+#: ldt_utils/templates/front/front_home.html:88
+#: ldt_utils/templates/front/front_home.html:97
#: ldt_utils/templates/front/front_search_results.html:68
#: ldt_utils/templates/front/front_search_results.html:77
msgid "open this media"
msgstr "voir ce média"
-#: ldt_utils/templates/front/front_all_contents.html:110
+#: ldt_utils/templates/front/front_all_contents.html:112
#: ldt_utils/templates/front/front_group.html:92
-#: ldt_utils/templates/front/front_home.html:68
-#: ldt_utils/templates/front/front_home.html:94
+#: ldt_utils/templates/front/front_home.html:70
+#: ldt_utils/templates/front/front_home.html:96
#: ldt_utils/templates/front/front_search_results.html:76
#, python-format
msgid "%(nb)s annotation on this media"
@@ -302,11 +302,11 @@
msgstr[0] "%(nb)s annotation sur ce média"
msgstr[1] "%(nb)s annotations sur ce média"
-#: ldt_utils/templates/front/front_all_contents.html:112
+#: ldt_utils/templates/front/front_all_contents.html:114
#: ldt_utils/templates/front/front_group.html:78
#: ldt_utils/templates/front/front_group.html:94
-#: ldt_utils/templates/front/front_home.html:70
-#: ldt_utils/templates/front/front_home.html:96
+#: ldt_utils/templates/front/front_home.html:72
+#: ldt_utils/templates/front/front_home.html:98
#: ldt_utils/templates/front/front_search_results.html:78
msgid "by"
msgstr "par"
@@ -320,7 +320,7 @@
msgstr "<b>Lignes</b> de temps"
#: ldt_utils/templates/front/front_base.html:60
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:115
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:119
msgid "My projects"
msgstr "Mes projets"
@@ -415,47 +415,48 @@
msgid "See this group"
msgstr "Voir ce groupe"
-#: ldt_utils/templates/front/front_home.html:7
+#: ldt_utils/templates/front/front_home.html:8
msgid "front.home"
msgstr "Plateforme ligne de temps"
-#: ldt_utils/templates/front/front_home.html:43
+#: ldt_utils/templates/front/front_home.html:44
msgid "Last annotated medias"
msgstr "Derniers médias annotés"
-#: ldt_utils/templates/front/front_home.html:45
+#: ldt_utils/templates/front/front_home.html:46
msgid "view all medias"
msgstr "Voir tous les médias"
-#: ldt_utils/templates/front/front_home.html:79
+#: ldt_utils/templates/front/front_home.html:81
msgid "Most annotated medias"
msgstr "Médias les plus annotés"
-#: ldt_utils/templates/front/front_home.html:103
+#: ldt_utils/templates/front/front_home.html:105
msgid "Active groups"
msgstr "Groupes actifs"
-#: ldt_utils/templates/front/front_home.html:108
+#: ldt_utils/templates/front/front_home.html:110
msgid "group picture"
msgstr "image du groupe"
-#: ldt_utils/templates/front/front_home.html:108
-#: ldt_utils/templates/front/front_home.html:112
+#: ldt_utils/templates/front/front_home.html:110
+#: ldt_utils/templates/front/front_home.html:114
msgid "view more infos on this group"
msgstr "Voir plus d'informations sur ce groupe"
-#: ldt_utils/templates/front/front_home.html:111
+#: ldt_utils/templates/front/front_home.html:113
#, python-format
msgid "%(nb)s user in this group"
msgid_plural "%(nb)s users in this group"
msgstr[0] "%(nb)s utilisateur dans ce groupe"
msgstr[1] "%(nb)s utilisateurs dans ce groupe"
-#: ldt_utils/templates/front/front_player.html:52
+#: ldt_utils/templates/front/front_player.html:55
msgid "Afficher/Masquer les annotations"
msgstr ""
-#: ldt_utils/templates/front/front_player.html:62
+#: ldt_utils/templates/front/front_player.html:66
+#: ldt_utils/templates/front/front_player.html:77
msgid "All annotations on the media"
msgstr "Toutes les annotations sur le média"
@@ -464,8 +465,8 @@
#: ldt_utils/templates/ldt/ldt_utils/groups.html:142
#: ldt_utils/templates/ldt/ldt_utils/ldt_list.html:80
#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:96
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:103
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:118
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:107
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:122
#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:133
#: templates/ldt/ldt_base.html:128
msgid "search"
@@ -559,7 +560,7 @@
#: ldt_utils/templates/ldt/ldt_utils/content_list.html:71
#: ldt_utils/templates/ldt/ldt_utils/content_list.html:78
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:29
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:30
msgid "create project"
msgstr "Créer un nouveau projet d'indexation"
@@ -601,7 +602,7 @@
msgstr "Modifier ce contenu"
#: ldt_utils/templates/ldt/ldt_utils/create_content.html:109
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:100
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:104
msgid "Create content"
msgstr "Créer un contenu"
@@ -696,7 +697,7 @@
msgstr "Liste de contenus"
#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:119
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:22
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:23
#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:13
#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:13
msgid "name"
@@ -719,7 +720,7 @@
msgstr "Créer un nouveau projet Ligne de Temps"
#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:25
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:232
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:239
msgid "Show Player"
msgstr "Afficher le Lecteur métadata"
@@ -800,7 +801,7 @@
#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:113
msgid "Basic configuration"
-msgstr "Confirmation de base"
+msgstr "Configuration de base"
#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:114
msgid "Polemic configuration"
@@ -847,15 +848,32 @@
msgid "Write your tags separeted by a comma"
msgstr "Ecrire la liste des tags séparés par une virgule"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:144
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:141
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:142
+msgid "4 polemics buttons"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:142
+#, fuzzy
+msgid "Displays or removes the 4 polemics buttons"
+msgstr "Afficher dans la timeline polemic : "
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:147
msgid "Displays segments of a media as rectangles on an horizontal line"
msgstr "Affiche le chapitrage du média, en horizontal"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:147
-msgid "Show a list of annotations"
-msgstr "Affiche une liste d’annotations "
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:150
+msgid ""
+"Displays every segment of a media as rectangles on multiple horizontal lines"
+msgstr ""
+"Affiche toutes les lignes de temps du projet avec leur segmentation, en "
+"horifzontal"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:151
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:153
+msgid "Show a list of all annotations accross every project for this content"
+msgstr "Affiche la liste de toutes les annotations (tous projets confondus) sur ce contenu"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:157
msgid ""
"Shows the polemical timeline, i.e. tweets colored according to the polemical "
"syntax"
@@ -863,65 +881,65 @@
"Affiche la timeline polémique, c’est à dire les tweets colorés en fonction "
"de la syntaxe polémique "
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:154
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:160
msgid "Display in the polemic timeline : "
msgstr "Afficher dans la timeline polemic : "
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:155
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:161
msgid "only tweets"
msgstr "seulement les annotations de type tweet"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:156
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:162
msgid "all annotations"
msgstr "toutes les annotations"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:158
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:164
msgid "Personalize tweet's color"
msgstr "Personnaliser les couleurs des tweets"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:163
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:169
msgid "Default color"
msgstr "Couleur des tweets sans annotation polémique : "
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:167
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:173
msgid "Polemic's color : ++ : "
msgstr "Couleur des tweets polémiques de type : ++ : "
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:177
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:183
msgid "Found color"
msgstr "Couleur d'affichage des tweets lors d'une recherche : "
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:185
-msgid "Displays a curve showing the volume of tweets across time"
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:191
+msgid "Displays a curve showing the project annotation volume across time"
msgstr ""
-"Affiche une courbe indiquant l’évolution du volume d’annotations au cours du "
+"Affiche une courbe indiquant l’évolution du volume d’annotations du projet au cours du "
"temps"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:189
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:195
msgid "personalize sparkline's color"
msgstr "Personnaliser les couleurs de la courbe"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:193
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:199
msgid "line color"
msgstr "Couleur de la courbe : "
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:198
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:204
msgid "fill color"
msgstr "Couleur sous la courbe : "
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:205
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:211
msgid "Displays a div in order to watch the slides displayed in the media"
msgstr "Permet d'afficher les slides d'un média"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:209
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:215
msgid " Adds buttons to share an URL on social networks"
msgstr "Affiche des boutons pour partager une URL sur les réseaux sociaux"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:216
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:222
msgid "share with email"
msgstr "Partager par email"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:220
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:226
msgid ""
" Displays information relative to a single segment/annotation while it is "
"being played"
@@ -929,14 +947,18 @@
"Affiche les informations relatives à une annotation au moment où celle-ci "
"est jouée"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:223
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:229
msgid "Show the contents on a tweet when clicked (in Polemic Widget)"
msgstr "Affiche furtivement le contenu d’un tweet "
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:226
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:232
msgid "Shows a tag cloud"
msgstr "Affiche un nuage de mots-clés "
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:234
+msgid "Concatenate all projects using this content"
+msgstr "Agréger tous les projets utilisant ce contenu"
+
#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:21
#: ldt_utils/templates/ldt/ldt_utils/error_confirm_popup.html:34
#: ldt_utils/templates/ldt/ldt_utils/reset_confirm.html:22
@@ -999,7 +1021,7 @@
msgstr "Projets publiés"
#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:94
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:116
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:120
msgid "Create project"
msgstr "Créer un nouveau projet d'indexation"
@@ -1048,19 +1070,19 @@
msgid "Page %(number)s of %(num_pages)s"
msgstr "Page %(number)s de %(num_pages)s"
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:99
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:103
msgid "content list"
msgstr "Liste des contenus"
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:7
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:8
msgid "All categories"
msgstr "Toutes les catégories"
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:30
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:31
msgid "preview media"
msgstr "Aperçu"
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:32
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:33
msgid "You can't edit this content"
msgstr "Vous n'avez pas l'autorisation d'éditer ce contenu"
@@ -1191,55 +1213,55 @@
msgid "Problem when uploading file : "
msgstr "Problème lors de l'upload du fichier : "
-#: ldt_utils/views/content.py:340
+#: ldt_utils/views/content.py:358
#, python-format
msgid "There is %(count)d error when deleting content"
msgid_plural "There are %(count)d errors when deleting content"
msgstr[0] "Il y a %(count)d erreur lors de l'effacement du contenu"
msgstr[1] "Il y a %(count)d erreurs lors de l'effacement du contenu"
-#: ldt_utils/views/content.py:341
+#: ldt_utils/views/content.py:359
msgid "title error deleting content"
msgstr "Erreur lors de l'effacement du contenu"
-#: ldt_utils/views/content.py:346
+#: ldt_utils/views/content.py:364
#, python-format
msgid "Confirm delete content %(titles)s"
msgstr "Veuillez confirmer l'effacement du contenu %(titles)s"
-#: ldt_utils/views/content.py:347
+#: ldt_utils/views/content.py:365
msgid "confirm delete content"
msgstr "Confirmation effacement contenu"
-#: ldt_utils/views/content.py:358
+#: ldt_utils/views/content.py:376
#, python-format
msgid "Please unpublish the front project %(title)s"
msgstr "Veuillez dépublier le projet : %(title)s"
-#: ldt_utils/views/content.py:359
+#: ldt_utils/views/content.py:377
msgid "The front project is published"
msgstr "Projet publié"
-#: ldt_utils/views/content.py:360 ldt_utils/views/content.py:363
+#: ldt_utils/views/content.py:378 ldt_utils/views/content.py:381
#: ldt_utils/views/project.py:139
msgid "confirm reset"
msgstr "Confirmer la réinitialisation"
-#: ldt_utils/views/content.py:362 ldt_utils/views/project.py:138
+#: ldt_utils/views/content.py:380 ldt_utils/views/project.py:138
#, python-format
msgid "please confirm reseting project %(title)s"
msgstr "Veuillez confirmer la réinitialisation du projet %(title)s"
-#: ldt_utils/views/content.py:389
+#: ldt_utils/views/content.py:407
msgid "An error occurred - Please try again or contact webmaster"
msgstr ""
"Une erreur est apparue - Merci de réessayer ou de contacter le webmaster"
-#: ldt_utils/views/content.py:390
+#: ldt_utils/views/content.py:408
msgid "Error"
msgstr "Erreur"
-#: ldt_utils/views/content.py:435
+#: ldt_utils/views/content.py:453
#, python-format
msgid ""
"Content '%(title)s' is referenced by this project : %(project_titles)s. "
@@ -1250,7 +1272,7 @@
msgstr[0] ""
msgstr[1] ""
-#: ldt_utils/views/content.py:438
+#: ldt_utils/views/content.py:456
#, python-format
msgid ""
"The project '%(project_title)s' pointing on the content '%(title)s' has "
@@ -1299,25 +1321,25 @@
msgid "confirm deletion"
msgstr "Confirmation effacement contenu"
-#: ldt_utils/views/workspace.py:121
+#: ldt_utils/views/workspace.py:118
msgid ""
"The content does not exists or you are not allowed to access this content"
msgstr "Le contenu n'existe pas ou bien vous n'êtes pas autorisé à y accéder"
-#: ldt_utils/views/workspace.py:125
+#: ldt_utils/views/workspace.py:122
msgid "Parameters project_id or content_id must be given in the url"
msgstr ""
"Les paramètres project_id ou content_id doivent être indiqués dans l'url"
-#: ldt_utils/views/workspace.py:417
+#: ldt_utils/views/workspace.py:438
msgid "Annotation not found in the xml"
msgstr "Annotation non trouvée dans le xml"
-#: ldt_utils/views/workspace.py:428
+#: ldt_utils/views/workspace.py:449
msgid "Annotation not found"
msgstr "Annotation non trouvée"
-#: ldt_utils/views/workspace.py:430 ldt_utils/views/workspace.py:432
+#: ldt_utils/views/workspace.py:451 ldt_utils/views/workspace.py:453
msgid "Project not found"
msgstr "Projet non trouvé"
@@ -1576,47 +1598,43 @@
msgid "page_title"
msgstr "Plateforme Ldt"
-#: text/models.py:14
+#: text/models.py:13
msgid "annotation.external_id"
msgstr "id externe"
-#: text/models.py:15
+#: text/models.py:14
msgid "annotation.uri"
msgstr "uri"
#: text/models.py:16
-msgid "annotation.tags"
-msgstr "tags"
-
-#: text/models.py:17
msgid "annotation.title"
msgstr "titre"
-#: text/models.py:18
+#: text/models.py:17
msgid "annotation.description"
msgstr "description"
-#: text/models.py:19
+#: text/models.py:18
msgid "annotation.text"
msgstr "texte"
-#: text/models.py:20
+#: text/models.py:19
msgid "annotation.color"
msgstr "couleur"
+#: text/models.py:20
+msgid "creator.title"
+msgstr "titre"
+
#: text/models.py:21
-msgid "creator.title"
+msgid "contributor.title"
msgstr "titre"
#: text/models.py:22
-msgid "contributor.title"
-msgstr "titre"
-
-#: text/models.py:23
msgid "annotation.creation_date"
msgstr "date de création"
-#: text/models.py:24
+#: text/models.py:23
msgid "annotation.update_date"
msgstr "Date de maj"
@@ -1939,6 +1957,9 @@
"Nous vous avons envoyé par courriel les instructions pour activer le compte "
"à l'adresse que vous avez indiquée. Vous devriez le recevoir rapidement."
+#~ msgid "annotation.tags"
+#~ msgstr "tags"
+
#~ msgid "Search in the medias title"
#~ msgstr "Chercher dans le titre des médias"
Binary file src/ldt/ldt/locale/ja/LC_MESSAGES/django.mo has changed
--- a/src/ldt/ldt/locale/ja/LC_MESSAGES/django.po Wed Mar 11 12:02:26 2015 +0100
+++ b/src/ldt/ldt/locale/ja/LC_MESSAGES/django.po Tue Mar 17 17:59:10 2015 +0100
@@ -7,7 +7,7 @@
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2012-10-15 23:51+0200\n"
+"POT-Creation-Date: 2015-03-11 12:18+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,201 +17,207 @@
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0\n"
-#: forms/fields.py:17
-msgid "Enter a valid duration format"
+#: forms/fields.py:20
+#, fuzzy
+msgid "The duration field can not be empty."
+msgstr "検索フィールドを空にすることはできません。"
+
+#: forms/fields.py:21
+#, fuzzy
+msgid "Enter a valid duration format;"
msgstr "Enter a valid duration format"
-#: forms/widgets.py:21
+#: forms/widgets.py:17
msgid "Date"
msgstr "日付"
-#: forms/widgets.py:21
+#: forms/widgets.py:17
msgid "Time"
msgstr "時日"
-#: ldt_utils/forms.py:32 ldt_utils/templates/front/front_base.html:52
-#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:53
+#: ldt_utils/forms.py:33 ldt_utils/templates/front/front_base.html:53
+#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:79
msgid "Search"
msgstr "検索"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "all"
msgstr "万事"
-#: ldt_utils/forms.py:33 ldt_utils/models.py:58
-#: ldt_utils/templates/ldt/ldt_utils/content_list.html:69
+#: ldt_utils/forms.py:34 ldt_utils/models.py:72
+#: ldt_utils/templates/ldt/ldt_utils/content_list.html:70
msgid "title"
msgstr "題名"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "resume"
msgstr "記述部"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "tags"
msgstr "タグ"
-#: ldt_utils/forms.py:33
+#: ldt_utils/forms.py:34
msgid "Fields"
msgstr "欄"
-#: ldt_utils/forms.py:34
+#: ldt_utils/forms.py:35
msgid "Display the results in Lignes De Temps"
msgstr "Display the results in Lignes De Temps"
-#: ldt_utils/forms.py:36
+#: ldt_utils/forms.py:37
msgid "Content Tag"
msgstr "Content Tag"
-#: ldt_utils/forms.py:52 ldt_utils/models.py:160
+#: ldt_utils/forms.py:53 ldt_utils/models.py:177
msgid "content.content_creation_date"
msgstr "作成日"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "content.media_input_type"
msgstr "media type"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "file_upload"
msgstr "アップロードを提出"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "url"
msgstr "URL"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "existing_media"
msgstr "既存のメディア"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "create_media"
msgstr "メディアを作成する"
-#: ldt_utils/forms.py:53
+#: ldt_utils/forms.py:54
msgid "none_media"
msgstr "なし"
-#: ldt_utils/forms.py:56
+#: ldt_utils/forms.py:57
msgid "content.front_project"
msgstr "主なプロジェクト"
-#: ldt_utils/forms.py:57 ldt_utils/models.py:159
+#: ldt_utils/forms.py:58 ldt_utils/models.py:176
msgid "content.duration"
msgstr "ビデオ再生時間"
-#: ldt_utils/models.py:47
+#: ldt_utils/models.py:61
msgid "media.external_id"
msgstr "external id"
-#: ldt_utils/models.py:48
+#: ldt_utils/models.py:62
msgid "media.external_permalink"
msgstr "external permalink"
-#: ldt_utils/models.py:49
+#: ldt_utils/models.py:63
msgid "media.external_publication_url"
msgstr "external publication URL"
-#: ldt_utils/models.py:50
+#: ldt_utils/models.py:64
msgid "media.external_src_url"
msgstr "external source URL"
-#: ldt_utils/models.py:51
+#: ldt_utils/models.py:65
msgid "media.creation_date"
msgstr "作成日"
-#: ldt_utils/models.py:52
+#: ldt_utils/models.py:66
msgid "media.media_creation_date"
msgstr "メディアの作成日"
-#: ldt_utils/models.py:53
+#: ldt_utils/models.py:67
msgid "media.update_date"
msgstr "日付を更新"
-#: ldt_utils/models.py:54
+#: ldt_utils/models.py:68
msgid "media.videopath"
msgstr "videopath"
-#: ldt_utils/models.py:55
+#: ldt_utils/models.py:69
msgid "media.duration"
msgstr "ビデオ再生時間"
-#: ldt_utils/models.py:56
+#: ldt_utils/models.py:70
msgid "media.creator"
msgstr "クリエータ"
-#: ldt_utils/models.py:57
+#: ldt_utils/models.py:71
msgid "description"
msgstr "記述部"
-#: ldt_utils/models.py:59
+#: ldt_utils/models.py:73
msgid "media.src"
msgstr "source"
-#: ldt_utils/models.py:61
+#: ldt_utils/models.py:74
msgid "media.src_hash"
msgstr "source hash"
-#: ldt_utils/models.py:62
+#: ldt_utils/models.py:75
msgid "media.mimetype"
msgstr "MIMEタイプ"
-#: ldt_utils/models.py:152
+#: ldt_utils/models.py:169
msgid "content.iri_id"
msgstr "IRI id"
-#: ldt_utils/models.py:153
+#: ldt_utils/models.py:170
msgid "content.iriurl"
msgstr "IRI URL"
-#: ldt_utils/models.py:154
+#: ldt_utils/models.py:171
msgid "content.creation_date"
msgstr "作成日"
-#: ldt_utils/models.py:155
+#: ldt_utils/models.py:172
msgid "content.update_date"
msgstr "日付を更新"
-#: ldt_utils/models.py:156
+#: ldt_utils/models.py:173
msgid "content.title"
msgstr "題名"
-#: ldt_utils/models.py:157
+#: ldt_utils/models.py:174
msgid "content.description"
msgstr "記述部"
-#: ldt_utils/models.py:158
+#: ldt_utils/models.py:175
msgid "content.authors"
msgstr "著者ら"
-#: ldt_utils/models.py:526
+#: ldt_utils/models.py:550
msgid "content_stat.content"
msgstr "content"
-#: ldt_utils/models.py:527
+#: ldt_utils/models.py:551
msgid "content_stat.annotations_volume"
msgstr "annotation volume"
-#: ldt_utils/models.py:528
+#: ldt_utils/models.py:552
msgid "content_stat.polemics_volume"
msgstr "polemics volume"
-#: ldt_utils/models.py:529
+#: ldt_utils/models.py:553
msgid "content.nb_annotation"
msgstr "注解の数"
-#: ldt_utils/models.py:530
+#: ldt_utils/models.py:554
msgid "content.last_annotated"
msgstr "last annotated"
-#: ldt_utils/models.py:585
+#: ldt_utils/models.py:614
msgid "created by"
msgstr "によって作成された"
-#: ldt_utils/models.py:586
+#: ldt_utils/models.py:615
msgid "changed by"
msgstr "によって変更"
-#: ldt_utils/utils.py:203 ldt_utils/utils.py:386
+#: ldt_utils/utils.py:205 ldt_utils/utils.py:388
msgid "Personal cutting"
msgstr "個人カット"
@@ -224,202 +230,258 @@
msgid "Home"
msgstr "ホームページ"
-#: ldt_utils/templates/front/front_all_contents.html:8
+#: ldt_utils/templates/front/front_all_contents.html:10
#, python-format
msgid "Lignes de temps : %(tag_label)s"
msgstr "Lignes de temps : %(tag_label)s"
-#: ldt_utils/templates/front/front_all_contents.html:10
+#: ldt_utils/templates/front/front_all_contents.html:12
msgid "Lignes de temps : all medias"
msgstr "Lignes de temps : すべてのメディア"
-#: ldt_utils/templates/front/front_all_contents.html:44
-#: ldt_utils/templates/front/front_home.html:39
+#: ldt_utils/templates/front/front_all_contents.html:46
+#: ldt_utils/templates/front/front_home.html:40
msgid "Filter the medias by category"
msgstr "Filter the medias by category"
-#: ldt_utils/templates/front/front_all_contents.html:49
-#: ldt_utils/templates/front/front_all_contents.html:50
#: ldt_utils/templates/front/front_all_contents.html:51
-#: ldt_utils/templates/front/front_home.html:45
+#: ldt_utils/templates/front/front_all_contents.html:52
+#: ldt_utils/templates/front/front_all_contents.html:53
+#: ldt_utils/templates/front/front_home.html:46
msgid "All medias"
msgstr "すべてのメディア"
-#: ldt_utils/templates/front/front_all_contents.html:54
-#: ldt_utils/templates/front/front_home.html:45
+#: ldt_utils/templates/front/front_all_contents.html:56
+#: ldt_utils/templates/front/front_home.html:46
msgid "Filter the medias"
msgstr "漉すメディア"
-#: ldt_utils/templates/front/front_all_contents.html:60
-#: ldt_utils/templates/front/front_home.html:51
-msgid "Search in the medias title"
-msgstr "Search in the media title"
-
-#: ldt_utils/templates/front/front_all_contents.html:63
-#: ldt_utils/templates/front/front_all_contents.html:119
-#: ldt_utils/templates/front/front_home.html:54
+#: ldt_utils/templates/front/front_all_contents.html:62
+#: ldt_utils/templates/front/front_all_contents.html:118
+#: ldt_utils/templates/front/front_home.html:52
msgid "All categories of medias"
msgstr "All categories of medias"
-#: ldt_utils/templates/front/front_all_contents.html:71
-#: ldt_utils/templates/front/front_search_results.html:136
-#: ldt_utils/templates/ldt/ldt_utils/search_results.html:101
+#: ldt_utils/templates/front/front_all_contents.html:70
+#: ldt_utils/templates/front/front_group.html:48
+#: ldt_utils/templates/front/front_search_results.html:160
+#: ldt_utils/templates/ldt/ldt_utils/search_results.html:105
msgid "previous"
msgstr "アンカー"
-#: ldt_utils/templates/front/front_all_contents.html:89
-#: ldt_utils/templates/front/front_search_results.html:156
-#: ldt_utils/templates/ldt/ldt_utils/search_results.html:111
+#: ldt_utils/templates/front/front_all_contents.html:88
+#: ldt_utils/templates/front/front_group.html:66
+#: ldt_utils/templates/front/front_search_results.html:180
+#: ldt_utils/templates/ldt/ldt_utils/search_results.html:115
msgid "next"
msgstr "次の"
-#: ldt_utils/templates/front/front_all_contents.html:92
+#: ldt_utils/templates/front/front_all_contents.html:91
+#: ldt_utils/templates/front/front_group.html:69
msgid "All"
msgstr "全部の"
-#: ldt_utils/templates/front/front_all_contents.html:101
-#: ldt_utils/templates/front/front_all_contents.html:114
-#: ldt_utils/templates/front/front_group.html:26
-#: ldt_utils/templates/front/front_group.html:28
-#: ldt_utils/templates/front/front_home.html:62
-#: ldt_utils/templates/front/front_home.html:73
-#: ldt_utils/templates/front/front_home.html:90
-#: ldt_utils/templates/front/front_home.html:99
+#: ldt_utils/templates/front/front_all_contents.html:100
+#: ldt_utils/templates/front/front_all_contents.html:113
+#: ldt_utils/templates/front/front_group.html:91
+#: ldt_utils/templates/front/front_group.html:93
+#: ldt_utils/templates/front/front_home.html:60
+#: ldt_utils/templates/front/front_home.html:71
+#: ldt_utils/templates/front/front_home.html:88
+#: ldt_utils/templates/front/front_home.html:97
+#: ldt_utils/templates/front/front_search_results.html:68
+#: ldt_utils/templates/front/front_search_results.html:77
msgid "open this media"
msgstr "このメディアを開く"
-#: ldt_utils/templates/front/front_all_contents.html:113
-#: ldt_utils/templates/front/front_group.html:27
-#: ldt_utils/templates/front/front_home.html:72
-#: ldt_utils/templates/front/front_home.html:98
+#: ldt_utils/templates/front/front_all_contents.html:112
+#: ldt_utils/templates/front/front_group.html:92
+#: ldt_utils/templates/front/front_home.html:70
+#: ldt_utils/templates/front/front_home.html:96
+#: ldt_utils/templates/front/front_search_results.html:76
#, python-format
msgid "%(nb)s annotation on this media"
msgid_plural "%(nb)s annotations on this media"
msgstr[0] "このメディア上の%(nb)s注釈"
msgstr[1] "このメディア上の%(nb)s注釈"
-#: ldt_utils/templates/front/front_all_contents.html:115
-#: ldt_utils/templates/front/front_group.html:29
-#: ldt_utils/templates/front/front_home.html:74
-#: ldt_utils/templates/front/front_home.html:100
+#: ldt_utils/templates/front/front_all_contents.html:114
+#: ldt_utils/templates/front/front_group.html:78
+#: ldt_utils/templates/front/front_group.html:94
+#: ldt_utils/templates/front/front_home.html:72
+#: ldt_utils/templates/front/front_home.html:98
+#: ldt_utils/templates/front/front_search_results.html:78
msgid "by"
msgstr "バイ"
-#: ldt_utils/templates/front/front_base.html:44
+#: ldt_utils/templates/front/front_base.html:45
msgid "homepage"
msgstr "ホームページ"
-#: ldt_utils/templates/front/front_base.html:44
+#: ldt_utils/templates/front/front_base.html:45
msgid "<b>Lignes</b> de temps"
msgstr "<b>Lignes</b> de temps"
-#: ldt_utils/templates/front/front_base.html:59
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:68
+#: ldt_utils/templates/front/front_base.html:60
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:119
msgid "My projects"
msgstr "私のプロジェクト"
-#: ldt_utils/templates/front/front_base.html:62
-#: ldt_utils/templates/front/front_player.html:5
+#: ldt_utils/templates/front/front_base.html:63
+#: ldt_utils/templates/front/front_player.html:6
msgid "Annotate"
msgstr "注釈を付ける"
-#: ldt_utils/templates/front/front_base.html:69
+#: ldt_utils/templates/front/front_base.html:70
#: templates/cms/admin/cms/page/change_form.html:11
-#: templates/ldt/ldt_base.html:97 user/templates/ldt/user/login_form.html:34
+#: templates/ldt/ldt_base.html:98 user/templates/ldt/user/login_form.html:34
msgid "Log out"
msgstr "ログアウト"
-#: ldt_utils/templates/front/front_base.html:71
+#: ldt_utils/templates/front/front_base.html:72
#: templates/admin/page_login.html:32
#: user/templates/ldt/user/login_form.html:37
#: user/templates/ldt/user/login_form.html:45
-#: user/templates/registration/login.html:21
+#: user/templates/registration/login.html:22
#: user/templates/registration/password_reset_complete.html:14
msgid "Log in"
msgstr "ログイン"
-#: ldt_utils/templates/front/front_base.html:80
+#: ldt_utils/templates/front/front_base.html:81
#, python-format
msgid "%(WEB_VERSION)s | %(VERSION)s"
msgstr "%(WEB_VERSION)s | %(VERSION)s"
-#: ldt_utils/templates/front/front_base.html:83
+#: ldt_utils/templates/front/front_base.html:84
msgid "link IRI"
msgstr "リンク IRI"
-#: ldt_utils/templates/front/front_base.html:83
+#: ldt_utils/templates/front/front_base.html:84
msgid "about"
msgstr "約"
-#: ldt_utils/templates/front/front_group.html:22
+#: ldt_utils/templates/front/front_group.html:35
+#, fuzzy
+msgid "Projects shared by the group"
+msgstr "Projects shared with me only"
+
+#: ldt_utils/templates/front/front_group.html:36
+#: templates/admin/cms_change_list.html:110
+#: templates/admin/page_change_list.html:65
+msgid "Filter"
+msgstr "フィルタ"
+
+#: ldt_utils/templates/front/front_group.html:40
+#, fuzzy
+msgid "Search in the projects title"
+msgstr "Search in the media title"
+
+#: ldt_utils/templates/front/front_group.html:76
+#: ldt_utils/templates/front/front_group.html:77
+#, fuzzy
+msgid "open this project"
+msgstr "プロジェクトをコピーする"
+
+#: ldt_utils/templates/front/front_group.html:83
+#: ldt_utils/templates/front/front_group.html:118
+#, fuzzy
+msgid "See all the group's medias"
+msgstr "See for all medias"
+
+#: ldt_utils/templates/front/front_group.html:87
msgid "Medias annotated by the group"
msgstr "グループによる注釈付きメディア"
-#: ldt_utils/templates/front/front_group.html:38
+#: ldt_utils/templates/front/front_group.html:98
+#: ldt_utils/templates/front/front_group.html:120
+#, fuzzy
+msgid "See all the group's projects"
+msgstr "The group's projects"
+
+#: ldt_utils/templates/front/front_group.html:102
+msgid "Back to the group list"
+msgstr ""
+
+#: ldt_utils/templates/front/front_group.html:110
msgid "About the group"
msgstr "グループについて"
-#: ldt_utils/templates/front/front_group.html:47
+#: ldt_utils/templates/front/front_group.html:125
msgid "Members"
msgstr "メンバー"
-#: ldt_utils/templates/front/front_group.html:54
+#: ldt_utils/templates/front/front_group.html:132
msgid "active since"
msgstr "以来、積極的な"
-#: ldt_utils/templates/front/front_home.html:7
+#: ldt_utils/templates/front/front_groups.html:22
+msgid "Groups"
+msgstr "グループ"
+
+#: ldt_utils/templates/front/front_groups.html:26
+#: ldt_utils/templates/front/front_groups.html:27
+#, fuzzy
+msgid "See this group"
+msgstr "Change this group"
+
+#: ldt_utils/templates/front/front_home.html:8
msgid "front.home"
msgstr "ホームページ"
-#: ldt_utils/templates/front/front_home.html:43
+#: ldt_utils/templates/front/front_home.html:44
msgid "Last annotated medias"
msgstr "Last annotated medias"
-#: ldt_utils/templates/front/front_home.html:45
+#: ldt_utils/templates/front/front_home.html:46
msgid "view all medias"
msgstr "すべてのメディアを表示"
-#: ldt_utils/templates/front/front_home.html:83
+#: ldt_utils/templates/front/front_home.html:81
msgid "Most annotated medias"
msgstr "Most annotated medias"
-#: ldt_utils/templates/front/front_home.html:107
+#: ldt_utils/templates/front/front_home.html:105
msgid "Active groups"
msgstr "アクティブグループ"
-#: ldt_utils/templates/front/front_home.html:112
+#: ldt_utils/templates/front/front_home.html:110
msgid "group picture"
msgstr "グループの画像"
-#: ldt_utils/templates/front/front_home.html:112
-#: ldt_utils/templates/front/front_home.html:116
+#: ldt_utils/templates/front/front_home.html:110
+#: ldt_utils/templates/front/front_home.html:114
msgid "view more infos on this group"
msgstr "view more infos on this group"
-#: ldt_utils/templates/front/front_home.html:115
+#: ldt_utils/templates/front/front_home.html:113
#, python-format
msgid "%(nb)s user in this group"
msgid_plural "%(nb)s users in this group"
msgstr[0] "%(nb)s user in this group"
msgstr[1] "%(nb)s users in this group"
-#: ldt_utils/templates/front/front_player.html:48
+#: ldt_utils/templates/front/front_player.html:55
+msgid "Afficher/Masquer les annotations"
+msgstr ""
+
+#: ldt_utils/templates/front/front_player.html:66
+#: ldt_utils/templates/front/front_player.html:77
msgid "All annotations on the media"
msgstr "All annotations on the media"
-#: ldt_utils/templates/front/front_search_results.html:6
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:101
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:113
+#: ldt_utils/templates/front/front_search_results.html:7
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:130
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:142
#: ldt_utils/templates/ldt/ldt_utils/ldt_list.html:80
-#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:70
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:56
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:71
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:129
-#: templates/ldt/ldt_base.html:127
+#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:96
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:107
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:122
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:133
+#: templates/ldt/ldt_base.html:128
msgid "search"
msgstr "検索"
-#: ldt_utils/templates/front/front_search_results.html:54
+#: ldt_utils/templates/front/front_search_results.html:55
#, python-format
msgid ""
" No results for <b>%(search)s</b> with the medias tagged <span class=\"pink"
@@ -428,74 +490,88 @@
" No results for <b>%(search)s</b> with the medias tagged <span class=\"pink"
"\">%(tag_label)s</span>"
-#: ldt_utils/templates/front/front_search_results.html:55
+#: ldt_utils/templates/front/front_search_results.html:56
msgid "See for all medias"
msgstr "See for all medias"
-#: ldt_utils/templates/front/front_search_results.html:57
+#: ldt_utils/templates/front/front_search_results.html:58
#: ldt_utils/templates/ldt/ldt_utils/search_results.html:59
#, python-format
msgid " No results for <b>%(search)s</b>."
msgstr " No results for <b>%(search)s</b>."
-#: ldt_utils/templates/front/front_search_results.html:72
-#: ldt_utils/templates/front/front_search_results.html:74
-msgid "Search results for "
-msgstr "Search results for "
+#: ldt_utils/templates/front/front_search_results.html:63
+#, fuzzy
+msgid "Results in medias for"
+msgstr "Results for "
-#: ldt_utils/templates/front/front_search_results.html:79
+#: ldt_utils/templates/front/front_search_results.html:63
+#, fuzzy
+msgid "See all medias"
+msgstr "See for all medias"
+
+#: ldt_utils/templates/front/front_search_results.html:95
+#: ldt_utils/templates/front/front_search_results.html:97
+msgid "Results in annotations for"
+msgstr ""
+
+#: ldt_utils/templates/front/front_search_results.html:102
#: ldt_utils/templates/ldt/ldt_utils/search_results.html:62
msgid "Result"
msgstr "検索結果"
-#: ldt_utils/templates/front/front_search_results.html:98
+#: ldt_utils/templates/front/front_search_results.html:103
+msgid "Segment"
+msgstr ""
+
+#: ldt_utils/templates/front/front_search_results.html:122
msgid "annotation distribution"
msgstr "annotation distribution"
-#: ldt_utils/templates/front/front_search_results.html:112
-#: ldt_utils/templates/front/front_search_results.html:117
+#: ldt_utils/templates/front/front_search_results.html:136
+#: ldt_utils/templates/front/front_search_results.html:141
msgid "view this annotation in the player"
msgstr "view this annotation in the player"
-#: ldt_utils/templates/front/front_search_results.html:113
-#: ldt_utils/templates/front/front_search_results.html:118
-#: ldt_utils/templates/ldt/ldt_utils/search_results.html:80
+#: ldt_utils/templates/front/front_search_results.html:137
+#: ldt_utils/templates/front/front_search_results.html:142
+#: ldt_utils/templates/ldt/ldt_utils/search_results.html:84
msgid "No title"
msgstr "タイトルなし"
-#: ldt_utils/templates/front/front_search_results.html:114
+#: ldt_utils/templates/front/front_search_results.html:138
msgid "Begin"
msgstr "初め"
-#: ldt_utils/templates/front/front_search_results.html:114
+#: ldt_utils/templates/front/front_search_results.html:138
msgid "duration"
msgstr "ビデオ再生時間"
-#: ldt_utils/templates/ldt/ldt_utils/content_list.html:55
+#: ldt_utils/templates/ldt/ldt_utils/content_list.html:56
#: templates/admin/page_base.html:19
#: user/templates/ldt/user/login_form.html:33
msgid "Space"
msgstr "パソ作業域"
-#: ldt_utils/templates/ldt/ldt_utils/content_list.html:56
+#: ldt_utils/templates/ldt/ldt_utils/content_list.html:57
msgid "Ldt Project"
msgstr "LDT Project"
-#: ldt_utils/templates/ldt/ldt_utils/content_list.html:59
+#: ldt_utils/templates/ldt/ldt_utils/content_list.html:60
msgid "Contents"
msgstr "Contents"
-#: ldt_utils/templates/ldt/ldt_utils/content_list.html:63
+#: ldt_utils/templates/ldt/ldt_utils/content_list.html:64
msgid "Create new content"
msgstr "新しいコンテントを作成する"
-#: ldt_utils/templates/ldt/ldt_utils/content_list.html:66
+#: ldt_utils/templates/ldt/ldt_utils/content_list.html:67
msgid "Content"
msgstr "コンテント"
-#: ldt_utils/templates/ldt/ldt_utils/content_list.html:70
-#: ldt_utils/templates/ldt/ldt_utils/content_list.html:77
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:28
+#: ldt_utils/templates/ldt/ldt_utils/content_list.html:71
+#: ldt_utils/templates/ldt/ldt_utils/content_list.html:78
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:30
msgid "create project"
msgstr "プロジェクトを作成する"
@@ -504,7 +580,7 @@
msgstr "あなたのプロジェクトをコピーする"
#: ldt_utils/templates/ldt/ldt_utils/copy_ldt.html:17
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:96
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:95
msgid "Title"
msgstr "題名"
@@ -512,23 +588,19 @@
msgid "Copy"
msgstr "複写"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:33
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:31
msgid "Browse"
msgstr "バロース"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:34
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:32
msgid "File uploaded"
msgstr "アップロードするファイル"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:35
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:33
msgid "Please wait, the upload is not finished yet"
msgstr "Please wait, the upload is not finished yet"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:36
-msgid "Cancel upload"
-msgstr "アップロードをキャンセル"
-
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:71
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:92
msgid ""
"The operation could not be performed because one or more error(s) occurred."
"<br />Please resubmit the media form after making the following changes:"
@@ -536,29 +608,34 @@
"The operation could not be performed because one or more error(s) occurred."
"<br />Please resubmit the media form after making the following changes:"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:85
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:53
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:107
+#, fuzzy
+msgid "Modify this content"
+msgstr "You can't edit this content"
+
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:109
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:104
msgid "Create content"
msgstr "コンテンツを作成"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:126
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:149
msgid "Actual front project"
msgstr "Actual front project"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:127
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:149
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:150
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:148
#: ldt_utils/templates/ldt/ldt_utils/reset_confirm.html:39
#: ldt_utils/templates/ldt/ldt_utils/reset_confirm_popup.html:54
msgid "reset_front_project"
msgstr "reset front project"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:141
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:163
msgid "media file is being processed please wait."
msgstr "media file is being processed please wait."
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:145
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:101
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:145
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:167
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:83
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:144
#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:37
#: ldt_utils/templates/ldt/ldt_utils/error_confirm_popup.html:53
#: ldt_utils/templates/ldt/ldt_utils/reset_confirm.html:38
@@ -566,139 +643,336 @@
msgid "close_cancel"
msgstr "キャンセル"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:146
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:168
msgid "delete"
msgstr "消す"
-#: ldt_utils/templates/ldt/ldt_utils/create_content.html:147
+#: ldt_utils/templates/ldt/ldt_utils/create_content.html:169
msgid "write"
msgstr "書く"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:57
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:36
msgid "Do you really want to delete this group ?"
msgstr "Do you really want to delete this group ?"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:78
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:62
msgid "Update a group"
msgstr "Update a group"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:78
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:62
msgid "Create a group"
msgstr "グループを作成"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:85
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:69
#: user/templates/ldt/user/change_profile.html:62
msgid "Name"
msgstr "名前"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:91
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:75
msgid "Description"
msgstr "記述部"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:103
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:85
msgid "update_group"
msgstr "アップデート"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:105
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:87
msgid "delete_group"
msgstr "デリート"
-#: ldt_utils/templates/ldt/ldt_utils/create_group.html:108
+#: ldt_utils/templates/ldt/ldt_utils/create_group.html:90
msgid "create_group"
msgstr "樹立"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:48
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:47
msgid "more options"
msgstr "より多くのオプション"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:52
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:51
msgid "hide"
msgstr "隠す"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:90
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:89
msgid "Update your project"
msgstr "Update your project"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:90
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:89
msgid "Create your project"
msgstr "Create your project"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:101
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:100
msgid "Description :"
msgstr "記述部:"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:106
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:105
msgid "List of contents"
msgstr "内容のリスト"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:120
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:21
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:12
-#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:12
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:119
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:23
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:13
+#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:13
msgid "name"
msgstr "名前"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:136
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:135
msgid "More options"
msgstr "り多くのオプション"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:147
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:146
msgid "delete_project"
msgstr "デリート"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:151
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:150
msgid "update_project"
msgstr "アップデート"
-#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:153
+#: ldt_utils/templates/ldt/ldt_utils/create_ldt.html:152
msgid "create_project"
msgstr "樹立"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:23
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:46
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:25
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:239
msgid "Show Player"
msgstr "ショープレーヤー"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:24
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:26
msgid "Hide Player"
msgstr "プレーヤーを隠す"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:43
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:61
+#, fuzzy
+msgid "Share the project"
+msgstr "プロジェクトを作成する"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:62
+#, fuzzy
+msgid "List of the project's contents"
+msgstr "clik here to see the project content"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:65
+msgid "Link to the Metadata Player"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:65
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70
+#, fuzzy
+msgid "See"
+msgstr "選る"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:65
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:69
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70
+msgid "Select"
+msgstr "選る"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:69
msgid "project id"
msgstr "project id"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:43
-msgid "Select"
-msgstr "選る"
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:70
+#, fuzzy
+msgid "The project in Lignes de Temps"
+msgstr "Display the results in Lignes De Temps"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:51
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:75
msgid "popup_player"
msgstr "プレーヤー"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:51
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:76
+#, fuzzy
+msgid "popup_ldt_iframe"
+msgstr "プレーヤー"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:77
msgid "popup_seo_body"
msgstr "SEO code"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:51
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:78
msgid "popup_seo_meta"
msgstr "SEO meta"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:51
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:79
msgid "popup_links"
msgstr "Links"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:59
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:98
msgid "Integration mode"
msgstr "Integration mode"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:60
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:99
msgid "div"
msgstr "div"
-#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:61
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:100
msgid "iframe"
msgstr "iframe"
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:103
+msgid "Player Size : "
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:110
+#, fuzzy
+msgid "Preset Modes"
+msgstr "パスワードをリセットする"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:113
+#, fuzzy
+msgid "Basic configuration"
+msgstr "新しいパスワードの確認"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:114
+msgid "Polemic configuration"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:115
+msgid "Polemic configuration with tagcloud, annotationsList and Social widgets"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:122
+#, fuzzy
+msgid "Create your own configuration"
+msgstr "Create your project"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:126
+msgid "The video starts automatically"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:130
+msgid "Displays a form to create a new annotation"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:133
+#, fuzzy
+msgid "audio annotation"
+msgstr "URI"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:134
+#, fuzzy
+msgid "Audio annotation"
+msgstr "URI"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:134
+msgid "Allows the user to record an annotation"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:136
+msgid "Use most used tags "
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:138
+msgid "Set your own tags : "
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:138
+msgid "Write your tags separeted by a comma"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:141
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:142
+msgid "4 polemics buttons"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:142
+msgid "Displays or removes the 4 polemics buttons"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:147
+msgid "Displays segments of a media as rectangles on an horizontal line"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:150
+msgid ""
+"Displays every segment of a media as rectangles on multiple horizontal lines"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:153
+msgid "Show a list of all annotations accross every project for this content"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:157
+msgid ""
+"Shows the polemical timeline, i.e. tweets colored according to the polemical "
+"syntax"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:160
+msgid "Display in the polemic timeline : "
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:161
+msgid "only tweets"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:162
+#, fuzzy
+msgid "all annotations"
+msgstr "タグ"
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:164
+msgid "Personalize tweet's color"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:169
+msgid "Default color"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:173
+msgid "Polemic's color : ++ : "
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:183
+msgid "Found color"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:191
+msgid "Displays a curve showing the volume of annotations across time"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:195
+msgid "personalize sparkline's color"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:199
+msgid "line color"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:204
+msgid "fill color"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:211
+msgid "Displays a div in order to watch the slides displayed in the media"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:215
+msgid " Adds buttons to share an URL on social networks"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:222
+msgid "share with email"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:226
+msgid ""
+" Displays information relative to a single segment/annotation while it is "
+"being played"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:229
+msgid "Show the contents on a tweet when clicked (in Polemic Widget)"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:232
+msgid "Shows a tag cloud"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/embed_popup.html:234
+#, fuzzy
+msgid "Concatenate all projects using this content"
+msgstr "You can't edit this content"
+
#: ldt_utils/templates/ldt/ldt_utils/error_confirm.html:21
#: ldt_utils/templates/ldt/ldt_utils/error_confirm_popup.html:34
#: ldt_utils/templates/ldt/ldt_utils/reset_confirm.html:22
@@ -722,20 +996,20 @@
msgid "close_error"
msgstr "クローズ"
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:68
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:85
msgid "Do you want to leave this group ?"
msgstr "Do you want to leave this group ?"
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:93
-#: templates/ldt/ldt_base.html:115
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:122
+#: templates/ldt/ldt_base.html:116
msgid "My groups"
msgstr "私のグループ"
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:95
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:124
msgid "Create group"
msgstr "グループを作成"
-#: ldt_utils/templates/ldt/ldt_utils/groups.html:111
+#: ldt_utils/templates/ldt/ldt_utils/groups.html:140
msgid "The group's projects"
msgstr "The group's projects"
@@ -751,17 +1025,17 @@
msgid "project list"
msgstr "プロジェクトリスト"
-#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:62
+#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:88
msgid "Submit"
msgstr "提出"
-#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:67
-#: templates/ldt/ldt_base.html:116
+#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:93
+#: templates/ldt/ldt_base.html:117
msgid "Published projects"
msgstr "Published projects"
-#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:68
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:69
+#: ldt_utils/templates/ldt/ldt_utils/published_projects.html:94
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:120
msgid "Create project"
msgstr "プロジェクトを作成する"
@@ -777,111 +1051,123 @@
msgid "Results for "
msgstr "Results for "
-#: ldt_utils/templates/ldt/ldt_utils/search_results.html:76
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:24
+#: ldt_utils/templates/ldt/ldt_utils/search_results.html:78
+msgid ""
+"Are you sure you want to delete this annotation ? You cannot undo this "
+"action."
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/search_results.html:78
+msgid "Delete permantly the current annotation"
+msgstr ""
+
+#: ldt_utils/templates/ldt/ldt_utils/search_results.html:80
#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:26
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:32
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:34
-#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:21
-#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:23
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:28
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:31
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:38
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:40
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:43
+#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:22
+#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:24
msgid "open ldt"
msgstr "open ldt"
-#: ldt_utils/templates/ldt/ldt_utils/search_results.html:87
+#: ldt_utils/templates/ldt/ldt_utils/search_results.html:91
msgid "Tags"
msgstr "タグ"
-#: ldt_utils/templates/ldt/ldt_utils/search_results.html:106
+#: ldt_utils/templates/ldt/ldt_utils/search_results.html:110
#, python-format
msgid "Page %(number)s of %(num_pages)s"
msgstr "Page %(number)s of %(num_pages)s"
-#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:52
+#: ldt_utils/templates/ldt/ldt_utils/workspace_base.html:103
msgid "content list"
msgstr "コンテンツリスト"
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:6
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:8
msgid "All categories"
msgstr "全部門"
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:29
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:31
msgid "preview media"
msgstr "プレビューメディア"
-#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:31
+#: ldt_utils/templates/ldt/ldt_utils/partial/contentslist.html:33
msgid "You can't edit this content"
msgstr "You can't edit this content"
-#: ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html:22
+#: ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html:37
msgid "Click on the line to see the group's projects"
msgstr "Click on the line to see the group's projects"
-#: ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html:33
+#: ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html:48
msgid "Change this group"
msgstr "Change this group"
-#: ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html:40
+#: ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html:55
msgid "You are not allowed to edit this group"
msgstr "You are not allowed to edit this group"
-#: ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html:55
+#: ldt_utils/templates/ldt/ldt_utils/partial/groupslist.html:70
msgid "Projects shared with me only"
msgstr "Projects shared with me only"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:52
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:79
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:174
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:53
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:81
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:180
msgid "share.eye"
msgstr "片目"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:60
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:172
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:61
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:178
msgid "share.pencil"
msgstr "鉛筆"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:110
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:112
msgid "share"
msgstr "分け合う"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:119
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:121
msgid "publish for everyone"
msgstr "publish for everyone"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:124
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:127
msgid "publish the title on the front"
msgstr "publish the title on the front"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:127
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:131
msgid "User and group list"
msgstr "User and group list"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:142
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:146
msgid "select all displayed elements"
msgstr "select all displayed elements"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:147
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:151
msgid "select users"
msgstr "ユーザーを選択"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:148
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:152
msgid "remove users"
msgstr "ユーザーを削除する"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:153
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:159
msgid "Members list"
msgstr "メンバーのリスト"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:163
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:169
#: ldt_utils/templates/ldt/ldt_utils/partial/sharewith.html:7
msgid "user"
msgstr "ユーザー"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:165
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:171
#: ldt_utils/templates/ldt/ldt_utils/partial/sharewith.html:9
msgid "group"
msgstr "グループ"
-#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:185
+#: ldt_utils/templates/ldt/ldt_utils/partial/permissions.html:191
msgid "remove all"
msgstr "すべて削除する"
@@ -900,101 +1186,93 @@
msgid "Upload a new picture"
msgstr "Upload a new picture"
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:40
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:48
msgid "copy project"
msgstr "copy project"
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:41
-#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:26
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:52
+#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:30
msgid "link json by id"
msgstr "link json by id"
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:44
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:58
msgid "Project published, click to unpublish"
msgstr "Project published, click to unpublish"
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:44
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:46
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:57
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:58
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:60
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:71
msgid "You are not allowed to change this project"
msgstr "You are not allowed to change this project"
-#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:46
+#: ldt_utils/templates/ldt/ldt_utils/partial/projectslist.html:60
msgid "Project not published, click to publish"
msgstr "Project not published, click to publish"
-#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:25
+#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:26
msgid "copy the project"
msgstr "プロジェクトをコピーする"
-#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:28
+#: ldt_utils/templates/ldt/ldt_utils/partial/publishedprojectslist.html:35
msgid "Project published"
msgstr "プロジェクトが公開され"
-#: ldt_utils/views/content.py:189
+#: ldt_utils/views/content.py:130
msgid "Problem when downloading file from url : "
msgstr "Problem when downloading file from url: "
-#: ldt_utils/views/content.py:192
+#: ldt_utils/views/content.py:133
msgid "Problem when uploading file : "
msgstr "Problem when uploading file: "
-#: ldt_utils/views/content.py:297
-msgid "Content creation failure"
-msgstr "Content creation failure"
-
-#: ldt_utils/views/content.py:305
-msgid "Commit of the content creation failed"
-msgstr "Commit of the content creation failed"
-
-#: ldt_utils/views/content.py:319
+#: ldt_utils/views/content.py:358
#, python-format
msgid "There is %(count)d error when deleting content"
msgid_plural "There are %(count)d errors when deleting content"
msgstr[0] "There is %(count)d error when deleting content"
msgstr[1] "There are %(count)d errors when deleting content"
-#: ldt_utils/views/content.py:320
+#: ldt_utils/views/content.py:359
msgid "title error deleting content"
msgstr "error deleting content"
-#: ldt_utils/views/content.py:325
+#: ldt_utils/views/content.py:364
#, python-format
msgid "Confirm delete content %(titles)s"
msgstr "Confirm delete content %(titles)s"
-#: ldt_utils/views/content.py:326
+#: ldt_utils/views/content.py:365
msgid "confirm delete content"
msgstr "confirm delete content"
-#: ldt_utils/views/content.py:337
+#: ldt_utils/views/content.py:376
#, python-format
msgid "Please unpublish the front project %(title)s"
msgstr "Please unpublish the front project %(title)s"
-#: ldt_utils/views/content.py:338
+#: ldt_utils/views/content.py:377
msgid "The front project is published"
msgstr "The front project is published"
-#: ldt_utils/views/content.py:339 ldt_utils/views/content.py:342
-#: ldt_utils/views/project.py:137
+#: ldt_utils/views/content.py:378 ldt_utils/views/content.py:381
+#: ldt_utils/views/project.py:139
msgid "confirm reset"
msgstr "confirm reset"
-#: ldt_utils/views/content.py:341 ldt_utils/views/project.py:136
+#: ldt_utils/views/content.py:380 ldt_utils/views/project.py:138
#, python-format
msgid "please confirm reseting project %(title)s"
msgstr "please confirm reseting project %(title)s"
-#: ldt_utils/views/content.py:369
+#: ldt_utils/views/content.py:407
msgid "An error occurred - Please try again or contact webmaster"
msgstr "An error occurred - Please try again or contact webmaster"
-#: ldt_utils/views/content.py:370
+#: ldt_utils/views/content.py:408
msgid "Error"
msgstr "エラー"
-#: ldt_utils/views/content.py:413
+#: ldt_utils/views/content.py:453
#, python-format
msgid ""
"Content '%(title)s' is referenced by this project : %(project_titles)s. "
@@ -1009,7 +1287,7 @@
"Content '%(title)s' is referenced by %(count)d projects: %(project_titles)s. "
"Please delete them beforehand."
-#: ldt_utils/views/content.py:416
+#: ldt_utils/views/content.py:456
#, python-format
msgid ""
"The project '%(project_title)s' pointing on the content '%(title)s' has "
@@ -1020,33 +1298,24 @@
"several annotations. Do you want to delete the content and the project "
"anyway ?"
-#: ldt_utils/views/content.py:442
-msgid "Content deletion failure"
-msgstr "Error deleting content"
-
-#: ldt_utils/views/content.py:452
-msgid "Commit of the content deletion failed"
-msgstr "Commit of the content deletion failed"
-
-#: ldt_utils/views/json.py:40 ldt_utils/views/rdf.py:15
-#: ldt_utils/views/workspace.py:174
+#: ldt_utils/views/json.py:43 ldt_utils/views/rdf.py:15
msgid "You can not access this project"
msgstr "You can not access this project"
-#: ldt_utils/views/project.py:117
+#: ldt_utils/views/project.py:119
#, python-format
msgid "the project %(title)s is published. please unpublish before deleting."
msgstr "the project %(title)s is published. please unpublish before deleting."
-#: ldt_utils/views/project.py:118 ldt_utils/views/project.py:122
+#: ldt_utils/views/project.py:120 ldt_utils/views/project.py:124
msgid "can not delete the project. Please correct the following error"
msgstr "can not delete the project. Please correct the following error"
-#: ldt_utils/views/project.py:119 ldt_utils/views/project.py:123
+#: ldt_utils/views/project.py:121 ldt_utils/views/project.py:125
msgid "title error deleting project"
msgstr "Error deleting project"
-#: ldt_utils/views/project.py:121
+#: ldt_utils/views/project.py:123
#, python-format
msgid ""
"the project %(title)s is the front project of %(content)s. please delete "
@@ -1055,25 +1324,58 @@
"the project %(title)s is the front project of %(content)s. please delete "
"this content first."
-#: ldt_utils/views/project.py:125
+#: ldt_utils/views/project.py:127
#, python-format
msgid "please confirm deleting project %(title)s"
msgstr "please confirm deleting project %(title)s"
-#: ldt_utils/views/project.py:126
+#: ldt_utils/views/project.py:128
msgid "confirm deletion"
msgstr "confirm deletion"
-#: ldt_utils/views/workspace.py:124
+#: ldt_utils/views/workspace.py:118
msgid ""
"The content does not exists or you are not allowed to access this content"
msgstr ""
"The content does not exists or you are not allowed to access this content"
-#: ldt_utils/views/workspace.py:128
+#: ldt_utils/views/workspace.py:122
msgid "Parameters project_id or content_id must be given in the url"
msgstr "Parameters project_id or content_id must be given in the url"
+#: ldt_utils/views/workspace.py:438
+#, fuzzy
+msgid "Annotation not found in the xml"
+msgstr "All annotations on the media"
+
+#: ldt_utils/views/workspace.py:449
+#, fuzzy
+msgid "Annotation not found"
+msgstr "All annotations on the media"
+
+#: ldt_utils/views/workspace.py:451 ldt_utils/views/workspace.py:453
+msgid "Project not found"
+msgstr ""
+
+#: templates/403.html:6
+#, fuzzy
+msgid "403 error"
+msgstr "エラー"
+
+#: templates/403.html:9
+#, fuzzy
+msgid "You don't have the right permission to access this page"
+msgstr "You don't have permission to edit anything."
+
+#: templates/404.html:7
+#, fuzzy
+msgid "404 error"
+msgstr "エラー"
+
+#: templates/404.html:10
+msgid "Sorry, we couldn't find your page"
+msgstr ""
+
#: templates/admin/cms_change_form.html:30
msgid "Approve page deletion"
msgstr "Approve page deletion"
@@ -1189,11 +1491,6 @@
msgid "off"
msgstr "オフ"
-#: templates/admin/cms_change_list.html:110
-#: templates/admin/page_change_list.html:65
-msgid "Filter"
-msgstr "フィルタ"
-
#: templates/admin/index.html:18 templates/admin/page_index.html:18
#, python-format
msgid "Models available in the %(name)s application."
@@ -1255,12 +1552,12 @@
msgstr "パスワード:"
#: templates/admin/page_login.html:29
-#: user/templates/registration/login.html:39
+#: user/templates/registration/login.html:40
msgid "Create an account"
msgstr "アカウントを作成する"
#: templates/admin/page_login.html:30
-#: user/templates/registration/login.html:40
+#: user/templates/registration/login.html:41
msgid "Forget password?"
msgstr "Forget password?"
@@ -1280,157 +1577,116 @@
msgid "Order:"
msgstr "オーダー:"
-#: templates/ldt/ldt_base.html:86
+#: templates/ldt/ldt_base.html:87
msgid "header_title"
msgstr "題名"
-#: templates/ldt/ldt_base.html:90
+#: templates/ldt/ldt_base.html:91
msgid "Link to admin"
msgstr "Link to admin"
-#: templates/ldt/ldt_base.html:90
+#: templates/ldt/ldt_base.html:91
msgid "Staff"
msgstr "部員"
-#: templates/ldt/ldt_base.html:93
+#: templates/ldt/ldt_base.html:94
msgid "front link"
msgstr "front link"
-#: templates/ldt/ldt_base.html:94
+#: templates/ldt/ldt_base.html:95
#: user/templates/ldt/user/change_profile.html:95
msgid "Profile change"
msgstr "Profile change"
-#: templates/ldt/ldt_base.html:114 templates/ldt/ldt_base.html.py:115
+#: templates/ldt/ldt_base.html:115 templates/ldt/ldt_base.html.py:116
msgid "home"
msgstr "ホームページ"
-#: templates/ldt/ldt_base.html:148
+#: templates/ldt/ldt_base.html:149
msgid "Version number"
msgstr "バージョン番号"
-#: templates/ldt/ldt_base.html:148
+#: templates/ldt/ldt_base.html:149
#, python-format
msgid " web %(WEB_VERSION)s | platform %(VERSION)s"
msgstr " web %(WEB_VERSION)s | platform %(VERSION)s"
-#: templates/ldt/ldt_raw_base.html:14
+#: templates/ldt/ldt_raw_base.html:15
msgid "page_title"
msgstr "題名"
-#: text/models.py:14
+#: text/models.py:13
msgid "annotation.external_id"
msgstr "external id"
-#: text/models.py:15
+#: text/models.py:14
msgid "annotation.uri"
msgstr "URI"
#: text/models.py:16
-msgid "annotation.tags"
-msgstr "タグ"
-
-#: text/models.py:17
msgid "annotation.title"
msgstr "注釈"
-#: text/models.py:18
+#: text/models.py:17
msgid "annotation.description"
msgstr "記述部"
-#: text/models.py:19
+#: text/models.py:18
msgid "annotation.text"
msgstr "テキスト"
-#: text/models.py:20
+#: text/models.py:19
msgid "annotation.color"
msgstr "色"
-#: text/models.py:21
+#: text/models.py:20
msgid "creator.title"
msgstr "クリエイター"
-#: text/models.py:22
+#: text/models.py:21
msgid "contributor.title"
msgstr "貢献者"
-#: text/models.py:23
+#: text/models.py:22
msgid "annotation.creation_date"
msgstr "作成日"
-#: text/models.py:24
+#: text/models.py:23
msgid "annotation.update_date"
msgstr "日付を更新"
-#: user/admin.py:34
-msgid "User details"
-msgstr "ユーザーの詳細"
-
-#: user/admin.py:35
-msgid "Groups"
-msgstr "グループ"
-
-#: user/admin.py:36
-msgid "Permissions"
-msgstr "パーミッション"
-
-#: user/admin.py:47 user/templates/ldt/user/change_profile.html:105
-#: user/templates/ldt/user/login_form.html:61
-msgid "Password"
-msgstr "パスワード"
-
-#: user/forms.py:27 user/templates/ldt/user/change_password.html:40
-#: user/templates/ldt/user/change_profile.html:118
-msgid "New password"
-msgstr "新しいパスワード"
+#: user/admin.py:20
+#, fuzzy
+msgid "profile"
+msgstr "Profiles"
-#: user/forms.py:29 user/templates/ldt/user/change_password.html:50
-#: user/templates/ldt/user/change_profile.html:131
-msgid "New password confirmation"
-msgstr "新しいパスワードの確認"
-
-#: user/forms.py:58 user/forms.py:59
-msgid "E-mail"
-msgstr "電子メール"
-
-#: user/forms.py:70
-msgid "The two emails didn't match."
-msgstr "The two emails didn't match."
-
-#: user/forms.py:81 user/templates/ldt/user/change_profile.html:54
-msgid "First name"
-msgstr "名"
-
-#: user/forms.py:82
-msgid "Last name"
-msgstr "姓"
-
-#: user/forms.py:109 user/templates/ldt/user/change_profile.html:83
+#: user/forms.py:38 user/forms.py:63
+#: user/templates/ldt/user/change_profile.html:83
msgid "Language"
msgstr "言語"
-#: user/forms.py:123
+#: user/forms.py:39 user/forms.py:75
msgid "Profile picture"
msgstr "プロフィールの写真"
-#: user/forms.py:134
+#: user/forms.py:48 user/forms.py:86
#, python-format
msgid "Image size is limited to %s"
msgstr "Image size is limited to %s"
-#: user/views.py:28
+#: user/views.py:25
msgid "Your profile has been updated."
msgstr "あなたのプロフィールが更新されました。"
-#: user/views.py:52
+#: user/views.py:48
msgid "Your password has been updated."
msgstr "あなたのパスワードが更新されました。"
-#: user/views.py:76
+#: user/views.py:72
msgid "Your profile picture has been updated."
msgstr "あなたのプロフィールの写真が更新されました。"
-#: user/views.py:98 user/templates/registration/login.html:24
+#: user/views.py:93 user/templates/registration/login.html:25
msgid "Sorry, that's not a valid username or password."
msgstr "Sorry, that's not a valid username or password."
@@ -1438,10 +1694,20 @@
msgid "Old password"
msgstr "古いパスワード"
+#: user/templates/ldt/user/change_password.html:40
+#: user/templates/ldt/user/change_profile.html:118
+msgid "New password"
+msgstr "新しいパスワード"
+
#: user/templates/ldt/user/change_password.html:44
msgid "passwords don't match"
msgstr "passwords don't match"
+#: user/templates/ldt/user/change_password.html:50
+#: user/templates/ldt/user/change_profile.html:131
+msgid "New password confirmation"
+msgstr "新しいパスワードの確認"
+
#: user/templates/ldt/user/change_password.html:57
#: user/templates/ldt/user/change_profile.html:144
#: user/templates/registration/password_change_form.html:14
@@ -1461,10 +1727,19 @@
msgid "Username"
msgstr "ユーザ名"
+#: user/templates/ldt/user/change_profile.html:54
+msgid "First name"
+msgstr "名"
+
#: user/templates/ldt/user/change_profile.html:70
msgid "Email"
msgstr "電子メール"
+#: user/templates/ldt/user/change_profile.html:105
+#: user/templates/ldt/user/login_form.html:61
+msgid "Password"
+msgstr "パスワード"
+
#: user/templates/ldt/user/change_profile.html:175
msgid "Profile picture change"
msgstr "Profile picture change"
@@ -1526,7 +1801,7 @@
msgid "Log in again"
msgstr "再度ログイン"
-#: user/templates/registration/login.html:46
+#: user/templates/registration/login.html:47
msgid "login"
msgstr "ログイン"
@@ -1696,8 +1971,38 @@
"We've e-mailed you instructions for activate your account to the e-mail "
"address you submitted. You should be receiving it shortly."
+#~ msgid "Search results for "
+#~ msgstr "Search results for "
+
+#~ msgid "Cancel upload"
+#~ msgstr "アップロードをキャンセル"
+
+#~ msgid "Content creation failure"
+#~ msgstr "Content creation failure"
+
+#~ msgid "Commit of the content creation failed"
+#~ msgstr "Commit of the content creation failed"
+
+#~ msgid "Content deletion failure"
+#~ msgstr "Error deleting content"
+
+#~ msgid "Commit of the content deletion failed"
+#~ msgstr "Commit of the content deletion failed"
+
+#~ msgid "User details"
+#~ msgstr "ユーザーの詳細"
+
+#~ msgid "Permissions"
+#~ msgstr "パーミッション"
+
+#~ msgid "E-mail"
+#~ msgstr "電子メール"
+
+#~ msgid "The two emails didn't match."
+#~ msgstr "The two emails didn't match."
+
+#~ msgid "Last name"
+#~ msgstr "姓"
+
#~ msgid "Use the iframe integration mode"
#~ msgstr "Use the iframe integration mode"
-
-#~ msgid "clik here to see the project content"
-#~ msgstr "clik here to see the project content"
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/static/ldt/js/embed/v1/embed.js Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,869 @@
+var display_state = "player";
+
+function toggle_display() {
+ $j.each(["player","ldt_iframe","seo_body","seo_meta","links"], function(i,display_str) {
+
+ var div_selector = "#"+display_str+"_code";
+ if(display_str === display_state) {
+ $j(div_selector).show();
+ }
+ else {
+ $j(div_selector).hide();
+ }
+ });
+}
+
+function init_events(){
+ toggle_display();
+ $j("#iframe_div_premode").toggle(false);
+ $j("#embed_personnalisation").toggle(false);
+ $j("#player_width").val(550);
+ $j("#player_height").val(300);
+ $j("#optionsExpArrow").toggle(true);
+ $j("#optionsCollArrow").toggle(false);
+ $j("#preModeExpArrow").toggle(true);
+ $j("#preModeCollArrow").toggle(false);
+ $j("#createannotation_block").toggle(false);
+ $j("#player_id_code").select();
+ $j("#polemic_color_options").toggle(false);
+ $j("#sparkline_color_options").toggle(false);
+ $j("#social_options").toggle(false);
+ $j("#displayPolemicOptions").toggle(false);
+ $j("#displaySparklineOptions").toggle(false);
+ $j("#polemic_default_color").val("#585858");
+ $j("#polemic_found_color").val("#fc00ff");
+ $j("#polemic_ok_color").val("#1d973d");
+ $j("#polemic_ko_color").val("#ce0a15");
+ $j("#polemic_ref_color").val("#c5a62d");
+ $j("#polemic_q_color").val("#036aae");
+ $j("#sparkline_line_color").val("#7492b4");
+ $j("#sparkline_fill_color").val("#aeaeb8");
+ var type_embed=document.getElementById("type_embed_div");
+ type_embed.checked=true;
+ $j("#createannotation_options").toggle(false);
+ mode1();
+
+ $j(".click_to_select").click(function(){
+ var i = $j(this).parent().find("input");
+ i.select();
+ });
+
+ $j('.ldt_json_link').click(function(e) {
+ e.preventDefault();
+ link = $j(e.target);
+ $j("#res_link_{{player_id}}").load(link.attr("href"));
+ $j("#res_link_{{player_id}}").show();
+ return false;
+ });
+
+ $j('#player_button').click(function(e) {
+ display_state = "player";
+ toggle_display();
+ $j("#player_id_code").select();
+ });
+ $j('#ldt_iframe_button').click(function(e) {
+ display_state = "ldt_iframe";
+ toggle_display();
+ $j("#ldt_iframe_id_code").select();
+ });
+ $j('#seo_body_button').click(function(e) {
+ display_state = "seo_body";
+ toggle_display();
+ $j("#seo_body_id_code").select();
+ });
+ $j('#seo_meta_button').click(function(e) {
+ display_state = "seo_meta";
+ toggle_display();
+ $j("#seo_meta_id_code").select();
+ });
+ $j('#links_button').click(function(e) {
+ display_state = "links";
+ toggle_display();
+ });
+
+ $j("#copy_button").click(function(e) {
+ alert($j("#"+display_state+"_code").html());
+ });
+
+ $j("#refresh_player_button").click(function(e){
+ refresh_player();
+ $j("#player_id_code").select();
+ });
+
+
+ $j('#links_button').click(function() {
+ var range = document.createRange();
+ range.selectNode(document.getElementById('links_code'));
+ window.getSelection().addRange(range);
+ });
+
+ $j('#displayPreMode').click(function(){
+ $j("#iframe_div_premode").slideToggle("fast");
+ $j("#preModeExpArrow").toggle();
+ $j("#preModeCollArrow").toggle();
+ });
+
+ $j("#displayEmbedOptions").click(function(){
+ $j("#embed_personnalisation").slideToggle("fast");
+ $j("#optionsExpArrow").toggle();
+ $j("#optionsCollArrow").toggle();
+
+ });
+
+ $j("#displayPolemicColorOptions").click(function(){
+ $j("#polemic_color_options").slideToggle("fast");
+ });
+
+ $j("#displaySparklineOptions").click(function(){
+ $j("#sparkline_color_options").slideToggle("fast");
+ });
+
+ $('.infostooltip').each( function () {
+ var desc = $(this).attr('data-desc');
+ if (desc == 'None') {
+ desc = '';
+ }
+ $(this).qtip({
+ content : {
+ text: '<b>' + $(this).attr('data-title') + '</b><br />' + desc
+ },
+ style: {
+ classes: 'ui-tooltip-dark ui-tooltip-rounded qtipldt'
+ },
+ border: {
+ 'width': 0,
+ 'color': '#505050'
+ },
+ position: {
+ my: 'top left',
+ at: 'bottom left'
+ }
+ });
+ });
+
+}
+
+function select_code(){
+ $j("#player_id_code").select();
+}
+
+function generate_base_embed_code(){
+ var player_width_val=$j("#player_width").val();
+ base='\
+<div> \n \
+ <div id="'+player_id+'_embed" style="float:left; width:'+player_width_val+';" class="iri_player_embed">\n\
+ </div>\n\
+<script type="text/javascript" src="'+LdtPlayer_core+'"></script>\n\
+<script type="text/javascript">\n\
+ if (typeof jQuery == "undefined") {\n\
+ jQuery = IriSP.jQuery;\n\
+ }\n\
+ var metadatas = {metadata: {url: "'+json_url+'"}};\n\
+ var metadata_key = "metadata";\n\
+ IriSP.libFiles.defaultDir = "'+defaultDir+'";\n\
+ IriSP.libFiles.locations.jwPlayerSWF = "'+jwPlayerSWF+'";\n\
+ IriSP.libFiles.locations.recordMicSwf = "'+recordMicSwf+'";\n\
+ IriSP.libFiles.locations.zeroClipboardSwf = "'+zeroClipboardSwf+'";\n\
+ IriSP.libFiles.locations.cssjQueryUI = "'+cssjQueryUI+'"\n\
+ IriSP.language = "'+LANGUAGE_CODE+'";\n\
+\n\
+ IriSP.widgetsDir = "'+widgetsDir+'";\n\
+ var _metadata = {\n\
+ url: metadatas[metadata_key].url + "?callback=?",\n\
+ format: "ldt"\n\
+ };\n\
+ var _config = {\n\
+ width: "'+player_width_val+'",\n\
+ container: "'+player_id+'_embed",\n\
+ css: "'+configCss+'",\n\
+ default_options: {\n\
+ metadata: _metadata\n\
+ },\n';
+
+ return base;
+
+}
+
+function generate_widget_code(){
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ var annotation_val=document.getElementById('annotation_checkbox');
+ var tweet_val=document.getElementById('tweet_checkbox');
+ var segments_val=document.getElementById('segments_checkbox');
+ var multisegments_val=document.getElementById('multisegments_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var sparkline_val=document.getElementById('sparkline_checkbox');
+ var tagcloud_val=document.getElementById('tagcloud_checkbox');
+ var player_height_val=$j('#player_height').val();
+ widget_code='\
+ widgets: [\n\
+ {\n\
+ type: "AutoPlayer",\n';
+
+ if (external_url!='None'){
+ widget_code+='\
+ video: "'+external_url+'",\n';
+ }
+
+ widget_code+='\
+ height: '+player_height_val+',\n\
+ autostart: true\n\
+ }';
+ if (polemic_val.checked){
+ defaultcolor= $j("#polemic_default_color").val();
+ foundcolor=$j("#polemic_found_color").val();
+ ok_color=$j("#polemic_ok_color").val();
+ ko_color=$j("#polemic_ko_color").val();
+ ref_color=$j("#polemic_ref_color").val();
+ q_color=$j("#polemic_q_color").val();
+ tweet_type=document.getElementById("tweet_polemic");
+ widget_code+='\
+ ,{\n\
+ type: "Polemic",\n';
+ if(tweet_type.checked){
+ widget_code+='\
+ annotation_type: "tweet",\n';
+ }
+ else{
+ widget_code+='\
+ annotation_type: false,\n';
+ }
+ widget_code+='\
+ defaultcolor: "'+defaultcolor+'",\n\
+ foundcolor: "'+foundcolor+'",\n\
+ polemics : [\n\
+ {\n\
+ "name" : "OK",\n\
+ "keywords" : [ "++" ],\n\
+ "color" : "'+ok_color+'"\n\
+ },\n\
+ {\n\
+ "name" : "KO",\n\
+ "keywords" : [ "--" ],\n\
+ "color" : "'+ko_color+'"\n\
+ },\n\
+ {\n\
+ "name" : "REF",\n\
+ "keywords" : [ "==" ],\n\
+ "color" : "'+ref_color+'"\n\
+ },\n\
+ {\n\
+ "name" : "Q",\n\
+ "keywords" : [ "?" ],\n\
+ "color" : "'+q_color+'"\n\
+ },\n\
+ ]\n\
+ }';
+ }
+
+ if(sparkline_val.checked){
+ linecolor=$j("#sparkline_line_color").val();
+ fillcolor=$j("#sparkline_fill_color").val();
+ widget_code+=',{\n\
+ type: "Sparkline",\n\
+ lineColor: "'+linecolor+'",\n\
+ fillColor: "'+fillcolor+'"\n\
+ }';
+ }
+
+ if(segments_val.checked){
+ widget_code+=',{\n\
+ type: "Segments",\n\
+ annotation_type: ["chap","découpage"]\n\
+ }';
+ }
+ if(multisegments_val.checked){
+ widget_code+=',{\n\
+ type: "MultiSegments",\n\
+ }';
+ }
+
+ widget_code+=',{\n\
+ type: "Slider"\n\
+ },{\n\
+ type: "Controller"\n\
+ },{\n\
+ type: "Mediafragment"\n\
+ }';
+ if(slideshare_val.checked){
+ widget_code+='\
+ ,{\n\
+ type: "Slideshare",\n\
+ container: "Slideshare_ext",\n\
+ embed_width: 400,\n\
+ embed_height: 334,\n\
+ annotation_type: "slide"\n\
+ }';
+ }
+
+ if(social_val.checked){
+ show_url=document.getElementById("show_url_checkbox");
+ show_twitter=document.getElementById("show_twitter_checkbox");
+ show_fb=document.getElementById("show_fb_checkbox");
+ show_gplus=document.getElementById("show_gplus_checkbox");
+ show_mail=document.getElementById("show_mail_checkbox");
+
+ widget_code+='\
+ ,{\n\
+ type: "Social",\n\
+ container: "Social_ext",\n\
+ url: document.location.href.replace(/#.*$/,""),\n\
+ text: document.title,\n';
+
+ if(show_url.checked){
+ widget_code+='\
+ show_url: true,\n';
+ }
+ else{
+ widget_code+='\
+ show_url: false,\n';
+ }
+ if(show_twitter.checked){
+ widget_code+='\
+ show_twitter: true,\n';
+ }
+ else{
+ widget_code+='\
+ show_twitter: false,\n';
+ }
+ if(show_fb.checked){
+ widget_code+='\
+ show_fb: true,\n';
+ }
+ else{
+ widget_code+='\
+ show_fb: false,\n';
+ }
+ if(show_gplus.checked){
+ widget_code+='\
+ show_gplus: true,\n';
+ }
+ else{
+ widget_code+='\
+ show_gplus: false,\n';
+ }
+ if(show_mail.checked){
+ widget_code+='\
+ show_mail: true\n';
+ }
+ else{
+ widget_code+='\
+ show_mail: false\n';
+ }
+
+ widget_code+='}';
+ }
+ if(annotation_val.checked){
+ widget_code+='\
+ ,{\n\
+ type: "Annotation",\n\
+ start_minimized: true,\n\
+ site_name : "Lignes de Temps",\n\
+ annotation_type: ["chap","découpage"]\n\
+ }';
+ }
+ if(tweet_val.checked){
+ widget_code+='\
+ ,{\n\
+ type: "Tweet",\n\
+ hide_timeout: 5000\n\
+ }';
+ }
+
+ if(annotationslist_val.checked){
+ widget_code+=',{\n\
+ type: "AnnotationsList",\n\
+ ajax_url: "'+segment_api+'",\n\
+ container: "AnnotationsList_ext",\n\
+ ajax_granularity : 300000,\n\
+ default_thumbnail : "'+default_thumbnail+'",\n\
+ show_audio: true,\n\
+ rtmp_streamer: "rtmp://media.iri.centrepompidou.fr/ddc_micro_record/"\n\
+ }';
+ }
+
+ if(tagcloud_val.checked){
+ widget_code+=',{\n\
+ type: "Tagcloud",\n\
+ }';
+ }
+
+ widget_code+=']\n\
+ };\n';
+
+ return widget_code;
+
+}
+
+function generate_div_code(){
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ code=generate_base_embed_code();
+ code+=generate_widget_code();
+ code+='\n\
+ _myPlayer = new IriSP.Metadataplayer(_config);\n\
+ </script>\n';
+ if(social_val.checked){
+ code+='\
+ <div id="Social_ext" class="Ldt-TraceMe Ldt-Widget" style="float:right; width:400px; height:24px;" widget-type="Social">\n\
+ </div>\n';
+ }
+ if(slideshare_val.checked){
+ code+='\
+ <div id="Slideshare_ext" class="ext_widget Ldt-TraceMe Ldt-Widget" style="float:left; width:400px;" widget-type="Slideshare">\n\
+ </div>\n';
+ }
+
+ if(annotationslist_val.checked){
+ code+='\
+ <div id="AnnotationsList_ext" class="ext_widget Ldt-TraceMe Ldt-Widget" style="float:left; width:400px;" widget-type="AnnotationsList"></div>\n';
+ }
+
+ code+='\
+</div>\n';
+ return code;
+}
+
+function put_new_code(){
+ var type_embed=document.getElementById("type_embed_div");
+ wrapper = "wrapper_"+player_id;
+ wrapper_id = "#"+wrapper;
+ var element = document.getElementById(wrapper);
+ var code_embed=document.getElementById("player_id_code");
+ if(type_embed.checked){
+ var new_code=generate_div_code();
+ }
+ else{
+ var new_code=generate_iframe_code();
+ }
+ code_embed.value= new_code;
+ $j("#player_id_code").select();
+}
+
+function div_event(){
+ $j("#createannotation_block").toggle(false);
+ $j("#multisegments_block").toggle(true);
+ put_new_code();
+}
+
+function toggle() {
+ wrapper="wrapper_"+player_id;
+ wrapper_id="#"+wrapper;
+ var player_div = document.getElementById("player_div");
+ var element = document.getElementById(wrapper);
+ var text = document.getElementById("displayPlayer");
+ var type_embed=document.getElementById("type_embed_div");
+ if(player_div.style.display==="none") {
+ if (type_embed.checked){
+ var new_code=generate_div_code();
+ $j(wrapper_id).html(new_code);
+ }
+ else{
+ display_iframe_player();
+ }
+ player_div.style.display="block";
+ text.innerHTML = translate_hide;
+ }
+ else {
+ $j(wrapper_id).html('');
+ player_div.style.display="none";
+ text.innerHTML = translate_show;
+ }
+}
+
+function display_polemic(){
+ $j("#displayPolemicOptions").slideToggle("fast");
+ $j("#polemic_color_options").toggle(false);
+}
+
+function display_sparkline(){
+ $j("#displaySparklineOptions").slideToggle("fast");
+ $j("#sparkline_color_options").toggle(false);
+}
+
+function display_social(){
+ $j("#social_options").slideToggle("fast");
+}
+
+function display_createannotation(){
+ $j("#createannotation_options").slideToggle("fast");
+}
+
+function mode1(){
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ var annotation_val=document.getElementById('annotation_checkbox');
+ var tweet_val=document.getElementById('tweet_checkbox');
+ var segments_val=document.getElementById('segments_checkbox');
+ var multisegments_val=document.getElementById('multisegments_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var sparkline_val=document.getElementById('sparkline_checkbox');
+ var tagcloud_val=document.getElementById('tagcloud_checkbox');
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+
+ var type_embed=document.getElementById("type_embed_div");
+
+ if(type_embed.checked){
+ createannotation_val.checked=false;
+ multisegments_val.checked=false;
+ }
+ else{
+ $j("#createannotation_options").toggle(true);
+ createannotation_val.checked=true;
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ show_mic_record_val.checked=false;
+ }
+ $j("#displayPolemicOptions").toggle(false);
+ $j("#displaySparklineOptions").toggle(false);
+ $j("#social_options").toggle(false);
+ $j("#sparkline_color_options").toggle(false);
+ polemic_val.checked=false;
+ segments_val.checked=true;
+ annotationslist_val.checked=false;
+ slideshare_val.checked=false;
+ social_val.checked=false;
+ annotation_val.checked=false;
+ tweet_val.checked=false;
+ sparkline_val.checked=false;
+ tagcloud_val.checked=false;
+ put_new_code();
+}
+
+function mode2(){
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ var annotation_val=document.getElementById('annotation_checkbox');
+ var tweet_val=document.getElementById('tweet_checkbox');
+ var segments_val=document.getElementById('segments_checkbox');
+ var multisegments_val=document.getElementById('multisegments_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var sparkline_val=document.getElementById('sparkline_checkbox');
+ var tagcloud_val=document.getElementById('tagcloud_checkbox');
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ var type_embed=document.getElementById("type_embed_div");
+ $j("#displayPolemicOptions").toggle(false);
+ $j("#displaySparklineOptions").toggle(false);
+ $j("#social_options").toggle(false);
+ $j("#sparkline_color_options").toggle(false);
+ display_polemic();
+ display_sparkline();
+
+ if(type_embed.checked){
+ createannotation_val.checked=false;
+ multisegments_val.checked=false;
+ }
+ else{
+ $j("#createannotation_options").toggle(true);
+ createannotation_val.checked=true;
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ show_mic_record_val.checked=false;
+
+ }
+ polemic_val.checked=true;
+ segments_val.checked=true;
+ annotationslist_val.checked=false;
+ slideshare_val.checked=false;
+ social_val.checked=false;
+ annotation_val.checked=true;
+ sparkline_val.checked=true;
+ tweet_val.checked=false;
+ tagcloud_val.checked=false;
+ put_new_code();
+
+}
+
+function mode3(){
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ var annotation_val=document.getElementById('annotation_checkbox');
+ var tweet_val=document.getElementById('tweet_checkbox');
+ var segments_val=document.getElementById('segments_checkbox');
+ var multisegments_val=document.getElementById('multisegments_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var sparkline_val=document.getElementById('sparkline_checkbox');
+ var tagcloud_val=document.getElementById('tagcloud_checkbox');
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ var type_embed=document.getElementById("type_embed_div");
+ $j("#displayPolemicOptions").toggle(false);
+ $j("#displaySparklineOptions").toggle(false);
+ $j("#social_options").toggle(false);
+ $j("#sparkline_color_options").toggle(false);
+ display_polemic();
+ display_social();
+ display_sparkline();
+ if(type_embed.checked){
+ createannotation_val.checked=false;
+ multisegments_val.checked=false;
+ }
+ else{
+ $j("#createannotation_options").toggle(true);
+ createannotation_val.checked=true;
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ show_mic_record_val.checked=false;
+ }
+ polemic_val.checked=true;
+ segments_val.checked=true;
+ annotationslist_val.checked=true;
+ slideshare_val.checked=false;
+ social_val.checked=true;
+ annotation_val.checked=true;
+ tweet_val.checked=false;
+ sparkline_val.checked=true;
+ tagcloud_val.checked=true;
+ put_new_code();
+
+}
+function iframe_event(){
+ $j("#createannotation_block").toggle(true);
+ $j("#createannotation_options").toggle(true);
+ $j("#multisegments_block").toggle(false);
+ var element = document.getElementById(wrapper);
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ createannotation_val.checked=true;
+ if(element.style.display=="block"){
+ display_iframe_player();
+ }
+ iframe_code=generate_iframe_code();
+ $j("#player_id_code").val(iframe_code);
+ $j("#player_id_code").select();
+
+}
+
+function generate_iframeUrl(){
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ var annotation_val=document.getElementById('annotation_checkbox');
+ var tweet_val=document.getElementById('tweet_checkbox');
+ var segments_val=document.getElementById('segments_checkbox');
+ var multisegments_val=document.getElementById('multisegments_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var sparkline_val=document.getElementById('sparkline_checkbox');
+ var tagcloud_val=document.getElementById('tagcloud_checkbox');
+ var createannotation_polemics_val=document.getElementById('createannotation_polemics_checkbox');
+ var concatenate_projects_val=document.getElementById('concatenate_projects_checkbox');
+ iframeUrl= iframe_url;
+
+ if($j("#player_height").val()!=300)
+ iframeUrl+="&player_height="+$j("#player_height").val();
+ if ($j("#player_width").val()!=550)
+ iframeUrl+="&player_width="+$j("#player_width").val();
+
+ if(createannotation_val.checked){
+ iframeUrl+="&createannotation=True";
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ var set_tags_val=document.getElementById('set_tags');
+ if(show_mic_record_val.checked){
+ iframeUrl+="&show_mic_record=True";
+ }
+ if(set_tags_val.checked){
+ iframeUrl+="&tag_titles="+$j("#tag_list").val();
+ }
+ if(!createannotation_polemics_val.checked){
+ iframeUrl+="&createannotation_polemics=False";
+ }
+ }
+ if (polemic_val.checked){
+ tweet_type=document.getElementById("tweet_polemic");
+ if(tweet_type.checked){
+ iframeUrl+="&polemic=tweet";
+ }
+ else{
+ iframeUrl+="&polemic=all";
+ }
+ polemic_defaultColor=$j("#polemic_default_color").val();
+ defaultColor_code_array= polemic_defaultColor.split("#");
+ defaultColor_code=defaultColor_code_array[1];
+ polemic_foundColor=$j("#polemic_found_color").val();
+ foundColor_code_array = polemic_foundColor.split("#");
+ foundColor_code=foundColor_code_array[1];
+ polemic_okColor =$j("#polemic_ok_color").val();
+ polemic_okColor_code_array=polemic_okColor.split("#");
+ okColor_code=polemic_okColor_code_array[1];
+ polemic_koColor =$j("#polemic_ko_color").val();
+ polemic_koColor_code_array=polemic_koColor.split("#");
+ koColor_code=polemic_koColor_code_array[1];
+ polemic_refColor =$j("#polemic_ref_color").val();
+ polemic_refColor_code_array=polemic_refColor.split("#");
+ refColor_code=polemic_refColor_code_array[1];
+ polemic_qColor =$j("#polemic_q_color").val();
+ polemic_qColor_code_array=polemic_qColor.split("#");
+ qColor_code=polemic_qColor_code_array[1];
+ if(defaultColor_code!="585858")
+ iframeUrl+="&polemic_defaultColor="+defaultColor_code;
+ if(foundColor_code!="fc00ff")
+ iframeUrl+="&polemic_foundColor="+foundColor_code;
+ if(okColor_code!="1d973d")
+ iframeUrl+="&polemic_okColor="+okColor_code;
+ if(koColor_code!="ce0a15")
+ iframeUrl+="&polemic_koColor="+koColor_code;
+ if(refColor_code!="c5a62d")
+ iframeUrl+="&polemic_refColor="+refColor_code;
+ if(qColor_code!="036aae")
+ iframeUrl+="&polemic_qColor="+qColor_code;
+
+ }
+ else{
+ iframeUrl+="&polemic=False";
+ }
+ if(annotationslist_val.checked){
+ iframeUrl+="&annotations_list=True";
+ }
+ if(annotation_val.checked){
+ iframeUrl+="&annotation=True";
+ }
+ if(slideshare_val.checked){
+ iframeUrl+="&slideshare=True";
+ }
+ if(social_val.checked){
+ show_url=document.getElementById("show_url_checkbox");
+ show_twitter=document.getElementById("show_twitter_checkbox");
+ show_fb=document.getElementById("show_fb_checkbox");
+ show_gplus=document.getElementById("show_gplus_checkbox");
+ show_mail=document.getElementById("show_mail_checkbox");
+ iframeUrl+="&social=True";
+ if(!show_url.checked){
+ iframeUrl+="&show_url=False";
+ }
+ if(!show_twitter.checked){
+ iframeUrl+="&show_twitter=False";
+ }
+ if(!show_fb.checked){
+ iframeUrl+="&show_fb=False";
+ }
+ if(!show_gplus.checked){
+ iframeUrl+="&show_gplus=False";
+ }
+ if(!show_mail.checked){
+ iframeUrl+="&show_mail=False";
+ }
+ }
+ if(tweet_val.checked){
+ iframeUrl+="&tweet=True";
+ }
+ if(!segments_val.checked){
+ iframeUrl+="&segments=False";
+ }
+ if(sparkline_val.checked){
+ iframeUrl+="&sparkline=True";
+ sparkline_lineColor=$j("#sparkline_line_color").val();
+ lineColor_code_array= sparkline_lineColor.split("#");
+ lineColor_code=lineColor_code_array[1];
+ sparkline_fillColor=$j("#sparkline_fill_color").val();
+ fillColor_code_array = sparkline_fillColor.split("#");
+ fillColor_code=fillColor_code_array[1];
+ if(lineColor_code!="7492b4")
+ iframeUrl+="&sparkline_lineColor="+lineColor_code;
+ if(fillColor_code!="aeaeb8")
+ iframeUrl+="&sparkline_fillColor="+fillColor_code;
+ }
+ if(tagcloud_val.checked){
+ iframeUrl+="&tagcloud=True";
+ }
+ if(concatenate_projects_val.checked){
+ iframeUrl+="&concatenate_projects=True";
+ }
+
+ return iframeUrl;
+}
+
+function generate_iframe_code(){
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ iframeUrl=generate_iframeUrl();
+ player_width=parseInt($j("#player_width").val())+20;
+ player_height=parseInt($j("#player_height").val())+130;
+ if (createannotation_val.checked){
+ player_height+=281;
+ }
+ if(annotationslist_val.checked || slideshare_val.checked){
+ player_width+=430;
+ }
+ if(polemic_val.checked){
+ player_height+=100;
+
+ }
+ if(show_mic_record_val.checked){
+
+ player_height+=55;
+ }
+ iframe_code="<iframe src='"+iframeUrl+"' width='"+player_width+"' height='"+player_height+"' seamless='seamless'></iframe>";
+
+ return iframe_code;
+}
+
+function display_iframe_player(){
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ var code_embed=document.getElementById("player_id_code");
+ wrapper = "wrapper_"+player_id;
+ wrapper_id = "#"+wrapper;
+ iframeUrl= generate_iframeUrl();
+ player_width=parseInt($j("#player_width").val())+20;
+ player_height=parseInt($j("#player_height").val())+130;
+ if (createannotation_val.checked){
+ player_height+=300;
+ player_width+=50;
+ }
+ if(annotationslist_val.checked || slideshare_val.checked){
+ player_width+=430;
+ }
+ if(polemic_val.checked){
+ player_height+=100;
+
+ }
+ if(show_mic_record_val.checked){
+
+ player_height+=55;
+ }
+ frame = document.createElement("iframe");
+ frame.width = player_width;
+ frame.height = player_height;
+ frame.src = iframeUrl;
+ frame.frameBorder = 0;
+ frame.seamless = "seamless";
+ $j(wrapper_id).html(frame);
+}
+
+function set_default_color(code){
+ $j("#polemic_default_color").val("#"+code);
+ put_new_code();
+}
+
+function set_found_color(code){
+ $j("#polemic_found_color").val("#"+code);
+ put_new_code();
+}
+
+function set_line_color(code){
+ $j("#sparkline_line_color").val("#"+code);
+ put_new_code();
+}
+
+function set_fill_color(code){
+ $j("#sparkline_fill_color").val("#"+code);
+ put_new_code();
+}
+
+function refresh_player(){
+ var type_embed=document.getElementById("type_embed_div");
+ if (type_embed.checked){
+ var new_code=generate_div_code();
+ $j(wrapper_id).html(new_code);
+ }
+ else{
+ display_iframe_player();
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/ldt/ldt/static/ldt/js/embed/v2/embed.js Tue Mar 17 17:59:10 2015 +0100
@@ -0,0 +1,872 @@
+var display_state = "player";
+
+function toggle_display() {
+ $j.each(["player","ldt_iframe","seo_body","seo_meta","links"], function(i,display_str) {
+
+ var div_selector = "#"+display_str+"_code";
+ if(display_str === display_state) {
+ $j(div_selector).show();
+ }
+ else {
+ $j(div_selector).hide();
+ }
+ });
+}
+
+function init_events(){
+ toggle_display();
+ $j("#iframe_div_premode").toggle(false);
+ $j("#embed_personnalisation").toggle(false);
+ $j("#player_width").val(550);
+ $j("#player_height").val(300);
+ $j("#optionsExpArrow").toggle(true);
+ $j("#optionsCollArrow").toggle(false);
+ $j("#preModeExpArrow").toggle(true);
+ $j("#preModeCollArrow").toggle(false);
+ $j("#createannotation_block").toggle(false);
+ $j("#player_id_code").select();
+ $j("#polemic_color_options").toggle(false);
+ $j("#sparkline_color_options").toggle(false);
+ $j("#social_options").toggle(false);
+ $j("#displayPolemicOptions").toggle(false);
+ $j("#displaySparklineOptions").toggle(false);
+ $j("#polemic_default_color").val("#585858");
+ $j("#polemic_found_color").val("#fc00ff");
+ $j("#polemic_ok_color").val("#1d973d");
+ $j("#polemic_ko_color").val("#ce0a15");
+ $j("#polemic_ref_color").val("#c5a62d");
+ $j("#polemic_q_color").val("#036aae");
+ $j("#sparkline_line_color").val("#7492b4");
+ $j("#sparkline_fill_color").val("#aeaeb8");
+ var type_embed=document.getElementById("type_embed_div");
+ type_embed.checked=true;
+ $j("#createannotation_options").toggle(false);
+ mode1();
+
+ $j(".click_to_select").click(function(){
+ var i = $j(this).parent().find("input");
+ i.select();
+ });
+
+ $j('.ldt_json_link').click(function(e) {
+ e.preventDefault();
+ link = $j(e.target);
+ $j("#res_link_{{player_id}}").load(link.attr("href"));
+ $j("#res_link_{{player_id}}").show();
+ return false;
+ });
+
+ $j('#player_button').click(function(e) {
+ display_state = "player";
+ toggle_display();
+ $j("#player_id_code").select();
+ });
+ $j('#ldt_iframe_button').click(function(e) {
+ display_state = "ldt_iframe";
+ toggle_display();
+ $j("#ldt_iframe_id_code").select();
+ });
+ $j('#seo_body_button').click(function(e) {
+ display_state = "seo_body";
+ toggle_display();
+ $j("#seo_body_id_code").select();
+ });
+ $j('#seo_meta_button').click(function(e) {
+ display_state = "seo_meta";
+ toggle_display();
+ $j("#seo_meta_id_code").select();
+ });
+ $j('#links_button').click(function(e) {
+ display_state = "links";
+ toggle_display();
+ });
+
+ $j("#copy_button").click(function(e) {
+ alert($j("#"+display_state+"_code").html());
+ });
+
+ $j("#refresh_player_button").click(function(e){
+ refresh_player();
+ $j("#player_id_code").select();
+ });
+
+
+ $j('#links_button').click(function() {
+ var range = document.createRange();
+ range.selectNode(document.getElementById('links_code'));
+ window.getSelection().addRange(range);
+ });
+
+ $j('#displayPreMode').click(function(){
+ $j("#iframe_div_premode").slideToggle("fast");
+ $j("#preModeExpArrow").toggle();
+ $j("#preModeCollArrow").toggle();
+ });
+
+ $j("#displayEmbedOptions").click(function(){
+ $j("#embed_personnalisation").slideToggle("fast");
+ $j("#optionsExpArrow").toggle();
+ $j("#optionsCollArrow").toggle();
+
+ });
+
+ $j("#displayPolemicColorOptions").click(function(){
+ $j("#polemic_color_options").slideToggle("fast");
+ });
+
+ $j("#displaySparklineOptions").click(function(){
+ $j("#sparkline_color_options").slideToggle("fast");
+ });
+
+ $('.infostooltip').each( function () {
+ var desc = $(this).attr('data-desc');
+ if (desc == 'None') {
+ desc = '';
+ }
+ $(this).qtip({
+ content : {
+ text: '<b>' + $(this).attr('data-title') + '</b><br />' + desc
+ },
+ style: {
+ classes: 'ui-tooltip-dark ui-tooltip-rounded qtipldt'
+ },
+ border: {
+ 'width': 0,
+ 'color': '#505050'
+ },
+ position: {
+ my: 'top left',
+ at: 'bottom left'
+ }
+ });
+ });
+
+}
+
+function select_code(){
+ $j("#player_id_code").select();
+}
+
+function generate_base_embed_code(){
+ var player_width_val=$j("#player_width").val();
+ base='\
+<div> \n \
+ <div id="'+player_id+'_embed" style="float:left; width:'+player_width_val+';" class="iri_player_embed">\n\
+ </div>\n\
+<script type="text/javascript" src="'+LdtPlayer_core+'"></script>\n\
+<script type="text/javascript">\n\
+ if (typeof jQuery == "undefined") {\n\
+ jQuery = IriSP.jQuery;\n\
+ }\n\
+ var metadatas = {metadata: {url: "'+json_url+'"}};\n\
+ var metadata_key = "metadata";\n\
+ IriSP.libFiles.defaultDir = "'+defaultDir+'";\n\
+ IriSP.libFiles.locations.jwPlayerSWF = "'+jwPlayerSWF+'";\n\
+ IriSP.libFiles.locations.recordMicSwf = "'+recordMicSwf+'";\n\
+ IriSP.libFiles.locations.zeroClipboardSwf = "'+zeroClipboardSwf+'";\n\
+ IriSP.libFiles.locations.cssjQueryUI = "'+cssjQueryUI+'"\n\
+ IriSP.language = "'+LANGUAGE_CODE+'";\n\
+\n\
+ IriSP.widgetsDir = "'+widgetsDir+'";\n\
+ var _metadata = {\n\
+ url: metadatas[metadata_key].url + "?callback=?",\n\
+ format: "ldt"\n\
+ };\n\
+ var _config = {\n\
+ width: "'+player_width_val+'",\n\
+ container: "'+player_id+'_embed",\n\
+ css: "'+configCss+'",\n\
+ default_options: {\n\
+ metadata: _metadata\n\
+ },\n';
+
+ return base;
+
+}
+
+function generate_widget_code(){
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ var annotation_val=document.getElementById('annotation_checkbox');
+ var tweet_val=document.getElementById('tweet_checkbox');
+ var segments_val=document.getElementById('segments_checkbox');
+ var multisegments_val=document.getElementById('multisegments_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var sparkline_val=document.getElementById('sparkline_checkbox');
+ var tagcloud_val=document.getElementById('tagcloud_checkbox');
+ var player_height_val=$j('#player_height').val();
+ widget_code='\
+ widgets: [\n\
+ {\n\
+ type: "AutoPlayer",\n';
+
+ if (external_url!='None'){
+ widget_code+='\
+ video: "'+external_url+'",\n';
+ }
+
+ widget_code+='\
+ height: '+player_height_val+',\n\
+ autostart: true\n\
+ }';
+ if (polemic_val.checked){
+ defaultcolor= $j("#polemic_default_color").val();
+ foundcolor=$j("#polemic_found_color").val();
+ ok_color=$j("#polemic_ok_color").val();
+ ko_color=$j("#polemic_ko_color").val();
+ ref_color=$j("#polemic_ref_color").val();
+ q_color=$j("#polemic_q_color").val();
+ tweet_type=document.getElementById("tweet_polemic");
+ widget_code+='\
+ ,{\n\
+ type: "Polemic",\n';
+ if(tweet_type.checked){
+ widget_code+='\
+ annotation_type: "tweet",\n';
+ }
+ else{
+ widget_code+='\
+ annotation_type: false,\n';
+ }
+ widget_code+='\
+ defaultcolor: "'+defaultcolor+'",\n\
+ foundcolor: "'+foundcolor+'",\n\
+ polemics : [\n\
+ {\n\
+ "name" : "OK",\n\
+ "keywords" : [ "++" ],\n\
+ "color" : "'+ok_color+'"\n\
+ },\n\
+ {\n\
+ "name" : "KO",\n\
+ "keywords" : [ "--" ],\n\
+ "color" : "'+ko_color+'"\n\
+ },\n\
+ {\n\
+ "name" : "REF",\n\
+ "keywords" : [ "==" ],\n\
+ "color" : "'+ref_color+'"\n\
+ },\n\
+ {\n\
+ "name" : "Q",\n\
+ "keywords" : [ "?" ],\n\
+ "color" : "'+q_color+'"\n\
+ },\n\
+ ]\n\
+ }';
+ }
+
+ if(sparkline_val.checked){
+ linecolor=$j("#sparkline_line_color").val();
+ fillcolor=$j("#sparkline_fill_color").val();
+ widget_code+=',{\n\
+ type: "Sparkline",\n\
+ lineColor: "'+linecolor+'",\n\
+ fillColor: "'+fillcolor+'"\n\
+ }';
+ }
+
+ if(segments_val.checked){
+ widget_code+=',{\n\
+ type: "Segments",\n\
+ annotation_type: ["chap","découpage"]\n\
+ }';
+ }
+ if(multisegments_val.checked){
+ widget_code+=',{\n\
+ type: "MultiSegments",\n\
+ }';
+ }
+
+ widget_code+=',{\n\
+ type: "Slider"\n\
+ },{\n\
+ type: "Controller"\n\
+ },{\n\
+ type: "Mediafragment"\n\
+ }';
+ if(slideshare_val.checked){
+ widget_code+='\
+ ,{\n\
+ type: "Slideshare",\n\
+ container: "Slideshare_ext",\n\
+ embed_width: 400,\n\
+ embed_height: 334,\n\
+ annotation_type: "slide"\n\
+ }';
+ }
+
+ if(social_val.checked){
+ show_url=document.getElementById("show_url_checkbox");
+ show_twitter=document.getElementById("show_twitter_checkbox");
+ show_fb=document.getElementById("show_fb_checkbox");
+ show_gplus=document.getElementById("show_gplus_checkbox");
+ show_mail=document.getElementById("show_mail_checkbox");
+
+ widget_code+='\
+ ,{\n\
+ type: "Social",\n\
+ container: "Social_ext",\n\
+ url: document.location.href.replace(/#.*$/,""),\n\
+ text: document.title,\n';
+
+ if(show_url.checked){
+ widget_code+='\
+ show_url: true,\n';
+ }
+ else{
+ widget_code+='\
+ show_url: false,\n';
+ }
+ if(show_twitter.checked){
+ widget_code+='\
+ show_twitter: true,\n';
+ }
+ else{
+ widget_code+='\
+ show_twitter: false,\n';
+ }
+ if(show_fb.checked){
+ widget_code+='\
+ show_fb: true,\n';
+ }
+ else{
+ widget_code+='\
+ show_fb: false,\n';
+ }
+ if(show_gplus.checked){
+ widget_code+='\
+ show_gplus: true,\n';
+ }
+ else{
+ widget_code+='\
+ show_gplus: false,\n';
+ }
+ if(show_mail.checked){
+ widget_code+='\
+ show_mail: true\n';
+ }
+ else{
+ widget_code+='\
+ show_mail: false\n';
+ }
+
+ widget_code+='}';
+ }
+ if(annotation_val.checked){
+ widget_code+='\
+ ,{\n\
+ type: "Annotation",\n\
+ start_minimized: true,\n\
+ site_name : "Lignes de Temps",\n\
+ annotation_type: ["chap","découpage"]\n\
+ }';
+ }
+ if(tweet_val.checked){
+ widget_code+='\
+ ,{\n\
+ type: "Tweet",\n\
+ hide_timeout: 5000\n\
+ }';
+ }
+
+ if(annotationslist_val.checked){
+ widget_code+=',{\n\
+ type: "AnnotationsList",\n\
+ ajax_url: "'+segment_api+'",\n\
+ container: "AnnotationsList_ext",\n\
+ ajax_granularity : 300000,\n\
+ default_thumbnail : "'+default_thumbnail+'",\n\
+ show_audio: true,\n\
+ rtmp_streamer: "rtmp://media.iri.centrepompidou.fr/ddc_micro_record/"\n\
+ }';
+ }
+
+ if(tagcloud_val.checked){
+ widget_code+=',{\n\
+ type: "Tagcloud",\n\
+ }';
+ }
+
+ widget_code+=']\n\
+ };\n';
+
+ return widget_code;
+
+}
+
+function generate_div_code(){
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ code=generate_base_embed_code();
+ code+=generate_widget_code();
+ code+='\n\
+ _myPlayer = new IriSP.Metadataplayer(_config);\n\
+ </script>\n';
+ if(social_val.checked){
+ code+='\
+ <div id="Social_ext" class="Ldt-TraceMe Ldt-Widget" style="float:right; width:400px; height:24px;" widget-type="Social">\n\
+ </div>\n';
+ }
+ if(slideshare_val.checked){
+ code+='\
+ <div id="Slideshare_ext" class="ext_widget Ldt-TraceMe Ldt-Widget" style="float:left; width:400px;" widget-type="Slideshare">\n\
+ </div>\n';
+ }
+
+ if(annotationslist_val.checked){
+ code+='\
+ <div id="AnnotationsList_ext" class="ext_widget Ldt-TraceMe Ldt-Widget" style="float:left; width:400px;" widget-type="AnnotationsList"></div>\n';
+ }
+
+ code+='\
+</div>\n';
+ return code;
+}
+
+function put_new_code(){
+ var type_embed=document.getElementById("type_embed_div");
+ wrapper = "wrapper_"+player_id;
+ wrapper_id = "#"+wrapper;
+ var element = document.getElementById(wrapper);
+ var code_embed=document.getElementById("player_id_code");
+ if(type_embed.checked){
+ var new_code=generate_div_code();
+ }
+ else{
+ var new_code=generate_iframe_code();
+ }
+ code_embed.value= new_code;
+ $j("#player_id_code").select();
+}
+
+function div_event(){
+ $j("#createannotation_block").toggle(false);
+ $j("#multisegments_block").toggle(true);
+ put_new_code();
+}
+
+function toggle() {
+ wrapper="wrapper_"+player_id;
+ wrapper_id="#"+wrapper;
+ var player_div = document.getElementById("player_div");
+ var element = document.getElementById(wrapper);
+ var text = document.getElementById("displayPlayer");
+ var type_embed=document.getElementById("type_embed_div");
+ if(player_div.style.display==="none") {
+ if (type_embed.checked){
+ var new_code=generate_div_code();
+ $j(wrapper_id).html(new_code);
+ }
+ else{
+ display_iframe_player();
+ }
+ player_div.style.display="block";
+ text.innerHTML = translate_hide;
+ }
+ else {
+ $j(wrapper_id).html('');
+ player_div.style.display="none";
+ text.innerHTML = translate_show;
+ }
+}
+
+function display_polemic(){
+ $j("#displayPolemicOptions").slideToggle("fast");
+ $j("#polemic_color_options").toggle(false);
+}
+
+function display_sparkline(){
+ $j("#displaySparklineOptions").slideToggle("fast");
+ $j("#sparkline_color_options").toggle(false);
+}
+
+function display_social(){
+ $j("#social_options").slideToggle("fast");
+}
+
+function display_createannotation(){
+ $j("#createannotation_options").slideToggle("fast");
+}
+
+function mode1(){
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ var annotation_val=document.getElementById('annotation_checkbox');
+ var tweet_val=document.getElementById('tweet_checkbox');
+ var segments_val=document.getElementById('segments_checkbox');
+ var multisegments_val=document.getElementById('multisegments_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var sparkline_val=document.getElementById('sparkline_checkbox');
+ var tagcloud_val=document.getElementById('tagcloud_checkbox');
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+
+ var type_embed=document.getElementById("type_embed_div");
+
+ if(type_embed.checked){
+ createannotation_val.checked=false;
+ }
+ else{
+ $j("#createannotation_options").toggle(true);
+ createannotation_val.checked=true;
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ show_mic_record_val.checked=false;
+ }
+ $j("#displayPolemicOptions").toggle(false);
+ $j("#displaySparklineOptions").toggle(false);
+ $j("#social_options").toggle(false);
+ $j("#sparkline_color_options").toggle(false);
+ multisegments_val.checked=false;
+ polemic_val.checked=false;
+ segments_val.checked=true;
+ annotationslist_val.checked=false;
+ slideshare_val.checked=false;
+ social_val.checked=false;
+ annotation_val.checked=false;
+ tweet_val.checked=false;
+ sparkline_val.checked=false;
+ tagcloud_val.checked=false;
+ put_new_code();
+}
+
+function mode2(){
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ var annotation_val=document.getElementById('annotation_checkbox');
+ var tweet_val=document.getElementById('tweet_checkbox');
+ var segments_val=document.getElementById('segments_checkbox');
+ var multisegments_val=document.getElementById('multisegments_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var sparkline_val=document.getElementById('sparkline_checkbox');
+ var tagcloud_val=document.getElementById('tagcloud_checkbox');
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ var type_embed=document.getElementById("type_embed_div");
+ $j("#displayPolemicOptions").toggle(false);
+ $j("#displaySparklineOptions").toggle(false);
+ $j("#social_options").toggle(false);
+ $j("#sparkline_color_options").toggle(false);
+ display_polemic();
+ display_sparkline();
+
+ if(type_embed.checked){
+ createannotation_val.checked=false;
+ multisegments_val.checked=false;
+ }
+ else{
+ $j("#createannotation_options").toggle(true);
+ createannotation_val.checked=true;
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ show_mic_record_val.checked=false;
+
+ }
+ polemic_val.checked=true;
+ segments_val.checked=true;
+ multisegments_val.checked=false;
+ annotationslist_val.checked=false;
+ slideshare_val.checked=false;
+ social_val.checked=false;
+ annotation_val.checked=true;
+ sparkline_val.checked=true;
+ tweet_val.checked=false;
+ tagcloud_val.checked=false;
+ put_new_code();
+
+}
+
+function mode3(){
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ var annotation_val=document.getElementById('annotation_checkbox');
+ var tweet_val=document.getElementById('tweet_checkbox');
+ var segments_val=document.getElementById('segments_checkbox');
+ var multisegments_val=document.getElementById('multisegments_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var sparkline_val=document.getElementById('sparkline_checkbox');
+ var tagcloud_val=document.getElementById('tagcloud_checkbox');
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ var type_embed=document.getElementById("type_embed_div");
+ $j("#displayPolemicOptions").toggle(false);
+ $j("#displaySparklineOptions").toggle(false);
+ $j("#social_options").toggle(false);
+ $j("#sparkline_color_options").toggle(false);
+ display_polemic();
+ display_social();
+ display_sparkline();
+ if(type_embed.checked){
+ createannotation_val.checked=false;
+ }
+ else{
+ $j("#createannotation_options").toggle(true);
+ createannotation_val.checked=true;
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ show_mic_record_val.checked=false;
+ }
+ polemic_val.checked=true;
+ segments_val.checked=true;
+ multisegments_val.checked=false;
+ annotationslist_val.checked=true;
+ slideshare_val.checked=false;
+ social_val.checked=true;
+ annotation_val.checked=true;
+ tweet_val.checked=false;
+ sparkline_val.checked=true;
+ tagcloud_val.checked=true;
+ put_new_code();
+
+}
+function iframe_event(){
+ $j("#createannotation_block").toggle(true);
+ $j("#createannotation_options").toggle(true);
+ var element = document.getElementById(wrapper);
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ createannotation_val.checked=true;
+ if(element.style.display=="block"){
+ display_iframe_player();
+ }
+ iframe_code=generate_iframe_code();
+ $j("#player_id_code").val(iframe_code);
+ $j("#player_id_code").select();
+
+}
+
+function generate_iframeUrl(){
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var social_val=document.getElementById('social_checkbox');
+ var annotation_val=document.getElementById('annotation_checkbox');
+ var tweet_val=document.getElementById('tweet_checkbox');
+ var segments_val=document.getElementById('segments_checkbox');
+ var multisegments_val=document.getElementById('multisegments_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var sparkline_val=document.getElementById('sparkline_checkbox');
+ var tagcloud_val=document.getElementById('tagcloud_checkbox');
+ var createannotation_polemics_val=document.getElementById('createannotation_polemics_checkbox');
+ var concatenate_projects_val=document.getElementById('concatenate_projects_checkbox');
+ iframeUrl= iframe_url;
+
+ if($j("#player_height").val()!=300)
+ iframeUrl+="&player_height="+$j("#player_height").val();
+ if ($j("#player_width").val()!=550)
+ iframeUrl+="&player_width="+$j("#player_width").val();
+
+ if(createannotation_val.checked){
+ iframeUrl+="&createannotation=True";
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ var set_tags_val=document.getElementById('set_tags');
+ if(show_mic_record_val.checked){
+ iframeUrl+="&show_mic_record=True";
+ }
+ if(set_tags_val.checked){
+ iframeUrl+="&tag_titles="+$j("#tag_list").val();
+ }
+ if(!createannotation_polemics_val.checked){
+ iframeUrl+="&createannotation_polemics=False";
+ }
+ }
+ if (polemic_val.checked){
+ tweet_type=document.getElementById("tweet_polemic");
+ if(tweet_type.checked){
+ iframeUrl+="&polemic=tweet";
+ }
+ else{
+ iframeUrl+="&polemic=all";
+ }
+ polemic_defaultColor=$j("#polemic_default_color").val();
+ defaultColor_code_array= polemic_defaultColor.split("#");
+ defaultColor_code=defaultColor_code_array[1];
+ polemic_foundColor=$j("#polemic_found_color").val();
+ foundColor_code_array = polemic_foundColor.split("#");
+ foundColor_code=foundColor_code_array[1];
+ polemic_okColor =$j("#polemic_ok_color").val();
+ polemic_okColor_code_array=polemic_okColor.split("#");
+ okColor_code=polemic_okColor_code_array[1];
+ polemic_koColor =$j("#polemic_ko_color").val();
+ polemic_koColor_code_array=polemic_koColor.split("#");
+ koColor_code=polemic_koColor_code_array[1];
+ polemic_refColor =$j("#polemic_ref_color").val();
+ polemic_refColor_code_array=polemic_refColor.split("#");
+ refColor_code=polemic_refColor_code_array[1];
+ polemic_qColor =$j("#polemic_q_color").val();
+ polemic_qColor_code_array=polemic_qColor.split("#");
+ qColor_code=polemic_qColor_code_array[1];
+ if(defaultColor_code!="585858")
+ iframeUrl+="&polemic_defaultColor="+defaultColor_code;
+ if(foundColor_code!="fc00ff")
+ iframeUrl+="&polemic_foundColor="+foundColor_code;
+ if(okColor_code!="1d973d")
+ iframeUrl+="&polemic_okColor="+okColor_code;
+ if(koColor_code!="ce0a15")
+ iframeUrl+="&polemic_koColor="+koColor_code;
+ if(refColor_code!="c5a62d")
+ iframeUrl+="&polemic_refColor="+refColor_code;
+ if(qColor_code!="036aae")
+ iframeUrl+="&polemic_qColor="+qColor_code;
+
+ }
+ else{
+ iframeUrl+="&polemic=False";
+ }
+ if(annotationslist_val.checked){
+ iframeUrl+="&annotations_list=True";
+ }
+ if(annotation_val.checked){
+ iframeUrl+="&annotation=True";
+ }
+ if(slideshare_val.checked){
+ iframeUrl+="&slideshare=True";
+ }
+ if(social_val.checked){
+ show_url=document.getElementById("show_url_checkbox");
+ show_twitter=document.getElementById("show_twitter_checkbox");
+ show_fb=document.getElementById("show_fb_checkbox");
+ show_gplus=document.getElementById("show_gplus_checkbox");
+ show_mail=document.getElementById("show_mail_checkbox");
+ iframeUrl+="&social=True";
+ if(!show_url.checked){
+ iframeUrl+="&show_url=False";
+ }
+ if(!show_twitter.checked){
+ iframeUrl+="&show_twitter=False";
+ }
+ if(!show_fb.checked){
+ iframeUrl+="&show_fb=False";
+ }
+ if(!show_gplus.checked){
+ iframeUrl+="&show_gplus=False";
+ }
+ if(!show_mail.checked){
+ iframeUrl+="&show_mail=False";
+ }
+ }
+ if(tweet_val.checked){
+ iframeUrl+="&tweet=True";
+ }
+ if(!segments_val.checked){
+ iframeUrl+="&segments=False";
+ }
+ if(multisegments_val.checked){
+ iframeUrl+="&multisegments=True"
+ }
+ if(sparkline_val.checked){
+ iframeUrl+="&sparkline=True";
+ sparkline_lineColor=$j("#sparkline_line_color").val();
+ lineColor_code_array= sparkline_lineColor.split("#");
+ lineColor_code=lineColor_code_array[1];
+ sparkline_fillColor=$j("#sparkline_fill_color").val();
+ fillColor_code_array = sparkline_fillColor.split("#");
+ fillColor_code=fillColor_code_array[1];
+ if(lineColor_code!="7492b4")
+ iframeUrl+="&sparkline_lineColor="+lineColor_code;
+ if(fillColor_code!="aeaeb8")
+ iframeUrl+="&sparkline_fillColor="+fillColor_code;
+ }
+ if(tagcloud_val.checked){
+ iframeUrl+="&tagcloud=True";
+ }
+ if(concatenate_projects_val.checked){
+ iframeUrl+="&concatenate_projects=True";
+ }
+
+ return iframeUrl;
+}
+
+function generate_iframe_code(){
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ iframeUrl=generate_iframeUrl();
+ player_width=parseInt($j("#player_width").val())+20;
+ player_height=parseInt($j("#player_height").val())+130;
+ if (createannotation_val.checked){
+ player_height+=281;
+ }
+ if(annotationslist_val.checked || slideshare_val.checked){
+ player_width+=430;
+ }
+ if(polemic_val.checked){
+ player_height+=100;
+
+ }
+ if(show_mic_record_val.checked){
+
+ player_height+=55;
+ }
+ iframe_code="<iframe src='"+iframeUrl+"' width='"+player_width+"' height='"+player_height+"' seamless='seamless'></iframe>";
+
+ return iframe_code;
+}
+
+function display_iframe_player(){
+ var createannotation_val=document.getElementById('createannotation_checkbox');
+ var annotationslist_val=document.getElementById('annotations_list_checkbox');
+ var polemic_val=document.getElementById('polemic_checkbox');
+ var slideshare_val=document.getElementById('slideshare_checkbox');
+ var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
+ var code_embed=document.getElementById("player_id_code");
+ wrapper = "wrapper_"+player_id;
+ wrapper_id = "#"+wrapper;
+ iframeUrl= generate_iframeUrl();
+ player_width=parseInt($j("#player_width").val())+20;
+ player_height=parseInt($j("#player_height").val())+130;
+ if (createannotation_val.checked){
+ player_height+=300;
+ player_width+=50;
+ }
+ if(annotationslist_val.checked || slideshare_val.checked){
+ player_width+=430;
+ }
+ if(polemic_val.checked){
+ player_height+=100;
+
+ }
+ if(show_mic_record_val.checked){
+
+ player_height+=55;
+ }
+ frame = document.createElement("iframe");
+ frame.width = player_width;
+ frame.height = player_height;
+ frame.src = iframeUrl;
+ frame.frameBorder = 0;
+ frame.seamless = "seamless";
+ $j(wrapper_id).html(frame);
+}
+
+function set_default_color(code){
+ $j("#polemic_default_color").val("#"+code);
+ put_new_code();
+}
+
+function set_found_color(code){
+ $j("#polemic_found_color").val("#"+code);
+ put_new_code();
+}
+
+function set_line_color(code){
+ $j("#sparkline_line_color").val("#"+code);
+ put_new_code();
+}
+
+function set_fill_color(code){
+ $j("#sparkline_fill_color").val("#"+code);
+ put_new_code();
+}
+
+function refresh_player(){
+ var type_embed=document.getElementById("type_embed_div");
+ if (type_embed.checked){
+ var new_code=generate_div_code();
+ $j(wrapper_id).html(new_code);
+ }
+ else{
+ display_iframe_player();
+ }
+}
--- a/src/ldt/ldt/static/ldt/js/embed_popup.js Wed Mar 11 12:02:26 2015 +0100
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,853 +0,0 @@
-var display_state = "player";
-
-function toggle_display() {
- $j.each(["player","ldt_iframe","seo_body","seo_meta","links"], function(i,display_str) {
-
- var div_selector = "#"+display_str+"_code";
- if(display_str === display_state) {
- $j(div_selector).show();
- }
- else {
- $j(div_selector).hide();
- }
- });
-}
-
-function init_events(){
- toggle_display();
- $j("#iframe_div_premode").toggle(false);
- $j("#embed_personnalisation").toggle(false);
- $j("#player_width").val(550);
- $j("#player_height").val(300);
- $j("#optionsExpArrow").toggle(true);
- $j("#optionsCollArrow").toggle(false);
- $j("#preModeExpArrow").toggle(true);
- $j("#preModeCollArrow").toggle(false);
- $j("#createannotation_block").toggle(false);
- $j("#player_id_code").select();
- $j("#polemic_color_options").toggle(false);
- $j("#sparkline_color_options").toggle(false);
- $j("#social_options").toggle(false);
- $j("#displayPolemicOptions").toggle(false);
- $j("#displaySparklineOptions").toggle(false);
- $j("#polemic_default_color").val("#585858");
- $j("#polemic_found_color").val("#fc00ff");
- $j("#polemic_ok_color").val("#1d973d");
- $j("#polemic_ko_color").val("#ce0a15");
- $j("#polemic_ref_color").val("#c5a62d");
- $j("#polemic_q_color").val("#036aae");
- $j("#sparkline_line_color").val("#7492b4");
- $j("#sparkline_fill_color").val("#aeaeb8");
- var type_embed=document.getElementById("type_embed_div");
- type_embed.checked=true;
- $j("#createannotation_options").toggle(false);
- mode1();
-
- $j(".click_to_select").click(function(){
- var i = $j(this).parent().find("input");
- i.select();
- });
-
- $j('.ldt_json_link').click(function(e) {
- e.preventDefault();
- link = $j(e.target);
- $j("#res_link_{{player_id}}").load(link.attr("href"));
- $j("#res_link_{{player_id}}").show();
- return false;
- });
-
- $j('#player_button').click(function(e) {
- display_state = "player";
- toggle_display();
- $j("#player_id_code").select();
- });
- $j('#ldt_iframe_button').click(function(e) {
- display_state = "ldt_iframe";
- toggle_display();
- $j("#ldt_iframe_id_code").select();
- });
- $j('#seo_body_button').click(function(e) {
- display_state = "seo_body";
- toggle_display();
- $j("#seo_body_id_code").select();
- });
- $j('#seo_meta_button').click(function(e) {
- display_state = "seo_meta";
- toggle_display();
- $j("#seo_meta_id_code").select();
- });
- $j('#links_button').click(function(e) {
- display_state = "links";
- toggle_display();
- });
-
- $j("#copy_button").click(function(e) {
- alert($j("#"+display_state+"_code").html());
- });
-
- $j("#refresh_player_button").click(function(e){
- refresh_player();
- $j("#player_id_code").select();
- });
-
-
- $j('#links_button').click(function() {
- var range = document.createRange();
- range.selectNode(document.getElementById('links_code'));
- window.getSelection().addRange(range);
- });
-
- $j('#displayPreMode').click(function(){
- $j("#iframe_div_premode").slideToggle("fast");
- $j("#preModeExpArrow").toggle();
- $j("#preModeCollArrow").toggle();
- });
-
- $j("#displayEmbedOptions").click(function(){
- $j("#embed_personnalisation").slideToggle("fast");
- $j("#optionsExpArrow").toggle();
- $j("#optionsCollArrow").toggle();
-
- });
-
- $j("#displayPolemicColorOptions").click(function(){
- $j("#polemic_color_options").slideToggle("fast");
- });
-
- $j("#displaySparklineOptions").click(function(){
- $j("#sparkline_color_options").slideToggle("fast");
- });
-
- $('.infostooltip').each( function () {
- var desc = $(this).attr('data-desc');
- if (desc == 'None') {
- desc = '';
- }
- $(this).qtip({
- content : {
- text: '<b>' + $(this).attr('data-title') + '</b><br />' + desc
- },
- style: {
- classes: 'ui-tooltip-dark ui-tooltip-rounded qtipldt'
- },
- border: {
- 'width': 0,
- 'color': '#505050'
- },
- position: {
- my: 'top left',
- at: 'bottom left'
- }
- });
- });
-
-}
-
-function select_code(){
- $j("#player_id_code").select();
-}
-
-function generate_base_embed_code(){
- var player_width_val=$j("#player_width").val();
- base='\
-<div> \n \
- <div id="'+player_id+'_embed" style="float:left; width:'+player_width_val+';" class="iri_player_embed">\n\
- </div>\n\
-<script type="text/javascript" src="'+LdtPlayer_core+'"></script>\n\
-<script type="text/javascript">\n\
- if (typeof jQuery == "undefined") {\n\
- jQuery = IriSP.jQuery;\n\
- }\n\
- var metadatas = {metadata: {url: "'+json_url+'"}};\n\
- var metadata_key = "metadata";\n\
- IriSP.libFiles.defaultDir = "'+defaultDir+'";\n\
- IriSP.libFiles.locations.jwPlayerSWF = "'+jwPlayerSWF+'";\n\
- IriSP.libFiles.locations.recordMicSwf = "'+recordMicSwf+'";\n\
- IriSP.libFiles.locations.zeroClipboardSwf = "'+zeroClipboardSwf+'";\n\
- IriSP.libFiles.locations.cssjQueryUI = "'+cssjQueryUI+'"\n\
- IriSP.language = "'+LANGUAGE_CODE+'";\n\
-\n\
- IriSP.widgetsDir = "'+widgetsDir+'";\n\
- var _metadata = {\n\
- url: metadatas[metadata_key].url + "?callback=?",\n\
- format: "ldt"\n\
- };\n\
- var _config = {\n\
- width: "'+player_width_val+'",\n\
- container: "'+player_id+'_embed",\n\
- css: "'+configCss+'",\n\
- default_options: {\n\
- metadata: _metadata\n\
- },\n';
-
- return base;
-
-}
-
-function generate_widget_code(){
- var annotationslist_val=document.getElementById('annotations_list_checkbox');
- var slideshare_val=document.getElementById('slideshare_checkbox');
- var social_val=document.getElementById('social_checkbox');
- var annotation_val=document.getElementById('annotation_checkbox');
- var tweet_val=document.getElementById('tweet_checkbox');
- var segments_val=document.getElementById('segments_checkbox');
- var polemic_val=document.getElementById('polemic_checkbox');
- var sparkline_val=document.getElementById('sparkline_checkbox');
- var tagcloud_val=document.getElementById('tagcloud_checkbox');
- var player_height_val=$j('#player_height').val();
- widget_code='\
- widgets: [\n\
- {\n\
- type: "AutoPlayer",\n';
-
- if (external_url!='None'){
- widget_code+='\
- video: "'+external_url+'",\n';
- }
-
- widget_code+='\
- height: '+player_height_val+',\n\
- autostart: true\n\
- }';
- if (polemic_val.checked){
- defaultcolor= $j("#polemic_default_color").val();
- foundcolor=$j("#polemic_found_color").val();
- ok_color=$j("#polemic_ok_color").val();
- ko_color=$j("#polemic_ko_color").val();
- ref_color=$j("#polemic_ref_color").val();
- q_color=$j("#polemic_q_color").val();
- tweet_type=document.getElementById("tweet_polemic");
- widget_code+='\
- ,{\n\
- type: "Polemic",\n';
- if(tweet_type.checked){
- widget_code+='\
- annotation_type: "tweet",\n';
- }
- else{
- widget_code+='\
- annotation_type: false,\n';
- }
- widget_code+='\
- defaultcolor: "'+defaultcolor+'",\n\
- foundcolor: "'+foundcolor+'",\n\
- polemics : [\n\
- {\n\
- "name" : "OK",\n\
- "keywords" : [ "++" ],\n\
- "color" : "'+ok_color+'"\n\
- },\n\
- {\n\
- "name" : "KO",\n\
- "keywords" : [ "--" ],\n\
- "color" : "'+ko_color+'"\n\
- },\n\
- {\n\
- "name" : "REF",\n\
- "keywords" : [ "==" ],\n\
- "color" : "'+ref_color+'"\n\
- },\n\
- {\n\
- "name" : "Q",\n\
- "keywords" : [ "?" ],\n\
- "color" : "'+q_color+'"\n\
- },\n\
- ]\n\
- }';
- }
-
- if(sparkline_val.checked){
- linecolor=$j("#sparkline_line_color").val();
- fillcolor=$j("#sparkline_fill_color").val();
- widget_code+=',{\n\
- type: "Sparkline",\n\
- lineColor: "'+linecolor+'",\n\
- fillColor: "'+fillcolor+'"\n\
- }';
- }
-
- if(segments_val.checked){
- widget_code+=',{\n\
- type: "Segments",\n\
- annotation_type: ["chap","découpage"]\n\
- }';
- }
- widget_code+=',{\n\
- type: "Slider"\n\
- },{\n\
- type: "Controller"\n\
- },{\n\
- type: "Mediafragment"\n\
- }';
- if(slideshare_val.checked){
- widget_code+='\
- ,{\n\
- type: "Slideshare",\n\
- container: "Slideshare_ext",\n\
- embed_width: 400,\n\
- embed_height: 334,\n\
- annotation_type: "slide"\n\
- }';
- }
-
- if(social_val.checked){
- show_url=document.getElementById("show_url_checkbox");
- show_twitter=document.getElementById("show_twitter_checkbox");
- show_fb=document.getElementById("show_fb_checkbox");
- show_gplus=document.getElementById("show_gplus_checkbox");
- show_mail=document.getElementById("show_mail_checkbox");
-
- widget_code+='\
- ,{\n\
- type: "Social",\n\
- container: "Social_ext",\n\
- url: document.location.href.replace(/#.*$/,""),\n\
- text: document.title,\n';
-
- if(show_url.checked){
- widget_code+='\
- show_url: true,\n';
- }
- else{
- widget_code+='\
- show_url: false,\n';
- }
- if(show_twitter.checked){
- widget_code+='\
- show_twitter: true,\n';
- }
- else{
- widget_code+='\
- show_twitter: false,\n';
- }
- if(show_fb.checked){
- widget_code+='\
- show_fb: true,\n';
- }
- else{
- widget_code+='\
- show_fb: false,\n';
- }
- if(show_gplus.checked){
- widget_code+='\
- show_gplus: true,\n';
- }
- else{
- widget_code+='\
- show_gplus: false,\n';
- }
- if(show_mail.checked){
- widget_code+='\
- show_mail: true\n';
- }
- else{
- widget_code+='\
- show_mail: false\n';
- }
-
- widget_code+='}';
- }
- if(annotation_val.checked){
- widget_code+='\
- ,{\n\
- type: "Annotation",\n\
- start_minimized: true,\n\
- site_name : "Lignes de Temps",\n\
- annotation_type: ["chap","découpage"]\n\
- }';
- }
- if(tweet_val.checked){
- widget_code+='\
- ,{\n\
- type: "Tweet",\n\
- hide_timeout: 5000\n\
- }';
- }
-
- if(annotationslist_val.checked){
- widget_code+=',{\n\
- type: "AnnotationsList",\n\
- ajax_url: "'+segment_api+'",\n\
- container: "AnnotationsList_ext",\n\
- ajax_granularity : 300000,\n\
- default_thumbnail : "'+default_thumbnail+'",\n\
- show_audio: true,\n\
- rtmp_streamer: "rtmp://media.iri.centrepompidou.fr/ddc_micro_record/"\n\
- }';
- }
-
- if(tagcloud_val.checked){
- widget_code+=',{\n\
- type: "Tagcloud",\n\
- }';
- }
-
- widget_code+=']\n\
- };\n';
-
- return widget_code;
-
-}
-
-function generate_div_code(){
- var annotationslist_val=document.getElementById('annotations_list_checkbox');
- var slideshare_val=document.getElementById('slideshare_checkbox');
- var social_val=document.getElementById('social_checkbox');
- code=generate_base_embed_code();
- code+=generate_widget_code();
- code+='\n\
- _myPlayer = new IriSP.Metadataplayer(_config);\n\
- </script>\n';
- if(social_val.checked){
- code+='\
- <div id="Social_ext" class="Ldt-TraceMe Ldt-Widget" style="float:right; width:400px; height:24px;" widget-type="Social">\n\
- </div>\n';
- }
- if(slideshare_val.checked){
- code+='\
- <div id="Slideshare_ext" class="ext_widget Ldt-TraceMe Ldt-Widget" style="float:left; width:400px;" widget-type="Slideshare">\n\
- </div>\n';
- }
-
- if(annotationslist_val.checked){
- code+='\
- <div id="AnnotationsList_ext" class="ext_widget Ldt-TraceMe Ldt-Widget" style="float:left; width:400px;" widget-type="AnnotationsList"></div>\n';
- }
-
- code+='\
-</div>\n';
- return code;
-}
-
-function put_new_code(){
- var type_embed=document.getElementById("type_embed_div");
- wrapper = "wrapper_"+player_id;
- wrapper_id = "#"+wrapper;
- var element = document.getElementById(wrapper);
- var code_embed=document.getElementById("player_id_code");
- if(type_embed.checked){
- var new_code=generate_div_code();
- }
- else{
- var new_code=generate_iframe_code();
- }
- code_embed.value= new_code;
- $j("#player_id_code").select();
-}
-
-function div_event(){
- $j("#createannotation_block").toggle(false);
- put_new_code();
-}
-
-function toggle() {
- wrapper="wrapper_"+player_id;
- wrapper_id="#"+wrapper;
- var player_div = document.getElementById("player_div");
- var element = document.getElementById(wrapper);
- var text = document.getElementById("displayPlayer");
- var type_embed=document.getElementById("type_embed_div");
- if(player_div.style.display==="none") {
- if (type_embed.checked){
- var new_code=generate_div_code();
- $j(wrapper_id).html(new_code);
- }
- else{
- display_iframe_player();
- }
- player_div.style.display="block";
- text.innerHTML = translate_hide;
- }
- else {
- $j(wrapper_id).html('');
- player_div.style.display="none";
- text.innerHTML = translate_show;
- }
-}
-
-function display_polemic(){
- $j("#displayPolemicOptions").slideToggle("fast");
- $j("#polemic_color_options").toggle(false);
-}
-
-function display_sparkline(){
- $j("#displaySparklineOptions").slideToggle("fast");
- $j("#sparkline_color_options").toggle(false);
-}
-
-function display_social(){
- $j("#social_options").slideToggle("fast");
-}
-
-function display_createannotation(){
- $j("#createannotation_options").slideToggle("fast");
-}
-
-function mode1(){
- var annotationslist_val=document.getElementById('annotations_list_checkbox');
- var slideshare_val=document.getElementById('slideshare_checkbox');
- var social_val=document.getElementById('social_checkbox');
- var annotation_val=document.getElementById('annotation_checkbox');
- var tweet_val=document.getElementById('tweet_checkbox');
- var segments_val=document.getElementById('segments_checkbox');
- var polemic_val=document.getElementById('polemic_checkbox');
- var sparkline_val=document.getElementById('sparkline_checkbox');
- var tagcloud_val=document.getElementById('tagcloud_checkbox');
- var createannotation_val=document.getElementById('createannotation_checkbox');
-
- var type_embed=document.getElementById("type_embed_div");
-
- if(type_embed.checked){
- createannotation_val.checked=false;
- }
- else{
- $j("#createannotation_options").toggle(true);
- createannotation_val.checked=true;
- var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
- show_mic_record_val.checked=false;
- }
- $j("#displayPolemicOptions").toggle(false);
- $j("#displaySparklineOptions").toggle(false);
- $j("#social_options").toggle(false);
- $j("#sparkline_color_options").toggle(false);
- polemic_val.checked=false;
- segments_val.checked=true;
- annotationslist_val.checked=false;
- slideshare_val.checked=false;
- social_val.checked=false;
- annotation_val.checked=false;
- tweet_val.checked=false;
- sparkline_val.checked=false;
- tagcloud_val.checked=false;
- put_new_code();
-}
-
-function mode2(){
- var annotationslist_val=document.getElementById('annotations_list_checkbox');
- var slideshare_val=document.getElementById('slideshare_checkbox');
- var social_val=document.getElementById('social_checkbox');
- var annotation_val=document.getElementById('annotation_checkbox');
- var tweet_val=document.getElementById('tweet_checkbox');
- var segments_val=document.getElementById('segments_checkbox');
- var polemic_val=document.getElementById('polemic_checkbox');
- var sparkline_val=document.getElementById('sparkline_checkbox');
- var tagcloud_val=document.getElementById('tagcloud_checkbox');
- var createannotation_val=document.getElementById('createannotation_checkbox');
- var type_embed=document.getElementById("type_embed_div");
- $j("#displayPolemicOptions").toggle(false);
- $j("#displaySparklineOptions").toggle(false);
- $j("#social_options").toggle(false);
- $j("#sparkline_color_options").toggle(false);
- display_polemic();
- display_sparkline();
-
- if(type_embed.checked){
- createannotation_val.checked=false;
- }
- else{
- $j("#createannotation_options").toggle(true);
- createannotation_val.checked=true;
- var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
- show_mic_record_val.checked=false;
-
- }
- polemic_val.checked=true;
- segments_val.checked=true;
- annotationslist_val.checked=false;
- slideshare_val.checked=false;
- social_val.checked=false;
- annotation_val.checked=true;
- sparkline_val.checked=true;
- tweet_val.checked=false;
- tagcloud_val.checked=false;
- put_new_code();
-
-}
-
-function mode3(){
- var annotationslist_val=document.getElementById('annotations_list_checkbox');
- var slideshare_val=document.getElementById('slideshare_checkbox');
- var social_val=document.getElementById('social_checkbox');
- var annotation_val=document.getElementById('annotation_checkbox');
- var tweet_val=document.getElementById('tweet_checkbox');
- var segments_val=document.getElementById('segments_checkbox');
- var polemic_val=document.getElementById('polemic_checkbox');
- var sparkline_val=document.getElementById('sparkline_checkbox');
- var tagcloud_val=document.getElementById('tagcloud_checkbox');
- var createannotation_val=document.getElementById('createannotation_checkbox');
- var type_embed=document.getElementById("type_embed_div");
- $j("#displayPolemicOptions").toggle(false);
- $j("#displaySparklineOptions").toggle(false);
- $j("#social_options").toggle(false);
- $j("#sparkline_color_options").toggle(false);
- display_polemic();
- display_social();
- display_sparkline();
- if(type_embed.checked){
- createannotation_val.checked=false;
- }
- else{
- $j("#createannotation_options").toggle(true);
- createannotation_val.checked=true;
- var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
- show_mic_record_val.checked=false;
- }
- polemic_val.checked=true;
- segments_val.checked=true;
- annotationslist_val.checked=true;
- slideshare_val.checked=false;
- social_val.checked=true;
- annotation_val.checked=true;
- tweet_val.checked=false;
- sparkline_val.checked=true;
- tagcloud_val.checked=true;
- put_new_code();
-
-}
-function iframe_event(){
- $j("#createannotation_block").toggle(true);
- $j("#createannotation_options").toggle(true);
- var element = document.getElementById(wrapper);
- var createannotation_val=document.getElementById('createannotation_checkbox');
- createannotation_val.checked=true;
- if(element.style.display=="block"){
- display_iframe_player();
- }
- iframe_code=generate_iframe_code();
- $j("#player_id_code").val(iframe_code);
- $j("#player_id_code").select();
-
-}
-
-function generate_iframeUrl(){
- var createannotation_val=document.getElementById('createannotation_checkbox');
- var annotationslist_val=document.getElementById('annotations_list_checkbox');
- var slideshare_val=document.getElementById('slideshare_checkbox');
- var social_val=document.getElementById('social_checkbox');
- var annotation_val=document.getElementById('annotation_checkbox');
- var tweet_val=document.getElementById('tweet_checkbox');
- var segments_val=document.getElementById('segments_checkbox');
- var polemic_val=document.getElementById('polemic_checkbox');
- var sparkline_val=document.getElementById('sparkline_checkbox');
- var tagcloud_val=document.getElementById('tagcloud_checkbox');
- var createannotation_polemics_val=document.getElementById('createannotation_polemics_checkbox');
- var concatenate_projects_val=document.getElementById('concatenate_projects_checkbox');
- iframeUrl= iframe_url;
-
- if($j("#player_height").val()!=300)
- iframeUrl+="&player_height="+$j("#player_height").val();
- if ($j("#player_width").val()!=550)
- iframeUrl+="&player_width="+$j("#player_width").val();
-
- if(createannotation_val.checked){
- iframeUrl+="&createannotation=True";
- var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
- var set_tags_val=document.getElementById('set_tags');
- if(show_mic_record_val.checked){
- iframeUrl+="&show_mic_record=True";
- }
- if(set_tags_val.checked){
- iframeUrl+="&tag_titles="+$j("#tag_list").val();
- }
- if(!createannotation_polemics_val.checked){
- iframeUrl+="&createannotation_polemics=False";
- }
- }
- if (polemic_val.checked){
- tweet_type=document.getElementById("tweet_polemic");
- if(tweet_type.checked){
- iframeUrl+="&polemic=tweet";
- }
- else{
- iframeUrl+="&polemic=all";
- }
- polemic_defaultColor=$j("#polemic_default_color").val();
- defaultColor_code_array= polemic_defaultColor.split("#");
- defaultColor_code=defaultColor_code_array[1];
- polemic_foundColor=$j("#polemic_found_color").val();
- foundColor_code_array = polemic_foundColor.split("#");
- foundColor_code=foundColor_code_array[1];
- polemic_okColor =$j("#polemic_ok_color").val();
- polemic_okColor_code_array=polemic_okColor.split("#");
- okColor_code=polemic_okColor_code_array[1];
- polemic_koColor =$j("#polemic_ko_color").val();
- polemic_koColor_code_array=polemic_koColor.split("#");
- koColor_code=polemic_koColor_code_array[1];
- polemic_refColor =$j("#polemic_ref_color").val();
- polemic_refColor_code_array=polemic_refColor.split("#");
- refColor_code=polemic_refColor_code_array[1];
- polemic_qColor =$j("#polemic_q_color").val();
- polemic_qColor_code_array=polemic_qColor.split("#");
- qColor_code=polemic_qColor_code_array[1];
- if(defaultColor_code!="585858")
- iframeUrl+="&polemic_defaultColor="+defaultColor_code;
- if(foundColor_code!="fc00ff")
- iframeUrl+="&polemic_foundColor="+foundColor_code;
- if(okColor_code!="1d973d")
- iframeUrl+="&polemic_okColor="+okColor_code;
- if(koColor_code!="ce0a15")
- iframeUrl+="&polemic_koColor="+koColor_code;
- if(refColor_code!="c5a62d")
- iframeUrl+="&polemic_refColor="+refColor_code;
- if(qColor_code!="036aae")
- iframeUrl+="&polemic_qColor="+qColor_code;
-
- }
- else{
- iframeUrl+="&polemic=False";
- }
- if(annotationslist_val.checked){
- iframeUrl+="&annotations_list=True";
- }
- if(annotation_val.checked){
- iframeUrl+="&annotation=True";
- }
- if(slideshare_val.checked){
- iframeUrl+="&slideshare=True";
- }
- if(social_val.checked){
- show_url=document.getElementById("show_url_checkbox");
- show_twitter=document.getElementById("show_twitter_checkbox");
- show_fb=document.getElementById("show_fb_checkbox");
- show_gplus=document.getElementById("show_gplus_checkbox");
- show_mail=document.getElementById("show_mail_checkbox");
- iframeUrl+="&social=True";
- if(!show_url.checked){
- iframeUrl+="&show_url=False";
- }
- if(!show_twitter.checked){
- iframeUrl+="&show_twitter=False";
- }
- if(!show_fb.checked){
- iframeUrl+="&show_fb=False";
- }
- if(!show_gplus.checked){
- iframeUrl+="&show_gplus=False";
- }
- if(!show_mail.checked){
- iframeUrl+="&show_mail=False";
- }
- }
- if(tweet_val.checked){
- iframeUrl+="&tweet=True";
- }
- if(!segments_val.checked){
- iframeUrl+="&segments=False";
- }
- if(sparkline_val.checked){
- iframeUrl+="&sparkline=True";
- sparkline_lineColor=$j("#sparkline_line_color").val();
- lineColor_code_array= sparkline_lineColor.split("#");
- lineColor_code=lineColor_code_array[1];
- sparkline_fillColor=$j("#sparkline_fill_color").val();
- fillColor_code_array = sparkline_fillColor.split("#");
- fillColor_code=fillColor_code_array[1];
- if(lineColor_code!="7492b4")
- iframeUrl+="&sparkline_lineColor="+lineColor_code;
- if(fillColor_code!="aeaeb8")
- iframeUrl+="&sparkline_fillColor="+fillColor_code;
- }
- if(tagcloud_val.checked){
- iframeUrl+="&tagcloud=True";
- }
- if(concatenate_projects_val.checked){
- iframeUrl+="&concatenate_projects=True";
- }
-
- return iframeUrl;
-}
-
-function generate_iframe_code(){
- var createannotation_val=document.getElementById('createannotation_checkbox');
- var annotationslist_val=document.getElementById('annotations_list_checkbox');
- var polemic_val=document.getElementById('polemic_checkbox');
- var slideshare_val=document.getElementById('slideshare_checkbox');
- var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
- iframeUrl=generate_iframeUrl();
- player_width=parseInt($j("#player_width").val())+20;
- player_height=parseInt($j("#player_height").val())+130;
- if (createannotation_val.checked){
- player_height+=281;
- }
- if(annotationslist_val.checked || slideshare_val.checked){
- player_width+=430;
- }
- if(polemic_val.checked){
- player_height+=100;
-
- }
- if(show_mic_record_val.checked){
-
- player_height+=55;
- }
- iframe_code="<iframe src='"+iframeUrl+"' width='"+player_width+"' height='"+player_height+"' seamless='seamless'></iframe>";
-
- return iframe_code;
-}
-
-function display_iframe_player(){
- var createannotation_val=document.getElementById('createannotation_checkbox');
- var annotationslist_val=document.getElementById('annotations_list_checkbox');
- var polemic_val=document.getElementById('polemic_checkbox');
- var slideshare_val=document.getElementById('slideshare_checkbox');
- var show_mic_record_val = document.getElementById('show_mic_record_checkbox');
- var code_embed=document.getElementById("player_id_code");
- wrapper = "wrapper_"+player_id;
- wrapper_id = "#"+wrapper;
- iframeUrl= generate_iframeUrl();
- player_width=parseInt($j("#player_width").val())+20;
- player_height=parseInt($j("#player_height").val())+130;
- if (createannotation_val.checked){
- player_height+=300;
- player_width+=50;
- }
- if(annotationslist_val.checked || slideshare_val.checked){
- player_width+=430;
- }
- if(polemic_val.checked){
- player_height+=100;
-
- }
- if(show_mic_record_val.checked){
-
- player_height+=55;
- }
- frame = document.createElement("iframe");
- frame.width = player_width;
- frame.height = player_height;
- frame.src = iframeUrl;
- frame.frameBorder = 0;
- frame.seamless = "seamless";
- $j(wrapper_id).html(frame);
-}
-
-function set_default_color(code){
- $j("#polemic_default_color").val("#"+code);
- put_new_code();
-}
-
-function set_found_color(code){
- $j("#polemic_found_color").val("#"+code);
- put_new_code();
-}
-
-function set_line_color(code){
- $j("#sparkline_line_color").val("#"+code);
- put_new_code();
-}
-
-function set_fill_color(code){
- $j("#sparkline_fill_color").val("#"+code);
- put_new_code();
-}
-
-function refresh_player(){
- var type_embed=document.getElementById("type_embed_div");
- if (type_embed.checked){
- var new_code=generate_div_code();
- $j(wrapper_id).html(new_code);
- }
- else{
- display_iframe_player();
- }
-}