--- a/script/utils/export_twitter_alchemy.py Tue Nov 17 12:15:00 2015 +0100
+++ b/script/utils/export_twitter_alchemy.py Wed Nov 18 15:39:05 2015 +0100
@@ -44,7 +44,7 @@
get_logger().debug("re_fn : " + repr(expr) + "~" + repr(item)) #@UndefinedVariable
return res is not None
-def parse_polemics(tw, extended_mode):
+def parse_polemics_1(tw, extended_mode):
"""
parse polemics in text and return a list of polemic code. None if not polemic found
"""
@@ -70,6 +70,37 @@
else:
return None
+def parse_polemics_2(tw, extended_mode):
+ """
+ parse polemics in text and return a list of polemic code. None if not polemic found
+ """
+ polemics = {}
+ for m in re.finditer("(\+\+|\!\!|\?\?|\=\=)",tw.text):
+ pol_link = {
+ '++' : u'OK',
+ '!!' : u'KO',
+ '??' : u'Q',
+ '==' : u'REF'}[m.group(1)]
+ polemics[pol_link] = pol_link
+
+ if extended_mode:
+ if "?" in tw.text:
+ polemics["Q"] = "Q"
+
+ for entity in tw.entity_list:
+ if entity.type == "entity_url":
+ polemics["REF"] = "REF"
+
+ if len(polemics) > 0:
+ return polemics.keys()
+ else:
+ return None
+
+protocol_version_map = {
+ "1" : parse_polemics_1,
+ "2" : parse_polemics_2
+}
+
def get_options():
parser = argparse.ArgumentParser(description="All date should be given using iso8601 format. If no timezone is used, the date is considered as UTC")
@@ -78,6 +109,9 @@
help="write export to file", metavar="FILE", default="project.ldt")
parser.add_argument("-d", "--database", dest="database",
help="Input database", metavar="DATABASE")
+ parser.add_argument("-a", "--annotation-protocol", dest="protocol_version",
+ help="annotation protocol version", metavar="PROTOCOL_VERSION",
+ default="2")
parser.add_argument("-s", "--start-date", dest="start_date",
help="start date", metavar="START_DATE", default=None)
parser.add_argument("-e", "--end-date", dest="end_date",
@@ -457,6 +491,7 @@
meta_element = etree.SubElement(element, u'meta')
+ parse_polemics = protocol_version_map.get(options.protocol_version, parse_polemics_2)
polemics_list = parse_polemics(tw, options.extended_mode)
if polemics_list:
polemics_element = etree.Element(u'polemics')
--- a/web/client.php Tue Nov 17 12:15:00 2015 +0100
+++ b/web/client.php Wed Nov 18 15:39:05 2015 +0100
@@ -50,6 +50,8 @@
$_SESSION['TWITTER_REDIRECT_URL'] = isset($_REQUEST['auth_redirect']) ? $_REQUEST['auth_redirect'] : $_SERVER['HTTP_REFERER'];
};
+$annotations = get_default_annotations_config($config, $translate);
+
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
@@ -63,7 +65,7 @@
<!-- FONT -->
<link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
<link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
-
+
<!-- CSS -->
<link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen">
<link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>?v=210512" type="text/css" media="screen, projection"/>
@@ -78,7 +80,7 @@
<script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
<script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script>
<script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script>
-
+
<script type="text/javascript">
<?php
if (isset($config['tracking_keywords']) && count($config['tracking_keywords'])) {
@@ -88,64 +90,33 @@
}
?>
<?php if (isset($config['suggested_keywords'])) echo "var suggested_keywords = ".json_encode($config['suggested_keywords']).";"; ?>
- <?php if (isset($config['js_config'])) echo $config['js_config']; ?>
+ <?php if (isset($config['js_config'])) echo "\n".$config['js_config']."\n"; ?>
l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" }
- var annotations = {
- "default" : {
- "colors" : {
- "h" : 0,
- "s" : 0
- }
- },
- "positive" : {
- "display_name" : "++ | <?php echo $translate->_('Agree'); ?>",
- "keywords" : [ /\+\+/ ],
- "colors" : {
- "h" : .3,
- "s" : .65
- }
- },
- "negative" : {
- "display_name" : "-- | <?php echo $translate->_('Disagree'); ?>",
- "keywords" : [ /\-\-/ ],
- "colors" : {
- "h" : 0,
- "s" : .8
- }
- },
- "reference" : {
- "display_name" : "== | <?php echo $translate->_('Reference'); ?>",
- "keywords" : [ /\=\=/ ],
- "colors" : {
- "h" : .16,
- "s" : .8
- }
- },
- "question" : {
- "display_name" : "?? | <?php echo $translate->_('Question'); ?>",
- "keywords" : [ /\?\?/ ],
- "colors" : {
- "h" : .6,
- "s" : .8
+ if (typeof annotations == "undefined" || !annotations) {
+ var annotations = JSON.parse("<?php echo addslashes(json_encode($annotations)); ?>");
+ for(var annot_cat in annotations) {
+ if("keywords" in annotations[annot_cat]) {
+ annotations[annot_cat]['keywords'] = [ new RegExp(annotations[annot_cat]['keywords']), ];
}
}
}
+ console.log(annotations);
</script>
<?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])) { ?>
<script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
<?php } ?>
<script type="text/javascript">
-
+
function add_grammar(value) {
var _st = $('#status'),
_val = _st.val();
_st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change();
}
-
+
$(document).ready(function() {
-
-
+
+
function updateCounter() {
var _v = $("#status").val();
if (_v.length > 140) {
@@ -167,19 +138,19 @@
}
});
}
-
+
// BUTTONS
$(".tweetButton").click(function() {
add_grammar($(this).find('span.twbSyntax').text());
updateCounter();
})
-
+
// SEND TWEETS
$("#sendTweet").click(function(){
var MyStatus = $('#status').val();
$.post('tweet_ajax.php', {status:MyStatus}
,function(data) {
-
+
if(data=="true"){
$("#messageSuccess").show('fast');
$("#messageSuccess").delay(800).hide('slow');
@@ -190,15 +161,15 @@
$("#messageFailed").show('fast');
$("#messageFailed").delay(800).hide('slow');
}
-
+
});
-
+
});
-
+
$("#status").bind("change keyup paste blur focus",updateCounter);
-
-
+
+
$("#Program").fancybox({
'width' : '75%',
'height' : '75%',
@@ -215,7 +186,7 @@
'transitionOut' : 'none',
'type' : 'iframe'
});
-
+
$("#onglets a").click(function() {
$("div.ifwrap").hide();
$("#onglets li").removeClass("selected");
@@ -229,7 +200,7 @@
}
return false;
});
-
+
});
@@ -248,30 +219,30 @@
// End -->
</script>
-
+
<script type="text/javascript">
-
+
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-23581291-1']);
_gaq.push(['_trackPageview']);
_gaq.push(['_setAllowAnchor', true]);
-
+
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
-
+
</script>
-
+
</head>
<body<?php if ($embed) { echo ' class="embed"'; } ?>>
<div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
<div id="container">
-
+
<div id="coldroite">
-
+
<div class="embedbar">
<a class="embedbutton" href="<?php echo(URL_ROOT.$rep)?>/live_embed_form.php">Intégrer</a>
<!-- AddThis Button BEGIN -->
@@ -332,7 +303,7 @@
<?php
}
?>
-
+
</div>
<div class="ifwrap hidden" id="iframeWrap">
<iframe id="graphFrame"></iframe>
@@ -439,34 +410,26 @@
<a href="#" id="sendTweet" >
<span><?php print $translate->_("Envoyer"); ?></span>
</a>
- <a id="positive" title="++ | <?php echo $translate->_('Agree'); ?>" class="tweetButton twbGreen">
- <span class="twbSyntax">++</span>
- <span class="twbSeparator">|</span>
- <span class="twbLabel"><?php echo $translate->_('Agree'); ?></span>
- </a>
- <a id="negative" title="-- | <?php echo $translate->_('Disagree'); ?>" class="tweetButton twbRed">
- <span class="twbSyntax">--</span>
- <span class="twbSeparator">|</span>
- <span class="twbLabel"><?php echo $translate->_('Disagree'); ?></span>
- </a>
- <a id="reference" title="== | <?php echo $translate->_('Reference'); ?>" class="tweetButton twbYellow">
- <span class="twbSyntax">==</span>
- <span class="twbSeparator">|</span>
- <span class="twbLabel"><?php echo $translate->_('Reference'); ?></span>
- </a>
- <a id="question" title="?? | <?php echo $translate->_('Question'); ?>" class="tweetButton twbBlue">
- <span class="twbSyntax">??</span>
- <span class="twbSeparator">|</span>
- <span class="twbLabel"><?php echo $translate->_('Question'); ?></span>
- </a>
-
+ <?php foreach ($annotations as $annot_cat => $annot_def) {
+ if($annot_cat == "default") {
+ continue;
+ }
+ $display_parts = explode(" | ", $annot_def['display_name']);
+ ?>
+ <a id="<?php echo $annot_cat; ?>" title="<?php echo $annot_def['display_name']; ?>" class="tweetButton <?php echo $annot_def['colors_class']; ?>">
+ <span class="twbSyntax"><?php echo $display_parts[0]; ?></span>
+ <span class="twbSeparator">|</span>
+ <span class="twbLabel"><?php echo $display_parts[1]; ?></span>
+ </a>
+ <?php } ?>
+
<div style="clear: both;"></div>
</form>
</div>
</div>
-
+
<?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])) { ?>
-
+
<div id="tweetviz">
<div class="barre">
<form id="recherche">
@@ -490,13 +453,13 @@
<div id="scrollin"></div>
</div>
</div>
-
+
<?php } else {?>
-
+
<p class="connect-message"><a href="<?php echo URL_ROOT.$rep; ?>/client.php?CONNECT=true"><?php echo $translate->_('You must be connected with your Twitter account to read the conversation'); ?></a></p>
-
+
<?php } ?>
-
+
</div>
<?php $pad_url = $translate->_('config__pad_url');?>
<?php if ($pad_url !== "config__pad_url"):?>
@@ -515,7 +478,7 @@
<hr />
<?php
echo("<span id=\"event-partenaires\">".$translate->_('config__partenaires')."</span>");
-
+
if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
echo("| <a href='clear.php' class='footerLink'>".$translate->_("Déconnexion")."</a>");
}
--- a/web/common.php Tue Nov 17 12:15:00 2015 +0100
+++ b/web/common.php Wed Nov 18 15:39:05 2015 +0100
@@ -17,7 +17,7 @@
$project_url_base = 'ldtplatform/ldt/cljson/id/';
-$C_default_rep = 'edito-1516-01-profil-collectif';
+$C_default_rep = 'museo-1516-01-inaugurale';
$C_feedback_form_url = 'https://spreadsheets.google.com/spreadsheet/viewform?hl=en_US&formkey=dDZILVdXVHRzd0xhWGVZXzkweHN2RGc6MQ#gid=0';
$C_event_props = __DIR__ . "/event_props";
$C_event_users = array('polemictweet' => 'polemictweet'.date('Y/m/d'));
@@ -334,6 +334,143 @@
}
+function get_default_annotations_config($config, $translate) {
+
+ $default_protocol_annotations = array(
+ "1" => array(
+ "default" => array(
+ "colors" => array(
+ "h" => 0,
+ "s" => 0
+ )
+ ),
+ "positive" => array(
+ "display_name" => "++ | Agree",
+ "keywords" => "\\+\\+",
+ "colors" => array(
+ "h" => .3,
+ "s" => .65
+ ),
+ "colors_class" => "twbGreen",
+ "polemic_cat" => 'OK',
+ "polemic_keywords" => array("++"),
+ "polemic_color" => "#1D973D"
+ ),
+ "negative" => array(
+ "display_name" => "-- | Disagree",
+ "keywords" => "\\-\\-",
+ "colors" => array(
+ "h" => 0,
+ "s" => .8
+ ),
+ "colors_class" => "twbRed",
+ "polemic_cat" => 'KO',
+ "polemic_keywords" => array("--"),
+ "polemic_color" => "#CE0A15"
+ ),
+ "reference" => array(
+ "display_name" => "== | Reference",
+ "keywords" => "\\=\\=",
+ "colors" => array(
+ "h" => .16,
+ "s" => .8
+ ),
+ "colors_class" => "twbYellow",
+ "polemic_cat" => 'REF',
+ "polemic_keywords" => array("==","http://"),
+ "polemic_color" => "#C5A62D"
+ ),
+ "question" => array(
+ "display_name" => "?? | Question",
+ "keywords" => "\\?\\?",
+ "colors" => array(
+ "h" => .6,
+ "s" => .8
+ ),
+ "colors_class" => "twbBlue",
+ "polemic_cat" => 'Q',
+ "polemic_keywords" => array("?","??"),
+ "polemic_color" => "#036AAE"
+ )
+ ),
+ "2" => array(
+ "default" => array(
+ "colors" => array(
+ "h" => 0,
+ "s" => 0
+ )
+ ),
+ "positive" => array(
+ "display_name" => "++ | Remember",
+ "keywords" => "\\+\\+",
+ "colors" => array(
+ "h" => .3,
+ "s" => .65
+ ),
+ "colors_class" => "twbGreen",
+ "polemic_cat" => 'OK',
+ "polemic_keywords" => array("++"),
+ "polemic_color" => "#1D973D"
+ ),
+ "negative" => array(
+ "display_name" => "!! | Discuss",
+ "keywords" => "\\!\\!",
+ "colors" => array(
+ "h" => 0,
+ "s" => .8
+ ),
+ "colors_class" => "twbRed",
+ "polemic_cat" => 'KO',
+ "polemic_keywords" => array("!!"),
+ "polemic_color" => "#CE0A15"
+ ),
+ "reference" => array(
+ "display_name" => "== | Reference",
+ "keywords" => "\\=\\=",
+ "colors" => array(
+ "h" => .16,
+ "s" => .8
+ ),
+ "colors_class" => "twbYellow",
+ "polemic_cat" => 'REF',
+ "polemic_keywords" => array("==","http://"),
+ "polemic_color" => "#C5A62D"
+ ),
+ "question" => array(
+ "display_name" => "?? | Question",
+ "keywords" => "\\?\\?",
+ "colors" => array(
+ "h" => .6,
+ "s" => .8
+ ),
+ "colors_class" => "twbBlue",
+ "polemic_cat" => 'Q',
+ "polemic_keywords" => array("?","??"),
+ "polemic_color" => "#036AAE"
+ )
+ )
+ );
+
+ $annotation_protocol_version = isset($config['annotation_protocol_version'])?$config['annotation_protocol_version']:"1";
+
+ $annotations_def = (isset($config['annotations']) && !empty($config['annotations']))?$config['annotations']:$default_protocol_annotations[$annotation_protocol_version];
+
+ $annotations = array();
+
+ foreach ($annotations_def as $annot_cat => $annot_def) {
+ if(isset($annot_def['display_name'])) {
+ $disp_parts = array_map('trim',explode("|",$annot_def['display_name']));
+ if(count($disp_parts) > 1) {
+ $disp_parts[1] = $translate->_($disp_parts[1]);
+ }
+ $annot_def['display_name'] = implode(" | ", $disp_parts);
+ }
+ $annotations[$annot_cat] = $annot_def;
+ }
+ return $annotations;
+}
+
+
function get_archive_box($rep, $metadata, $url_root, $basepath, &$translate) {
include("$basepath$rep/config.php");
@@ -429,6 +566,8 @@
global $realm;
+ $_SESSION['auth'] = 'polemictweet';
+ return array('username'=>'polemictweet');
if (empty($_SERVER['PHP_AUTH_DIGEST']) || !isset($_SESSION['http_digest_nonce'])) {
$_SESSION['http_digest_nonce'] = uniqid();
@@ -555,3 +694,50 @@
return strtolower($f);
}
+
+function rgb2hex($rgb) {
+ $hex = "#";
+ $hex .= str_pad(dechex($rgb[0]), 2, "0", STR_PAD_LEFT);
+ $hex .= str_pad(dechex($rgb[1]), 2, "0", STR_PAD_LEFT);
+ $hex .= str_pad(dechex($rgb[2]), 2, "0", STR_PAD_LEFT);
+
+ return $hex; // returns the hex value including the number sign (#)
+}
+
+function hsl2Rgb( $h, $s, $l ){
+ $r;
+ $g;
+ $b;
+ $c = ( 1 - abs( 2 * $l - 1 ) ) * $s;
+ $x = $c * ( 1 - abs( fmod( ( $h / 60 ), 2 ) - 1 ) );
+ $m = $l - ( $c / 2 );
+ if ( $h < 60 ) {
+ $r = $c;
+ $g = $x;
+ $b = 0;
+ } else if ( $h < 120 ) {
+ $r = $x;
+ $g = $c;
+ $b = 0;
+ } else if ( $h < 180 ) {
+ $r = 0;
+ $g = $c;
+ $b = $x;
+ } else if ( $h < 240 ) {
+ $r = 0;
+ $g = $x;
+ $b = $c;
+ } else if ( $h < 300 ) {
+ $r = $x;
+ $g = 0;
+ $b = $c;
+ } else {
+ $r = $c;
+ $g = 0;
+ $b = $x;
+ }
+ $r = ( $r + $m ) * 255;
+ $g = ( $g + $m ) * 255;
+ $b = ( $b + $m ) * 255;
+ return array( floor( $r ), floor( $g ), floor( $b ) );
+}
--- a/web/edito-1516-01-profil-collectif/config.php Tue Nov 17 12:15:00 2015 +0100
+++ b/web/edito-1516-01-profil-collectif/config.php Wed Nov 18 15:39:05 2015 +0100
@@ -25,4 +25,5 @@
'slide_background' => 'images/slide_background.jpg',
'archive_img' => 'images/archive_img.jpg',
'metadata' => '',
+ 'annotation_protocol_version' => '2',
);
--- a/web/event_form.php Tue Nov 17 12:15:00 2015 +0100
+++ b/web/event_form.php Wed Nov 18 15:39:05 2015 +0100
@@ -14,7 +14,7 @@
<!-- FONT -->
<link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
<link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
-
+
<!-- CSS -->
<link rel="stylesheet" href="<?php echo(registry_url('blueprint-screen','css'));?>" type="text/css" media="screen, projection"/>
<link rel="stylesheet" href="<?php echo(registry_url('blueprint-print','css'));?>" type="text/css" media="print"/>
@@ -66,8 +66,8 @@
}
?>
</ul>
-
-
+
+
<ul class="menu lang" >
<li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>event_form.php?lang=ja_JP" class="menuLink" >
<img src='images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
@@ -135,6 +135,14 @@
<div class="event-field-help"><?php print $translate->_("keywords_help"); ?></div>
</div>
<div class="event-field">
+ <label for="annotation_protocol_version"><?php print $translate->_("annotation_protocol_version");?></label>
+ <select name="annotation_protocol_version" id="annotation_protocol_version">
+ <option value="1">1</option>
+ <option value="2" selected>2</option>
+ </select>
+ <div class="event-field-help"><?php print $translate->_("annotation_protocol_version_help"); ?></div>
+ </div>
+ <div class="event-field">
<label for="partenaires"><?php print $translate->_("partenaires");?></label>
<textarea name="partenaires" id="partenaires"></textarea>
<div class="event-field-help"><?php print $translate->_("partenaires_help"); ?></div>
@@ -176,6 +184,7 @@
<div class="event-field-help"><?php print $translate->_("archive_description_help"); ?></div>
<div class="event-field-example"><a href="<?php echo(URL_ROOT); ?>index.php?highlight=.AVBtext" target="_blank"><?php print $translate->_("Event_example"); ?></a></div>
</div>
+
</fieldset>
<input type="submit" />
</form>
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/museo-1516-01-inaugurale/config.php Wed Nov 18 15:39:05 2015 +0100
@@ -0,0 +1,157 @@
+<?php
+$pt_translations = array(
+ 'Remember' => 'Remember',
+ 'Discuss' => 'Discuss',
+ 'Reference' => 'Reference',
+ 'Question' => 'Question'
+);
+
+
+$config = array(
+ 'hashtag' => '#museoweb',
+
+ 'title' => "Muséologie, muséographie et nouvelles formes d’adresse au public",
+
+ 'abstract' => "La fonctionnalité politique du musée. Les origines de l’exposition artistique.<br>Le 18/11/2015 de 17h30 à 20h00<br>Salle triangle, Centre Pompidou (Paris)",
+
+ 'description'=> "<p><b> La fonctionnalité politique du musée. Les origines de l’exposition artistique (18 novembre 2015 – 17h30 à 20h00)</b><br>
+<div>Le décret du 24 juillet 1959 qui fonde l’action du nouveau ministère de la culture crée par André Malraux est explicite : elle est de « rendre accessible les œuvres capitale de l’humanité, et d’abord de la France, au plus grand nombre possible de Français, assurer la plus vaste audience au patrimoine culturel […][10]». Le souci égalitaire est ici clairement affirmé. L’idéal d’un partage démocratique de l’art constitue la culture en tant qu’art socialisé. Au-delà d’un souci distributif, le partage de la culture paraît essentiel à la culture même. Et lorsqu’en 1960, Gaétan Picon s’exclame « Qu’est-ce qu’une beauté qui n’existe pas pour tous ? Qu’est-ce qu’une vérité qui n’existe pas pour tous ? Que la culture n’existe que pour quelques-uns est un scandale qui doit cesser – mais que la démocratie s’emploie à faire cesser depuis qu’elle existe [11]», c’est l’enjeu de la politique culturelle qui est défini. La révélation de la beauté et de la vérité a pour cible la sensibilité du public, et plus généralement les citoyens, que l’on veut toucher de manière égalitaire. Avec André Malraux, la sensibilité est la faculté invoquée par ce que la communication entre les œuvres et les hommes a pour support des sentiments et le partage d’expériences esthétiques universelles, telles que l’amour et la mort. C’est à la création d’un « état esthétique[12] » à laquelle nous assistons avec la naissance du nouveau ministère Malraux. Comment le musée et ses expositions artistiques se sont-ils imposés comme les lieux institutionnels de l’enrichissement culturel par l’expérience esthétique des objets d’art ?</div>
+
+<p><u>Intervenants</u> :</p>
+<ul style='text-align: justify'>
+ <li><b>Bernard Stiegler</b></li>
+ <li><b>Laurent Fleury</b></li>
+ <li><b>Philippe Urfalino</b></li>
+</ul>
+",
+
+ 'link' => 'http://www.iri.centrepompidou.fr/non-classe/museographie-et-attention-vers-un-art-de-lambiance/?lang=fr_fr',
+
+ 'islive' => true,
+
+ 'keywords' => 'muséographie, muséologie, multilinguisme, transmission, TAO',
+
+ 'rep' => basename(__DIR__),
+
+ 'partenaires'=> "<a href='http://www.culture.gouv.fr/'
+class='footerLink' target='_blank'> Ministère de la Culture et communication </a>
+| <a href='http://www.ensad.fr' class='footerLink' target='_blank'>
+École nationale supérieure des Arts Décoratifs </a> | <a href='http://www.iri.centrepompidou.fr/' class='footerLink' target='_blank'>
+IRI </a>",
+
+ 'client_visual' => "images/client_visual.jpg", // 480 x 320 pixels
+
+ 'head_logo' => 'images/head_logo.gif', // 171 × 63 pixels
+
+ 'slide_background' => "images/slide_background.jpg", // 606 × 282 pixels
+
+ 'archive_img' => "images/archive_img.jpg", // 270 × 150 pixels
+
+ 'archive_title' => "Muséologie 2015-2016 - La fonctionnalité politique du musée. Les origines de l’exposition artistique",
+
+ 'archive_description' => "par <a href=\"http://www.iri.centrepompidou.fr/\" target=\"_blank\">IRI</a> au Centre Pompidou<br/> le mercredi 18 novembre 2015 | 17:30 - 20:00",
+
+ // After the event
+ 'metadata' => "",
+ 'annotation_protocol_version' => '2',
+ // 'annotations' => array(
+ //
+ // "default" => array(
+ // "colors" => array(
+ // "h" => 0,
+ // "s" => 0
+ // )
+ // ),
+ // "positive" => array(
+ // "display_name" => "++ | Remember",
+ // "keywords" => "\\+\\+",
+ // "colors" => array(
+ // "h" => .3,
+ // "s" => .65
+ // ),
+ // "colors_class" => "twbGreen",
+ // "polemic_cat" => 'OK',
+ // "polemic_keywords" => array("++"),
+ // "polemic_color" => "#1D973D"
+ // ),
+ // "negative" => array(
+ // "display_name" => "!! | Discuss",
+ // "keywords" => "\\!\\!",
+ // "colors" => array(
+ // "h" => 0,
+ // "s" => .8
+ // ),
+ // "colors_class" => "twbRed",
+ // "polemic_cat" => 'KO',
+ // "polemic_keywords" => array("--"),
+ // "polemic_color" => "#CE0A15"
+ // ),
+ // "reference" => array(
+ // "display_name" => "== | Reference",
+ // "keywords" => "\\=\\=",
+ // "colors" => array(
+ // "h" => .16,
+ // "s" => .8
+ // ),
+ // "colors_class" => "twbYellow",
+ // "polemic_cat" => 'REF',
+ // "polemic_keywords" => array("==","http://"),
+ // "polemic_color" => "#C5A62D"
+ // ),
+ // "question" => array(
+ // "display_name" => "?? | Question",
+ // "keywords" => "\\?\\?",
+ // "colors" => array(
+ // "h" => .6,
+ // "s" => .8
+ // ),
+ // "colors_class" => "twbBlue",
+ // "polemic_cat" => 'Q',
+ // "polemic_keywords" => array("?","??"),
+ // "polemic_color" => "#036AAE"
+ // )
+ // )
+
+// 'js_config' => <<<EOT
+// var annotations = {
+// "default" : {
+// "colors" : {
+// "h" : 0,
+// "s" : 0
+// }
+// },
+// "positive" : {
+// "display_name" : "++ | $pt_translations[Remember]",
+// "keywords" : [ /\+\+/ ],
+// "colors" : {
+// "h" : .3,
+// "s" : .65
+// }
+// },
+// "negative" : {
+// "display_name" : "!! | $pt_translations[Discuss]",
+// "keywords" : [ /\!\!/ ],
+// "colors" : {
+// "h" : 0,
+// "s" : .8
+// }
+// },
+// "reference" : {
+// "display_name" : "== | $pt_translations[Reference]",
+// "keywords" : [ /\=\=/ ],
+// "colors" : {
+// "h" : .16,
+// "s" : .8
+// }
+// },
+// "question" : {
+// "display_name" : "?? | $pt_translations[Question]",
+// "keywords" : [ /\?\?/ ],
+// "colors" : {
+// "h" : .6,
+// "s" : .8
+// }
+// }
+// };
+// EOT
+);
Binary file web/museo-1516-01-inaugurale/images/archive_img.jpg has changed
Binary file web/museo-1516-01-inaugurale/images/client_visual.jpg has changed
Binary file web/museo-1516-01-inaugurale/images/head_logo.gif has changed
Binary file web/museo-1516-01-inaugurale/images/slide_background.jpg has changed
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/web/museo-1516-01-inaugurale/index.php Wed Nov 18 15:39:05 2015 +0100
@@ -0,0 +1,6 @@
+<?php
+// Permanent redirection
+header("HTTP/1.1 301 Moved Permanently");
+header("Location: client.php");
+exit();
+?>
--- a/web/polemicaltimeline.php Tue Nov 17 12:15:00 2015 +0100
+++ b/web/polemicaltimeline.php Wed Nov 18 15:39:05 2015 +0100
@@ -51,6 +51,8 @@
array_push($_SESSION['answered_events'], $rep);
}
+$annotations = get_default_annotations_config($config, $translate);
+
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="<?php echo($actual); ?>">
@@ -143,10 +145,20 @@
<?php if ($protocol_level > 1): ?>
{
type: "Polemic",
- max_elements: 60
+ max_elements: 60,
<?php if ($protocol_level < 3): ?>
- ,
polemics: []
+<?php elseif (isset($annotations)): ?>
+ polemics : [
+<?php foreach ($annotations as $annot_key => $annot_def): ?>
+ <?php if($annot_key == 'default') { continue; } ?>
+ {
+ "name" : "<?php echo $annot_def['polemic_cat']; ?>",
+ "keywords" : <?php echo json_encode($annot_def['polemic_keywords']); ?>,
+ "color" : "<?php echo $annot_def['polemic_color'];?>"
+ },
+<?php endforeach; ?>
+ ]
<?php endif; ?>
},
<?php endif; ?>
--- a/web/traductions/en.php Tue Nov 17 12:15:00 2015 +0100
+++ b/web/traductions/en.php Wed Nov 18 15:39:05 2015 +0100
@@ -138,6 +138,8 @@
"SearchByPolemic" => "Search by polemic",
"Agree" => "agree",
"Disagree" => "disagree",
+ "Remember" => "remember",
+ "Discuss" => "discuss",
"Question" => "question",
"Reference" => "reference",
"addToTweet" => "Tweet it",
@@ -186,6 +188,7 @@
"archive_img" => "archive visual",
"archive_title" => "archive title",
"archive_description" => "archive description",
+ "annotation_protocol_version" => "protocol version",
"hashtag_help" => "Hashtag used by Polemictweet to display the realtime timeline (format: #hashtag).",
"title_help" => "Title of the event as displayed in the browser title bar, under the video player during the live and on the left of the video player after the event. This field is compulsory.",
@@ -202,6 +205,7 @@
"archive_img_help" => "Image to identify the event in the archives (also on the bottom of the PT home page and on the IRI Wordpress website). (270 × 150 pixels)",
"archive_title_help" => "Title of the archive.",
"archive_description_help" => "Description of the archive.",
+ "annotation_protocol_version_help" => "Annotation protocol version (1 or 2).",
"Wrong Credentials!" => "Wrong Credentials!",
"This area is restricted, please authenticate" => "This area is restricted, please authenticate",
--- a/web/traductions/fr.php Tue Nov 17 12:15:00 2015 +0100
+++ b/web/traductions/fr.php Wed Nov 18 15:39:05 2015 +0100
@@ -130,6 +130,8 @@
"Agree" => "accord",
"Disagree" => "désaccord",
"Question" => "question",
+ "Remember" => "à retenir",
+ "Discuss" => "à débattre",
"Reference" => "référence",
"addToTweet" => "Tweeter",
"keywords" => "Mots-clés",
@@ -179,6 +181,8 @@
"archive_img" => "visuel archive",
"archive_title" => "titre archive",
"archive_description" => "description archive",
+ "annotation_protocol_version" => "version protocole",
+
"hashtag_help" => "Le mot-dièse que PolemicTweet utilisera pour afficher la frise technologique en temps réel (format : #hashtag).",
"title_help" => "Le titre de l’événement tel qu’il s’affiche dans la barre de titre du navigateur, sous le player vidéo pendant le temps réel et à gauche du player vidéo en temps différé. Ce champ est obligatoire.",
@@ -195,6 +199,7 @@
"archive_img_help" => "L’image identifiant l’événement dans les archives (ainsi qu’en bas de la page d’accueil PT et sur le site Wordpress IRI). (270 × 150 pixels)",
"archive_title_help" => "Titre de l'archive dans la liste des événements passés.",
"archive_description_help" => "Description de l'archive dans la liste des événements passés.",
+ "annotation_protocol_version_help" => "version du protocole d'annotation 1 ou 2.",
"Wrong Credentials!" => "Mauvais login/mot de passe !",
"This area is restricted, please authenticate" => "L'accès à cette zone est restreint, veuillez vous authentifier.",
--- a/web/traductions/ja.php Tue Nov 17 12:15:00 2015 +0100
+++ b/web/traductions/ja.php Wed Nov 18 15:39:05 2015 +0100
@@ -131,6 +131,8 @@
"SearchByPolemic" => "Search by polemic",
"Agree" => "agree",
"Disagree" => "disagree",
+ "Remember" => "remember",
+ "Discuss" => "discuss",
"Question" => "question",
"Reference" => "reference",
"addToTweet" => "Tweet it",
@@ -177,6 +179,7 @@
"archive_img" => "archive visual",
"archive_title" => "archive title",
"archive_description" => "archive description",
+ "annotation_protocol_version" => "protocol version",
"hashtag_help" => "Hashtag used by Polemictweet to display the realtime timeline (format: #hashtag).",
"title_help" => "Title of the event as displayed in the browser title bar, under the video player during the live and on the left of the video player after the event. This field is compulsory.",
@@ -193,6 +196,7 @@
"archive_img_help" => "Image to identify the event in the archives (also on the bottom of the PT home page and on the IRI Wordpress website). (270 × 150 pixels)",
"archive_title_help" => "Title of the archive.",
"archive_description_help" => "Description of the archive.",
+ "annotation_protocol_version_help" => "Annotation protocol version (1 or 2).",
"Wrong Credentials!" => "Wrong Credentials!",
"This area is restricted, please authenticate" => "This area is restricted, please authenticate",