script PHP : création de vignettes

  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:c3ef0d3b3faf6d2298398256bd6d7148' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonsoir Henri, (bonsoir Jacques)</p>\n<p>Oui, ton histoire est<br />\ntr&egrave;s claire ! ;-)</p>\n<p>1eres constatations :<br />- Le vocab<br />\npeopleLdapLocalProvider.xml ne contient pas d\'enregistrement pour cette<br />\npersonne<br />- L\'indexed_authors_vcard.xml, lui, contient bien un<br />\nenregistrement pour cette personne.\n</div>\n', created = 1507748713, expire = 1507835113, headers = '', serialized = 0 WHERE cid = '4:c3ef0d3b3faf6d2298398256bd6d7148' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:c3ef0d3b3faf6d2298398256bd6d7148' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\">Bonsoir Henri, (bonsoir Jacques)</p>\n<p>Oui, ton histoire est<br />\ntr&egrave;s claire ! ;-)</p>\n<p>1eres constatations :<br />- Le vocab<br />\npeopleLdapLocalProvider.xml ne contient pas d\'enregistrement pour cette<br />\npersonne<br />- L\'indexed_authors_vcard.xml, lui, contient bien un<br />\nenregistrement pour cette personne.\n</div>\n', created = 1507748713, expire = 1507835113, headers = '', serialized = 0 WHERE cid = '4:c3ef0d3b3faf6d2298398256bd6d7148' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:2fa8f264b378c3944def6c58a85e2889' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n </head>\n <body text=\"#000000\" bgcolor=\"#ffffff\">\n <font size=\"-1\"><font face=\"Verdana\">Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"</font></font>//lom:technical/lom:location<font\n size=\"-1\"><font face=\"Verdana\">\"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n </font></font>md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\">ou ceci :<br>\n </font></font>md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\"><br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il faut.<br>\n <br>\n On évalue des solutions pour rendre le service de génération des\n vignettes directement dans ORI-OAI sans script python ou PERL\n .... donc ton retour sur ce que tu fais en PHP sera très\n intéressant !!!!<br>\n Ca pourrait potentiellement devenir une contribution à notre V2\n ... on en rediscute en off si tu veux.<br>\n <br>\n A+<br>\n <br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\">\n <font face=\"Verdana\"><small>\n Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI\n </small>\n </font>\n </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je cherche à générer\n mes vignettes de documents via PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de la ressource.<br>\n Je récupère via la fonction webservice : searchXMLDocs les\n documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le lom:location de cette\n manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                             \'in1\' =&gt; \'\',<br>\n                                             \'in2\' =&gt; -1,<br>\n                                             \'in3\' =&gt; -1,<br>\n                                             \'in4\' =&gt;\n \'/lom:lom/lom:technical/lom:location\',<br>\n                                             \'in5\' =&gt; true,<br>\n                                             \'in6\' =&gt; false,<br>\n                                             \'in7\' =&gt; \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les paramètres à saisir,\n car je ne comprend pas les instructions :/<br>\n <br>\n Merci<br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div></div>\n </body>\n</html>\n</div>', created = 1507748716, expire = 1507835116, headers = '', serialized = 0 WHERE cid = '4:2fa8f264b378c3944def6c58a85e2889' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:978febe36f7c47b1a617ed05065fd2d8' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n\n <meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\">\n </head>\n <body bgcolor=\"#ffffff\" text=\"#000000\">\n Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je cherche à générer\n mes vignettes de documents via PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de la ressource.<br>\n Je récupère via la fonction webservice : searchXMLDocs les documents\n publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a class=\"moz-txt-link-freetext\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le lom:location de cette\n manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(<a class=\"moz-txt-link-rfc2396E\" href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                             \'in1\' =&gt; \'\',<br>\n                                             \'in2\' =&gt; -1,<br>\n                                             \'in3\' =&gt; -1,<br>\n                                             \'in4\' =&gt;\n \'/lom:lom/lom:technical/lom:location\',<br>\n                                             \'in5\' =&gt; true,<br>\n                                             \'in6\' =&gt; false,<br>\n                                             \'in7\' =&gt; \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les paramètres à saisir,\n car je ne comprend pas les instructions :/<br>\n <br>\n Merci<br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </body>\n</html>\n</div>', created = 1507748717, expire = 1507835117, headers = '', serialized = 0 WHERE cid = '4:978febe36f7c47b1a617ed05065fd2d8' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:033c0d4ca98b26087a297ab01bf74016' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n <title></title>\n </head>\n <body text=\"#000000\" bgcolor=\"#ffffff\">\n <font size=\"-1\"><font face=\"Verdana\">Salut François,<br>\n <br>\n Merci pour ce retour et ta contribution.<br>\n Je me pencherai dessus dans le cadre de la V2 !<br>\n <br>\n A+<br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\">\n <font face=\"Verdana\"><small>\n Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI\n </small>\n </font>\n </div>\n </div>\n <br>\n Le 07/02/2011 14:11, françois lefebvre a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n Rebonjour,<br>\n <br>\n J\'ai trouvé mon souci.<br>\n Il fallait renvoyer le tout dans /dev/null.<br>\n <br>\n <br>\n Pour ma part, les scripts PHP et python fonctionnent.<br>\n <br>\n Je vous les joints à ce mail.<br>\n <br>\n <br>\n Bon utilisation et n\'hésitez pas à me faire part de vos remarques.<br>\n Idem, Yohan, n\'hésites pas à l\'utiliser pour une future\n intégration si cela peut t\'aider.<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n Le 07/02/2011 11:19, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n Bonjour Yohan,<br>\n <br>\n <br>\n Le script python fonctionne., pas de souci.<br>\n <br>\n <br>\n Pour mon PHP :<br>\n <br>\n Je teste sous bash avant pour être sûr que cela fonctionne :<br>\n <br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 &amp;<br>\n <br>\n DISPLAY=:1 firefox <a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\n &amp;<br>\n <br>\n DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &amp;<br>\n <br>\n pkill firefox<br>\n <br>\n rm /root/.mozilla/firefox/ -rf <br>\n <br>\n killall -9 Xvfb<br>\n <br>\n <br>\n Sous bash, ca marche.<br>\n <br>\n <br>\n Par contre en PHP, je lance bien Xvfb, je récupère la main, je\n peux donc lancer firefox, mais là, je ne récupère pas la main\n pour faire le screenshot :/<br>\n Pourant je lance bien la commande avec le \"&amp;\" à la fin !<br>\n <br>\n exec(\'DISPLAY=:1 firefox \'. $url .\' &amp;\');<br>\n <br>\n <br>\n <br>\n Pour info, je lance le script PHP en tant que root, donc il ne\n devrait pas y avoir de problème de droit...<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n Le 07/02/2011 09:15, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Verdana\">salut François,<br>\n <br>\n si tu fais une pause plus longue au lancement de firefox,\n ça ne change rien ?<br>\n est-ce que tu as testé la version python ? Estc-e qu\'elle\n fonctionne ?<br>\n <br>\n A+<br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\"> <font face=\"Verdana\"><small>\n Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </small> </font>\n </div>\n </div>\n <br>\n Le 04/02/2011 14:36, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_3\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n Je précise un peu les choses :<br>\n <br>\n <b><u>Je lance Xvfb : </u></b><br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 -ac 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n <b><u>Puis firefox, par l\'une de ses commandes :</u></b><br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\'\n &amp;<br>\n <br>\n DISPLAY=:1 firefox --remote \"openurl(\'<a\n moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\')\"\n &amp;<br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\'\n 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n Cela fonctionne pas vraiment car toujours un écran noir.<br>\n Pour le test, j\'ai relancé une deuxième fois firefox par une\n de ces commandes, et j\'ai un popup qui m\'affiche : Firefox\n déjà lancé.<br>\n J\'en déduis que Xvfb fonctionne bien, sinon je n\'aurai rien\n du tout.<br>\n <br>\n Si j\'affiche les erreurs, j\'obtiens au lancement de firefox\n ceci :<br>\n <br>\n <br>\n Erreur GConf : Failed to contact configuration server; some\n possible causes are that you need to enable TCP/IP\n networking for ORBit, or you have stale NFS locks due to a\n system crash. See <a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\"\n href=\"http://projects.gnome.org/gconf/\">http://projects.gnome.org/gconf/</a>\n for information. (Details -  1: La connexion à la session a\n échoué : /usr/bin/dbus-launch terminated abnormally\n without any error message)<br>\n <br>\n <br>\n <br>\n <b>Pour faire une capture :</b><br>\n <br>\n DISPLAY=:1 import -window root -crop 1260x775+0+120 \'0.png\'\n &amp;<br>\n <br>\n <br>\n <br>\n <br>\n Avez vous des idées ?<br>\n <br>\n Cordialement.<br>\n <br>\n <br>\n <br>\n Le 04/02/2011 11:21, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_4\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n Bonjour,<br>\n <br>\n J\'ai assez bien avancé sur le script.<br>\n <br>\n Je me permet de mettre le script python de Vincent\n légérement modifié pour prendre en compte si une ressource\n est accessible via SSO CAS.<br>\n <br>\n Pour ma part, le script PHP semble fonctionner. Seul souci\n :<br>\n créer une vignette en faisant un screenshot via firefox ne\n fonctionne pas tout le temps.<br>\n <br>\n En effet, des fois cela fonctionne, des fois, j\'ai des\n vignettes écran noir :/<br>\n <br>\n Si vous avez des infos pour réaliser à coup sûr cela, je\n suis preneur. Cela fait 4 jours que je me bats avec Xvfb\n &amp; cie ....<br>\n <br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n Le 26/01/2011 15:26, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_5\"><blockquote\n cite=\"mid:<span id=\"919301b5c518c9ff00d1a59ebc883be5\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'919301b5c518c9ff00d1a59ebc883be5\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\">\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Verdana\">Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois\n utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"</font></font>//lom:technical/lom:location<font\n size=\"-1\"><font face=\"Verdana\">\"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n </font></font>md-ori-oai-namespace:(<a\n moz-do-not-send=\"true\" class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\">ou ceci :<br>\n </font></font>md-ori-oai-namespace:(<a\n moz-do-not-send=\"true\" class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\"><br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il faut.<br>\n <br>\n On évalue des solutions pour rendre le service de\n génération des vignettes directement dans ORI-OAI\n sans script python ou PERL .... donc ton retour sur\n ce que tu fais en PHP sera très intéressant !!!!<br>\n Ca pourrait potentiellement devenir une contribution\n à notre V2 ... on en rediscute en off si tu veux.<br>\n <br>\n A+<br>\n <br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\"> <font face=\"Verdana\"><small>\n Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </small>\n </font> </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_6\"><blockquote>\n <meta http-equiv=\"content-type\" content=\"text/html;\n charset=UTF-8\">\n Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je\n cherche à générer mes vignettes de documents via PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de la\n ressource.<br>\n Je récupère via la fonction webservice : searchXMLDocs\n les documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela ressemble\n à ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le lom:location de\n cette manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                             \'in1\'\n =&gt; \'\',<br>\n                                             \'in2\'\n =&gt; -1,<br>\n                                             \'in3\'\n =&gt; -1,<br>\n                                             \'in4\'\n =&gt; \'/lom:lom/lom:technical/lom:location\',<br>\n                                             \'in5\'\n =&gt; true,<br>\n                                             \'in6\'\n =&gt; false,<br>\n                                             \'in7\'\n =&gt; \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les\n paramètres à saisir, car je ne comprend pas les\n instructions :/<br>\n <br>\n Merci<br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div></div>\n </body>\n</html>\n</div>', created = 1507748717, expire = 1507835117, headers = '', serialized = 0 WHERE cid = '4:033c0d4ca98b26087a297ab01bf74016' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:8ed1c381055f0b8f41def44988e48cf6' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n </head>\n <body bgcolor=\"#ffffff\" text=\"#000000\">\n Rebonjour,<br>\n <br>\n J\'ai trouvé mon souci.<br>\n Il fallait renvoyer le tout dans /dev/null.<br>\n <br>\n <br>\n Pour ma part, les scripts PHP et python fonctionnent.<br>\n <br>\n Je vous les joints à ce mail.<br>\n <br>\n <br>\n Bon utilisation et n\'hésitez pas à me faire part de vos remarques.<br>\n Idem, Yohan, n\'hésites pas à l\'utiliser pour une future intégration\n si cela peut t\'aider.<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n Le 07/02/2011 11:19, françois lefebvre a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n Bonjour Yohan,<br>\n <br>\n <br>\n Le script python fonctionne., pas de souci.<br>\n <br>\n <br>\n Pour mon PHP :<br>\n <br>\n Je teste sous bash avant pour être sûr que cela fonctionne :<br>\n <br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 &amp;<br>\n <br>\n DISPLAY=:1 firefox <a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\n &amp;<br>\n <br>\n DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &amp;<br>\n <br>\n pkill firefox<br>\n <br>\n rm /root/.mozilla/firefox/ -rf <br>\n <br>\n killall -9 Xvfb<br>\n <br>\n <br>\n Sous bash, ca marche.<br>\n <br>\n <br>\n Par contre en PHP, je lance bien Xvfb, je récupère la main, je\n peux donc lancer firefox, mais là, je ne récupère pas la main pour\n faire le screenshot :/<br>\n Pourant je lance bien la commande avec le \"&amp;\" à la fin !<br>\n <br>\n exec(\'DISPLAY=:1 firefox \'. $url .\' &amp;\');<br>\n <br>\n <br>\n <br>\n Pour info, je lance le script PHP en tant que root, donc il ne\n devrait pas y avoir de problème de droit...<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n Le 07/02/2011 09:15, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Verdana\">salut François,<br>\n <br>\n si tu fais une pause plus longue au lancement de firefox, ça\n ne change rien ?<br>\n est-ce que tu as testé la version python ? Estc-e qu\'elle\n fonctionne ?<br>\n <br>\n A+<br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\"> <font face=\"Verdana\"><small>\n Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </small> </font>\n </div>\n </div>\n <br>\n Le 04/02/2011 14:36, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n Je précise un peu les choses :<br>\n <br>\n <b><u>Je lance Xvfb : </u></b><br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 -ac 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n <b><u>Puis firefox, par l\'une de ses commandes :</u></b><br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\'\n &amp;<br>\n <br>\n DISPLAY=:1 firefox --remote \"openurl(\'<a\n moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\')\"\n &amp;<br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\'\n 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n Cela fonctionne pas vraiment car toujours un écran noir.<br>\n Pour le test, j\'ai relancé une deuxième fois firefox par une\n de ces commandes, et j\'ai un popup qui m\'affiche : Firefox\n déjà lancé.<br>\n J\'en déduis que Xvfb fonctionne bien, sinon je n\'aurai rien du\n tout.<br>\n <br>\n Si j\'affiche les erreurs, j\'obtiens au lancement de firefox\n ceci :<br>\n <br>\n <br>\n Erreur GConf : Failed to contact configuration server; some\n possible causes are that you need to enable TCP/IP networking\n for ORBit, or you have stale NFS locks due to a system crash.\n See <a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://projects.gnome.org/gconf/\">http://projects.gnome.org/gconf/</a>\n for information. (Details -  1: La connexion à la session a\n échoué : /usr/bin/dbus-launch terminated abnormally without\n any error message)<br>\n <br>\n <br>\n <br>\n <b>Pour faire une capture :</b><br>\n <br>\n DISPLAY=:1 import -window root -crop 1260x775+0+120 \'0.png\'\n &amp;<br>\n <br>\n <br>\n <br>\n <br>\n Avez vous des idées ?<br>\n <br>\n Cordialement.<br>\n <br>\n <br>\n <br>\n Le 04/02/2011 11:21, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_3\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n Bonjour,<br>\n <br>\n J\'ai assez bien avancé sur le script.<br>\n <br>\n Je me permet de mettre le script python de Vincent\n légérement modifié pour prendre en compte si une ressource\n est accessible via SSO CAS.<br>\n <br>\n Pour ma part, le script PHP semble fonctionner. Seul souci :<br>\n créer une vignette en faisant un screenshot via firefox ne\n fonctionne pas tout le temps.<br>\n <br>\n En effet, des fois cela fonctionne, des fois, j\'ai des\n vignettes écran noir :/<br>\n <br>\n Si vous avez des infos pour réaliser à coup sûr cela, je\n suis preneur. Cela fait 4 jours que je me bats avec Xvfb\n &amp; cie ....<br>\n <br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n Le 26/01/2011 15:26, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_4\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Verdana\">Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"</font></font>//lom:technical/lom:location<font\n size=\"-1\"><font face=\"Verdana\">\"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n </font></font>md-ori-oai-namespace:(<a\n moz-do-not-send=\"true\" class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\">ou ceci :<br>\n </font></font>md-ori-oai-namespace:(<a\n moz-do-not-send=\"true\" class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\"><br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il faut.<br>\n <br>\n On évalue des solutions pour rendre le service de\n génération des vignettes directement dans ORI-OAI sans\n script python ou PERL .... donc ton retour sur ce que\n tu fais en PHP sera très intéressant !!!!<br>\n Ca pourrait potentiellement devenir une contribution à\n notre V2 ... on en rediscute en off si tu veux.<br>\n <br>\n A+<br>\n <br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\"> <font face=\"Verdana\"><small>\n Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </small>\n </font> </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_5\"><blockquote>\n <meta http-equiv=\"content-type\" content=\"text/html;\n charset=UTF-8\">\n Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je cherche\n à générer mes vignettes de documents via PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de la\n ressource.<br>\n Je récupère via la fonction webservice : searchXMLDocs\n les documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela ressemble à\n ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le lom:location de\n cette manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                             \'in1\' =&gt;\n \'\',<br>\n                                             \'in2\' =&gt;\n -1,<br>\n                                             \'in3\' =&gt;\n -1,<br>\n                                             \'in4\' =&gt;\n \'/lom:lom/lom:technical/lom:location\',<br>\n                                             \'in5\' =&gt;\n true,<br>\n                                             \'in6\' =&gt;\n false,<br>\n                                             \'in7\' =&gt;\n \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les paramètres\n à saisir, car je ne comprend pas les instructions :/<br>\n <br>\n Merci<br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </body>\n</html>\n</div>', created = 1507748717, expire = 1507835117, headers = '', serialized = 0 WHERE cid = '4:8ed1c381055f0b8f41def44988e48cf6' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:efe6d64db56c63ccf5498bbed142bd74' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n </head>\n <body bgcolor=\"#ffffff\" text=\"#000000\">\n Bonjour Yohan,<br>\n <br>\n <br>\n Le script python fonctionne., pas de souci.<br>\n <br>\n <br>\n Pour mon PHP :<br>\n <br>\n Je teste sous bash avant pour être sûr que cela fonctionne :<br>\n <br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 &amp;<br>\n <br>\n DISPLAY=:1 firefox <a class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a> &amp;<br>\n <br>\n DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &amp;<br>\n <br>\n pkill firefox<br>\n <br>\n rm /root/.mozilla/firefox/ -rf <br>\n <br>\n killall -9 Xvfb<br>\n <br>\n <br>\n Sous bash, ca marche.<br>\n <br>\n <br>\n Par contre en PHP, je lance bien Xvfb, je récupère la main, je peux\n donc lancer firefox, mais là, je ne récupère pas la main pour faire\n le screenshot :/<br>\n Pourant je lance bien la commande avec le \"&amp;\" à la fin !<br>\n <br>\n exec(\'DISPLAY=:1 firefox \'. $url .\' &amp;\');<br>\n <br>\n <br>\n <br>\n Pour info, je lance le script PHP en tant que root, donc il ne\n devrait pas y avoir de problème de droit...<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n Le 07/02/2011 09:15, Yohan Colmant a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Verdana\">salut François,<br>\n <br>\n si tu fais une pause plus longue au lancement de firefox, ça\n ne change rien ?<br>\n est-ce que tu as testé la version python ? Estc-e qu\'elle\n fonctionne ?<br>\n <br>\n A+<br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\"> <font face=\"Verdana\"><small> Yohan\n COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </small> </font>\n </div>\n </div>\n <br>\n Le 04/02/2011 14:36, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n Je précise un peu les choses :<br>\n <br>\n <b><u>Je lance Xvfb : </u></b><br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 -ac 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n <b><u>Puis firefox, par l\'une de ses commandes :</u></b><br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\'\n &amp;<br>\n <br>\n DISPLAY=:1 firefox --remote \"openurl(\'<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\')\"\n\n &amp;<br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\'\n 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n Cela fonctionne pas vraiment car toujours un écran noir.<br>\n Pour le test, j\'ai relancé une deuxième fois firefox par une de\n ces commandes, et j\'ai un popup qui m\'affiche : Firefox déjà\n lancé.<br>\n J\'en déduis que Xvfb fonctionne bien, sinon je n\'aurai rien du\n tout.<br>\n <br>\n Si j\'affiche les erreurs, j\'obtiens au lancement de firefox ceci\n :<br>\n <br>\n <br>\n Erreur GConf : Failed to contact configuration server; some\n possible causes are that you need to enable TCP/IP networking\n for ORBit, or you have stale NFS locks due to a system crash.\n See <a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://projects.gnome.org/gconf/\">http://projects.gnome.org/gconf/</a>\n for information. (Details -  1: La connexion à la session a\n échoué : /usr/bin/dbus-launch terminated abnormally without\n any error message)<br>\n <br>\n <br>\n <br>\n <b>Pour faire une capture :</b><br>\n <br>\n DISPLAY=:1 import -window root -crop 1260x775+0+120 \'0.png\'\n &amp;<br>\n <br>\n <br>\n <br>\n <br>\n Avez vous des idées ?<br>\n <br>\n Cordialement.<br>\n <br>\n <br>\n <br>\n Le 04/02/2011 11:21, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n Bonjour,<br>\n <br>\n J\'ai assez bien avancé sur le script.<br>\n <br>\n Je me permet de mettre le script python de Vincent légérement\n modifié pour prendre en compte si une ressource est accessible\n via SSO CAS.<br>\n <br>\n Pour ma part, le script PHP semble fonctionner. Seul souci :<br>\n créer une vignette en faisant un screenshot via firefox ne\n fonctionne pas tout le temps.<br>\n <br>\n En effet, des fois cela fonctionne, des fois, j\'ai des\n vignettes écran noir :/<br>\n <br>\n Si vous avez des infos pour réaliser à coup sûr cela, je suis\n preneur. Cela fait 4 jours que je me bats avec Xvfb &amp; cie\n ....<br>\n <br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n Le 26/01/2011 15:26, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_3\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Verdana\">Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"</font></font>//lom:technical/lom:location<font\n size=\"-1\"><font face=\"Verdana\">\"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n </font></font>md-ori-oai-namespace:(<a\n moz-do-not-send=\"true\" class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\">ou ceci :<br>\n </font></font>md-ori-oai-namespace:(<a\n moz-do-not-send=\"true\" class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\"><br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il faut.<br>\n <br>\n On évalue des solutions pour rendre le service de\n génération des vignettes directement dans ORI-OAI sans\n script python ou PERL .... donc ton retour sur ce que tu\n fais en PHP sera très intéressant !!!!<br>\n Ca pourrait potentiellement devenir une contribution à\n notre V2 ... on en rediscute en off si tu veux.<br>\n <br>\n A+<br>\n <br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\"> <font face=\"Verdana\"><small>\n Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </small> </font>\n </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_4\"><blockquote>\n <meta http-equiv=\"content-type\" content=\"text/html;\n charset=UTF-8\">\n Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je cherche à\n générer mes vignettes de documents via PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de la\n ressource.<br>\n Je récupère via la fonction webservice : searchXMLDocs les\n documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela ressemble à\n ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le lom:location de\n cette manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                             \'in1\' =&gt;\n \'\',<br>\n                                             \'in2\' =&gt;\n -1,<br>\n                                             \'in3\' =&gt;\n -1,<br>\n                                             \'in4\' =&gt;\n \'/lom:lom/lom:technical/lom:location\',<br>\n                                             \'in5\' =&gt;\n true,<br>\n                                             \'in6\' =&gt;\n false,<br>\n                                             \'in7\' =&gt;\n \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les paramètres à\n saisir, car je ne comprend pas les instructions :/<br>\n <br>\n Merci<br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </body>\n</html>\n</div>', created = 1507748718, expire = 1507835118, headers = '', serialized = 0 WHERE cid = '4:efe6d64db56c63ccf5498bbed142bd74' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:d474eaaf6555c63eab90b96391f7c17e' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n </head>\n <body text=\"#000000\" bgcolor=\"#ffffff\">\n <font size=\"-1\"><font face=\"Verdana\">salut François,<br>\n <br>\n si tu fais une pause plus longue au lancement de firefox, ça ne\n change rien ?<br>\n est-ce que tu as testé la version python ? Estc-e qu\'elle\n fonctionne ?<br>\n <br>\n A+<br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\">\n <font face=\"Verdana\"><small>\n Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI\n </small>\n </font>\n </div>\n </div>\n <br>\n Le 04/02/2011 14:36, françois lefebvre a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n Je précise un peu les choses :<br>\n <br>\n <b><u>Je lance Xvfb : </u></b><br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 -ac 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n <b><u>Puis firefox, par l\'une de ses commandes :</u></b><br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\'\n &amp;<br>\n <br>\n DISPLAY=:1 firefox --remote \"openurl(\'<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\')\"\n &amp;<br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\'\n 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n Cela fonctionne pas vraiment car toujours un écran noir.<br>\n Pour le test, j\'ai relancé une deuxième fois firefox par une de\n ces commandes, et j\'ai un popup qui m\'affiche : Firefox déjà\n lancé.<br>\n J\'en déduis que Xvfb fonctionne bien, sinon je n\'aurai rien du\n tout.<br>\n <br>\n Si j\'affiche les erreurs, j\'obtiens au lancement de firefox ceci :<br>\n <br>\n <br>\n Erreur GConf : Failed to contact configuration server; some\n possible causes are that you need to enable TCP/IP networking for\n ORBit, or you have stale NFS locks due to a system crash. See <a\n moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\"\n href=\"http://projects.gnome.org/gconf/\">http://projects.gnome.org/gconf/</a>\n for information. (Details -  1: La connexion à la session a\n échoué : /usr/bin/dbus-launch terminated abnormally without any\n error message)<br>\n <br>\n <br>\n <br>\n <b>Pour faire une capture :</b><br>\n <br>\n DISPLAY=:1 import -window root -crop 1260x775+0+120 \'0.png\' &amp;<br>\n <br>\n <br>\n <br>\n <br>\n Avez vous des idées ?<br>\n <br>\n Cordialement.<br>\n <br>\n <br>\n <br>\n Le 04/02/2011 11:21, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n Bonjour,<br>\n <br>\n J\'ai assez bien avancé sur le script.<br>\n <br>\n Je me permet de mettre le script python de Vincent légérement\n modifié pour prendre en compte si une ressource est accessible\n via SSO CAS.<br>\n <br>\n Pour ma part, le script PHP semble fonctionner. Seul souci :<br>\n créer une vignette en faisant un screenshot via firefox ne\n fonctionne pas tout le temps.<br>\n <br>\n En effet, des fois cela fonctionne, des fois, j\'ai des vignettes\n écran noir :/<br>\n <br>\n Si vous avez des infos pour réaliser à coup sûr cela, je suis\n preneur. Cela fait 4 jours que je me bats avec Xvfb &amp; cie\n ....<br>\n <br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n Le 26/01/2011 15:26, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Verdana\">Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"</font></font>//lom:technical/lom:location<font\n size=\"-1\"><font face=\"Verdana\">\"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n </font></font>md-ori-oai-namespace:(<a\n moz-do-not-send=\"true\" class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\">ou ceci :<br>\n </font></font>md-ori-oai-namespace:(<a\n moz-do-not-send=\"true\" class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\"><br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il faut.<br>\n <br>\n On évalue des solutions pour rendre le service de\n génération des vignettes directement dans ORI-OAI sans\n script python ou PERL .... donc ton retour sur ce que tu\n fais en PHP sera très intéressant !!!!<br>\n Ca pourrait potentiellement devenir une contribution à\n notre V2 ... on en rediscute en off si tu veux.<br>\n <br>\n A+<br>\n <br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\"> <font face=\"Verdana\"><small>\n Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </small> </font>\n </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_3\"><blockquote>\n <meta http-equiv=\"content-type\" content=\"text/html;\n charset=UTF-8\">\n Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je cherche à\n générer mes vignettes de documents via PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de la\n ressource.<br>\n Je récupère via la fonction webservice : searchXMLDocs les\n documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela ressemble à\n ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le lom:location de cette\n manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                             \'in1\' =&gt; \'\',<br>\n                                             \'in2\' =&gt; -1,<br>\n                                             \'in3\' =&gt; -1,<br>\n                                             \'in4\' =&gt;\n \'/lom:lom/lom:technical/lom:location\',<br>\n                                             \'in5\' =&gt;\n true,<br>\n                                             \'in6\' =&gt;\n false,<br>\n                                             \'in7\' =&gt;\n \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les paramètres à\n saisir, car je ne comprend pas les instructions :/<br>\n <br>\n Merci<br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div></div>\n </body>\n</html>\n</div>', created = 1507748718, expire = 1507835118, headers = '', serialized = 0 WHERE cid = '4:d474eaaf6555c63eab90b96391f7c17e' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:b3e6c8747ed81c3ae2b8d1c19e1855a8' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n </head>\n <body bgcolor=\"#ffffff\" text=\"#000000\">\n Je précise un peu les choses :<br>\n <br>\n <b><u>Je lance Xvfb : </u></b><br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 -ac 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n <b><u>Puis firefox, par l\'une de ses commandes :</u></b><br>\n <br>\n firefox --display=:1 \'<a class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\' &amp;<br>\n <br>\n DISPLAY=:1 firefox --remote \"openurl(\'<a class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\')\" &amp;<br>\n <br>\n firefox --display=:1 \'<a class=\"moz-txt-link-freetext\" href=\"http://www.google.fr\">http://www.google.fr</a>\' 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n Cela fonctionne pas vraiment car toujours un écran noir.<br>\n Pour le test, j\'ai relancé une deuxième fois firefox par une de ces\n commandes, et j\'ai un popup qui m\'affiche : Firefox déjà lancé.<br>\n J\'en déduis que Xvfb fonctionne bien, sinon je n\'aurai rien du tout.<br>\n <br>\n Si j\'affiche les erreurs, j\'obtiens au lancement de firefox ceci :<br>\n <br>\n <br>\n Erreur GConf : Failed to contact configuration server; some\n possible causes are that you need to enable TCP/IP networking for\n ORBit, or you have stale NFS locks due to a system crash. See\n <a class=\"moz-txt-link-freetext\" href=\"http://projects.gnome.org/gconf/\">http://projects.gnome.org/gconf/</a> for information. (Details -  1: La\n connexion à la session a échoué : /usr/bin/dbus-launch\n terminated abnormally without any error message)<br>\n <br>\n <br>\n <br>\n <b>Pour faire une capture :</b><br>\n <br>\n DISPLAY=:1 import -window root -crop 1260x775+0+120 \'0.png\' &amp;<br>\n <br>\n <br>\n <br>\n <br>\n Avez vous des idées ?<br>\n <br>\n Cordialement.<br>\n <br>\n <br>\n <br>\n Le 04/02/2011 11:21, françois lefebvre a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n Bonjour,<br>\n <br>\n J\'ai assez bien avancé sur le script.<br>\n <br>\n Je me permet de mettre le script python de Vincent légérement\n modifié pour prendre en compte si une ressource est accessible via\n SSO CAS.<br>\n <br>\n Pour ma part, le script PHP semble fonctionner. Seul souci :<br>\n créer une vignette en faisant un screenshot via firefox ne\n fonctionne pas tout le temps.<br>\n <br>\n En effet, des fois cela fonctionne, des fois, j\'ai des vignettes\n écran noir :/<br>\n <br>\n Si vous avez des infos pour réaliser à coup sûr cela, je suis\n preneur. Cela fait 4 jours que je me bats avec Xvfb &amp; cie ....<br>\n <br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n Le 26/01/2011 15:26, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Verdana\">Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"</font></font>//lom:technical/lom:location<font\n size=\"-1\"><font face=\"Verdana\">\"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n </font></font>md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\">ou ceci :<br>\n </font></font>md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\"><br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il faut.<br>\n <br>\n On évalue des solutions pour rendre le service de génération\n des vignettes directement dans ORI-OAI sans script python ou\n PERL .... donc ton retour sur ce que tu fais en PHP sera\n très intéressant !!!!<br>\n Ca pourrait potentiellement devenir une contribution à notre\n V2 ... on en rediscute en off si tu veux.<br>\n <br>\n A+<br>\n <br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\"> <font face=\"Verdana\"><small>\n Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </small> </font>\n </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote>\n <meta http-equiv=\"content-type\" content=\"text/html;\n charset=UTF-8\">\n Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je cherche à\n générer mes vignettes de documents via PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de la ressource.<br>\n Je récupère via la fonction webservice : searchXMLDocs les\n documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci\n :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le lom:location de cette\n manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                             \'in1\' =&gt; \'\',<br>\n                                             \'in2\' =&gt; -1,<br>\n                                             \'in3\' =&gt; -1,<br>\n                                             \'in4\' =&gt;\n \'/lom:lom/lom:technical/lom:location\',<br>\n                                             \'in5\' =&gt; true,<br>\n                                             \'in6\' =&gt; false,<br>\n                                             \'in7\' =&gt; \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les paramètres à\n saisir, car je ne comprend pas les instructions :/<br>\n <br>\n Merci<br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </body>\n</html>\n</div>', created = 1507748718, expire = 1507835118, headers = '', serialized = 0 WHERE cid = '4:b3e6c8747ed81c3ae2b8d1c19e1855a8' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:43ce5cd06f29549af899a02ae9b6fadb' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n </head>\n <body bgcolor=\"#ffffff\" text=\"#000000\">\n Bonjour,<br>\n <br>\n J\'ai assez bien avancé sur le script.<br>\n <br>\n Je me permet de mettre le script python de Vincent légérement\n modifié pour prendre en compte si une ressource est accessible via\n SSO CAS.<br>\n <br>\n Pour ma part, le script PHP semble fonctionner. Seul souci :<br>\n créer une vignette en faisant un screenshot via firefox ne\n fonctionne pas tout le temps.<br>\n <br>\n En effet, des fois cela fonctionne, des fois, j\'ai des vignettes\n écran noir :/<br>\n <br>\n Si vous avez des infos pour réaliser à coup sûr cela, je suis\n preneur. Cela fait 4 jours que je me bats avec Xvfb &amp; cie ....<br>\n <br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n Le 26/01/2011 15:26, Yohan Colmant a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n <font size=\"-1\"><font face=\"Verdana\">Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"</font></font>//lom:technical/lom:location<font\n size=\"-1\"><font face=\"Verdana\">\"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n </font></font>md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\">ou ceci :<br>\n </font></font>md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <font size=\"-1\"><font face=\"Verdana\"><br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il faut.<br>\n <br>\n On évalue des solutions pour rendre le service de génération\n des vignettes directement dans ORI-OAI sans script python ou\n PERL .... donc ton retour sur ce que tu fais en PHP sera très\n intéressant !!!!<br>\n Ca pourrait potentiellement devenir une contribution à notre\n V2 ... on en rediscute en off si tu veux.<br>\n <br>\n A+<br>\n <br>\n </font></font>\n <div class=\"moz-signature\">\n <div class=\"moz-signature\"> <font face=\"Verdana\"><small> Yohan\n COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </small> </font>\n </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <meta http-equiv=\"content-type\" content=\"text/html;\n charset=UTF-8\">\n Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je cherche à\n générer mes vignettes de documents via PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de la ressource.<br>\n Je récupère via la fonction webservice : searchXMLDocs les\n documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" class=\"moz-txt-link-freetext\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le lom:location de cette\n manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n class=\"moz-txt-link-rfc2396E\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                             \'in1\' =&gt; \'\',<br>\n                                             \'in2\' =&gt; -1,<br>\n                                             \'in3\' =&gt; -1,<br>\n                                             \'in4\' =&gt;\n \'/lom:lom/lom:technical/lom:location\',<br>\n                                             \'in5\' =&gt; true,<br>\n                                             \'in6\' =&gt; false,<br>\n                                             \'in7\' =&gt; \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les paramètres à\n saisir, car je ne comprend pas les instructions :/<br>\n <br>\n Merci<br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </body>\n</html>\n</div>', created = 1507748718, expire = 1507835118, headers = '', serialized = 0 WHERE cid = '4:43ce5cd06f29549af899a02ae9b6fadb' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:c60929054f1949e4e1a27b811fe2e9fc' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n </head>\n <body bgcolor=\"#ffffff\" text=\"#000000\">\n Bonjour,<br>\n <br>\n Voilà, j\'ai modifié mon script PHP pour y faire la capture d\'écran\n des fiches LOM et TEF.<br>\n Vous avez la possibilité de faire des captures en 150 et/ou 300px\n juste en modifiant quelques paramètres.<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n <br>\n <br>\n Le 05/05/2011 14:05, françois lefebvre a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n En fait, j\'ai fait plus simple.<br>\n Je traite les documents par lot de 100.<br>\n <br>\n Tant qu\'il y a des fiches dans l\'intervalle de 100 ( donc ca\n laisse une marge de manœuvre si des fiches sont supprimées ) alors\n je génére les screenshots.<br>\n <br>\n <br>\n De toutes facons, dès que mon script est terminé, je le met a jour\n ici.<br>\n <br>\n <br>\n <br>\n Exemple pour le lom :<br>\n <br>\n <br>\n #######################################<br>\n # LOM<br>\n #######################################<br>\n <br>\n $ficheID = 1;<br>\n <br>\n // recuperation de l\'id et de l\'URL pour les fiches LOM<br>\n while ( $fiches = getUrlsIdsFromOriIndexing($soap, \'<a\n moz-do-not-send=\"true\" class=\"moz-txt-link-abbreviated\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">http@//ltsc.ieee.org/xsd/LOM</a>\',\n $ficheID) )<br>\n {<br>\n     //recuperation de l\'image<br>\n     foreach ( $fiches as $key =&gt; $value )<br>\n     {<br>\n     <br>\n         echo \'##############################<br>\n \';<br>\n         echo \"#Ressource \".$value[\'id\'].\"<br>\n ##############################<br>\n \";<br>\n <br>\n <br>\n         //si vignettes déjà créées, on passe à la ressource\n suivante<br>\n         //        if ( !file_exists($repDepot\n .\"thumb150-\".$value[\'id\'] . \".png\") || !file_exists($repDepot\n .\"thumb300-\".$value[\'id\'] . \".png\") )<br>\n         if ( !file_exists($repDepot .\"thumb300-\".$value[\'id\'] .\n \".png\") )<br>\n         {<br>\n             //screenshot de la ressource<br>\n             $valid = shot($repDepot, $value[\'id\'],$value[\'url\']);<br>\n             <br>\n             if ( $valid )<br>\n             {<br>\n                 //redimmensionne le screenshot en vignette150<br>\n                 //thumb150($repDepot, $value[\'id\']);<br>\n                 <br>\n                 //redimmensionne le screenshot en vignette300<br>\n                 thumb300($repDepot, $value[\'id\']);<br>\n                         <br>\n                 //suppression du screenshot<br>\n                 exec(\"rm /tmp/\". $value[\'id\'] .\".png -f\");<br>\n             }<br>\n         }<br>\n         else<br>\n         {<br>\n             echo \'Deja traite...<br>\n \';<br>\n         }<br>\n     }<br>\n <br>\n     $ficheID = $ficheID + 100;<br>\n }<br>\n <br>\n <br>\n <br>\n <br>\n <br>\n Le 05/05/2011 13:30, Benjamin Roy a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\"\n http-equiv=\"Content-Type\">\n pour le script php, je pense que ça se trouve dans la function\n getUrlsIdsFromOriIndexing à cette ligne :<br>\n <br>\n     $fiches = $soap-&gt;searchXMLDocs(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(\"\'.$namespace.\'\")\',<br>\n                                         \'in1\' =&gt; 1,<br>\n                                         \'in2\' =&gt;1000 ));<br>\n <br>\n si tu mets in2=&gt;10000 ça devrait fonctionner (10000 est à\n titre indicatif et de toute façon il ne traitera que les fiches\n ramenées)<br>\n <br>\n une autre solution serait de questionner l\'indexing par web\n service pour savoir combien il y a de fiches concernées (peut\n être \"searchForNumberOfResults\" ?)<br>\n comme ça il n\'y aurait plus de pb sur le nombre de fiche à\n ramener...<br>\n <br>\n Le 05/05/2011 13:14, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote>\n <meta http-equiv=\"Context-Type\" content=\"text/html; \">\n Bonjour,<br>\n <br>\n <br>\n Maintenant que je travaille sur le TEF, j\'ai modifié mon\n script PHP.<br>\n Justement, je suis confronté au même problème, j\'allais\n commencer à fouiner partout pour trouver une solution :)<br>\n <br>\n Si tu as, je suis preneur :)<br>\n <br>\n <br>\n <br>\n Le 05/05/2011 12:48, Benjamin Roy a écrit :\n <div class=\"emailFilter_Author_3\"><blockquote>\n <title></title>\n Bonjour,<br>\n <br>\n Je reviens sur ce mail, car je suis en train de travailler\n sur les vignettes et j\'ai vu un point qui m\'a posé problème\n il y a quelques mois en arrière<br>\n <br>\n dans le script python, à la ligne 141, il semble que le\n programme ne traite que les 1000 premières fiches :<br>\n     results = oriindexing.searchXMLDocs(request, 1,\n 1000)[\'results\'][\'SearchResult\']<br>\n <br>\n si 1 entrepôt dépasse les 1000 fiches il faut modifier cette\n valeur pour qu\'il prenne en compte le reste.<br>\n <br>\n si jamais quelqu\'un d\'autre avait se problème...<br>\n <br>\n cordialement<br>\n <br>\n Benjamin<br>\n <br>\n <br>\n Le 07/02/2011 14:11, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_4\"><blockquote> Rebonjour,<br>\n <br>\n J\'ai trouvé mon souci.<br>\n Il fallait renvoyer le tout dans /dev/null.<br>\n <br>\n <br>\n Pour ma part, les scripts PHP et python fonctionnent.<br>\n <br>\n Je vous les joints à ce mail.<br>\n <br>\n <br>\n Bon utilisation et n\'hésitez pas à me faire part de vos\n remarques.<br>\n Idem, Yohan, n\'hésites pas à l\'utiliser pour une future\n intégration si cela peut t\'aider.<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n Le 07/02/2011 11:19, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_5\"><blockquote> Bonjour Yohan,<br>\n <br>\n <br>\n Le script python fonctionne., pas de souci.<br>\n <br>\n <br>\n Pour mon PHP :<br>\n <br>\n Je teste sous bash avant pour être sûr que cela\n fonctionne :<br>\n <br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 &amp;<br>\n <br>\n DISPLAY=:1 firefox <a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\n &amp;<br>\n <br>\n DISPLAY=:1 import -window root -crop 995x775+0+120 0.png\n &amp;<br>\n <br>\n pkill firefox<br>\n <br>\n rm /root/.mozilla/firefox/ -rf <br>\n <br>\n killall -9 Xvfb<br>\n <br>\n <br>\n Sous bash, ca marche.<br>\n <br>\n <br>\n Par contre en PHP, je lance bien Xvfb, je récupère la\n main, je peux donc lancer firefox, mais là, je ne\n récupère pas la main pour faire le screenshot :/<br>\n Pourant je lance bien la commande avec le \"&amp;\" à la\n fin !<br>\n <br>\n exec(\'DISPLAY=:1 firefox \'. $url .\' &amp;\');<br>\n <br>\n <br>\n <br>\n Pour info, je lance le script PHP en tant que root, donc\n il ne devrait pas y avoir de problème de droit...<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n Le 07/02/2011 09:15, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_6\"><blockquote\n cite=\"mid:<span id=\"a3d5e92c57484df32761ceb295829e87\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'a3d5e92c57484df32761ceb295829e87\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#70;&#65;&#65;&#51;&#68;&#46;&#57;&#48;&#57;&#48;&#53;&#48;&#51;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#70;&#65;&#65;&#51;&#68;&#46;&#57;&#48;&#57;&#48;&#53;&#48;&#51;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\"> salut François,<br>\n <br>\n si tu fais une pause plus longue au lancement de\n firefox, ça ne change rien ?<br>\n est-ce que tu as testé la version python ? Estc-e\n qu\'elle fonctionne ?<br>\n <br>\n A+<br>\n <div>\n <div> Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </div>\n </div>\n <br>\n Le 04/02/2011 14:36, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_7\"><blockquote> Je précise un peu les choses :<br>\n <br>\n <b> Je lance Xvfb : </b><br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 -ac 2&gt; /dev/null\n &amp;<br>\n <br>\n <br>\n <b> Puis firefox, par l\'une de ses commandes : </b><br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\'\n &amp;<br>\n <br>\n DISPLAY=:1 firefox --remote \"openurl(\'<a\n moz-do-not-send=\"true\" href=\"http://www.google.fr\">http://www.google.fr</a>\')\"\n\n\n\n\n\n &amp;<br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\'\n 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n Cela fonctionne pas vraiment car toujours un écran\n noir.<br>\n Pour le test, j\'ai relancé une deuxième fois firefox\n par une de ces commandes, et j\'ai un popup qui\n m\'affiche : Firefox déjà lancé.<br>\n J\'en déduis que Xvfb fonctionne bien, sinon je\n n\'aurai rien du tout.<br>\n <br>\n Si j\'affiche les erreurs, j\'obtiens au lancement de\n firefox ceci :<br>\n <br>\n <br>\n Erreur GConf : Failed to contact configuration\n server; some possible causes are that you need to\n enable TCP/IP networking for ORBit, or you have\n stale NFS locks due to a system crash. See <a\n moz-do-not-send=\"true\"\n href=\"http://projects.gnome.org/gconf/\">http://projects.gnome.org/gconf/</a>\n for information. (Details -  1: La connexion à la\n session a échoué : /usr/bin/dbus-launch\n terminated abnormally without any error message)<br>\n <br>\n <br>\n <br>\n <b>Pour faire une capture :</b><br>\n <br>\n DISPLAY=:1 import -window root -crop 1260x775+0+120\n \'0.png\' &amp;<br>\n <br>\n <br>\n <br>\n <br>\n Avez vous des idées ?<br>\n <br>\n Cordialement.<br>\n <br>\n <br>\n <br>\n Le 04/02/2011 11:21, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_8\"><blockquote\n cite=\"mid:<span id=\"e390b2fbe7141abbf400b0017fdabd65\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'e390b2fbe7141abbf400b0017fdabd65\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#66;&#68;&#51;&#52;&#50;&#46;&#51;&#48;&#54;&#48;&#57;&#48;&#55;&#64;&#117;&#110;&#105;&#118;&#45;&#108;&#105;&#108;&#108;&#101;&#49;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#66;&#68;&#51;&#52;&#50;&#46;&#51;&#48;&#54;&#48;&#57;&#48;&#55;&#64;&#117;&#110;&#105;&#118;&#45;&#108;&#105;&#108;&#108;&#101;&#49;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\"> Bonjour,<br>\n <br>\n J\'ai assez bien avancé sur le script.<br>\n <br>\n Je me permet de mettre le script python de Vincent\n légérement modifié pour prendre en compte si une\n ressource est accessible via SSO CAS.<br>\n <br>\n Pour ma part, le script PHP semble fonctionner.\n Seul souci :<br>\n créer une vignette en faisant un screenshot via\n firefox ne fonctionne pas tout le temps.<br>\n <br>\n En effet, des fois cela fonctionne, des fois, j\'ai\n des vignettes écran noir :/<br>\n <br>\n Si vous avez des infos pour réaliser à coup sûr\n cela, je suis preneur. Cela fait 4 jours que je me\n bats avec Xvfb &amp; cie ....<br>\n <br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n Le 26/01/2011 15:26, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_9\"><blockquote\n cite=\"mid:<span id=\"9100882bc513913dc72d7ce5de21ceb0\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'9100882bc513913dc72d7ce5de21ceb0\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\"> Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois\n utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"\n //lom:technical/lom:location \"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n ou ceci :<br>\n md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il\n faut.<br>\n <br>\n On évalue des solutions pour rendre le service\n de génération des vignettes directement dans\n ORI-OAI sans script python ou PERL .... donc ton\n retour sur ce que tu fais en PHP sera très\n intéressant !!!!<br>\n Ca pourrait potentiellement devenir une\n contribution à notre V2 ... on en rediscute en\n off si tu veux.<br>\n <br>\n A+<br>\n <br>\n <div>\n <div> Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du\n Hainaut Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_9\"><blockquote\n cite=\"mid:<span id=\"4a8d885f9defe78bd82caa80c3dc4374\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'4a8d885f9defe78bd82caa80c3dc4374\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#48;&#50;&#56;&#56;&#56;&#46;&#57;&#48;&#57;&#48;&#50;&#48;&#48;&#64;&#117;&#110;&#105;&#118;&#45;&#108;&#105;&#108;&#108;&#101;&#49;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#48;&#50;&#56;&#56;&#56;&#46;&#57;&#48;&#57;&#48;&#50;&#48;&#48;&#64;&#117;&#110;&#105;&#118;&#45;&#108;&#105;&#108;&#108;&#101;&#49;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\"> Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL,\n je cherche à générer mes vignettes de\n documents via PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL\n de la ressource.<br>\n Je récupère via la fonction webservice :\n searchXMLDocs les documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela\n ressemble à ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le\n lom:location de cette manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\'\n =&gt; \'md-ori-oai-namespace:(<a\n moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                            \n \'in1\' =&gt; \'\',<br>\n                                            \n \'in2\' =&gt; -1,<br>\n                                            \n \'in3\' =&gt; -1,<br>\n                                            \n \'in4\' =&gt;\n \'/lom:lom/lom:technical/lom:location\',<br>\n                                            \n \'in5\' =&gt; true,<br>\n                                            \n \'in6\' =&gt; false,<br>\n                                            \n \'in7\' =&gt; \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les\n paramètres à saisir, car je ne comprend pas\n les instructions :/<br>\n <br>\n Merci<br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </body>\n</html>\n</div>', created = 1507748718, expire = 1507835118, headers = '', serialized = 0 WHERE cid = '4:c60929054f1949e4e1a27b811fe2e9fc' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:6fcecaef58da7c023876ab4766c0effa' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n </head>\n <body bgcolor=\"#ffffff\" text=\"#000000\">\n En fait, j\'ai fait plus simple.<br>\n Je traite les documents par lot de 100.<br>\n <br>\n Tant qu\'il y a des fiches dans l\'intervalle de 100 ( donc ca laisse\n une marge de manœuvre si des fiches sont supprimées ) alors je\n génére les screenshots.<br>\n <br>\n <br>\n De toutes facons, dès que mon script est terminé, je le met a jour\n ici.<br>\n <br>\n <br>\n <br>\n Exemple pour le lom :<br>\n <br>\n <br>\n #######################################<br>\n # LOM<br>\n #######################################<br>\n <br>\n $ficheID = 1;<br>\n <br>\n // recuperation de l\'id et de l\'URL pour les fiches LOM<br>\n while ( $fiches = getUrlsIdsFromOriIndexing($soap,\n \'<a class=\"moz-txt-link-abbreviated\" href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">http@//ltsc.ieee.org/xsd/LOM</a>\', $ficheID) )<br>\n {<br>\n     //recuperation de l\'image<br>\n     foreach ( $fiches as $key =&gt; $value )<br>\n     {<br>\n     <br>\n         echo \'##############################<br>\n \';<br>\n         echo \"#Ressource \".$value[\'id\'].\"<br>\n ##############################<br>\n \";<br>\n <br>\n <br>\n         //si vignettes déjà créées, on passe à la ressource suivante<br>\n         //        if ( !file_exists($repDepot\n .\"thumb150-\".$value[\'id\'] . \".png\") || !file_exists($repDepot\n .\"thumb300-\".$value[\'id\'] . \".png\") )<br>\n         if ( !file_exists($repDepot .\"thumb300-\".$value[\'id\'] .\n \".png\") )<br>\n         {<br>\n             //screenshot de la ressource<br>\n             $valid = shot($repDepot, $value[\'id\'],$value[\'url\']);<br>\n             <br>\n             if ( $valid )<br>\n             {<br>\n                 //redimmensionne le screenshot en vignette150<br>\n                 //thumb150($repDepot, $value[\'id\']);<br>\n                 <br>\n                 //redimmensionne le screenshot en vignette300<br>\n                 thumb300($repDepot, $value[\'id\']);<br>\n                         <br>\n                 //suppression du screenshot<br>\n                 exec(\"rm /tmp/\". $value[\'id\'] .\".png -f\");<br>\n             }<br>\n         }<br>\n         else<br>\n         {<br>\n             echo \'Deja traite...<br>\n \';<br>\n         }<br>\n     }<br>\n <br>\n     $ficheID = $ficheID + 100;<br>\n }<br>\n <br>\n <br>\n <br>\n <br>\n <br>\n Le 05/05/2011 13:30, Benjamin Roy a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n pour le script php, je pense que ça se trouve dans la function\n getUrlsIdsFromOriIndexing à cette ligne :<br>\n <br>\n     $fiches = $soap-&gt;searchXMLDocs(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(\"\'.$namespace.\'\")\',<br>\n                                         \'in1\' =&gt; 1,<br>\n                                         \'in2\' =&gt;1000 ));<br>\n <br>\n si tu mets in2=&gt;10000 ça devrait fonctionner (10000 est à titre\n indicatif et de toute façon il ne traitera que les fiches\n ramenées)<br>\n <br>\n une autre solution serait de questionner l\'indexing par web\n service pour savoir combien il y a de fiches concernées (peut être\n \"searchForNumberOfResults\" ?)<br>\n comme ça il n\'y aurait plus de pb sur le nombre de fiche à\n ramener...<br>\n <br>\n Le 05/05/2011 13:14, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <meta http-equiv=\"Context-Type\" content=\"text/html; \">\n Bonjour,<br>\n <br>\n <br>\n Maintenant que je travaille sur le TEF, j\'ai modifié mon script\n PHP.<br>\n Justement, je suis confronté au même problème, j\'allais\n commencer à fouiner partout pour trouver une solution :)<br>\n <br>\n Si tu as, je suis preneur :)<br>\n <br>\n <br>\n <br>\n Le 05/05/2011 12:48, Benjamin Roy a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote>\n <title></title>\n Bonjour,<br>\n <br>\n Je reviens sur ce mail, car je suis en train de travailler sur\n les vignettes et j\'ai vu un point qui m\'a posé problème il y a\n quelques mois en arrière<br>\n <br>\n dans le script python, à la ligne 141, il semble que le\n programme ne traite que les 1000 premières fiches :<br>\n     results = oriindexing.searchXMLDocs(request, 1,\n 1000)[\'results\'][\'SearchResult\']<br>\n <br>\n si 1 entrepôt dépasse les 1000 fiches il faut modifier cette\n valeur pour qu\'il prenne en compte le reste.<br>\n <br>\n si jamais quelqu\'un d\'autre avait se problème...<br>\n <br>\n cordialement<br>\n <br>\n Benjamin<br>\n <br>\n <br>\n Le 07/02/2011 14:11, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_3\"><blockquote> Rebonjour,<br>\n <br>\n J\'ai trouvé mon souci.<br>\n Il fallait renvoyer le tout dans /dev/null.<br>\n <br>\n <br>\n Pour ma part, les scripts PHP et python fonctionnent.<br>\n <br>\n Je vous les joints à ce mail.<br>\n <br>\n <br>\n Bon utilisation et n\'hésitez pas à me faire part de vos\n remarques.<br>\n Idem, Yohan, n\'hésites pas à l\'utiliser pour une future\n intégration si cela peut t\'aider.<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n Le 07/02/2011 11:19, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_4\"><blockquote> Bonjour Yohan,<br>\n <br>\n <br>\n Le script python fonctionne., pas de souci.<br>\n <br>\n <br>\n Pour mon PHP :<br>\n <br>\n Je teste sous bash avant pour être sûr que cela fonctionne\n :<br>\n <br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 &amp;<br>\n <br>\n DISPLAY=:1 firefox <a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\n &amp;<br>\n <br>\n DISPLAY=:1 import -window root -crop 995x775+0+120 0.png\n &amp;<br>\n <br>\n pkill firefox<br>\n <br>\n rm /root/.mozilla/firefox/ -rf <br>\n <br>\n killall -9 Xvfb<br>\n <br>\n <br>\n Sous bash, ca marche.<br>\n <br>\n <br>\n Par contre en PHP, je lance bien Xvfb, je récupère la\n main, je peux donc lancer firefox, mais là, je ne récupère\n pas la main pour faire le screenshot :/<br>\n Pourant je lance bien la commande avec le \"&amp;\" à la fin\n !<br>\n <br>\n exec(\'DISPLAY=:1 firefox \'. $url .\' &amp;\');<br>\n <br>\n <br>\n <br>\n Pour info, je lance le script PHP en tant que root, donc\n il ne devrait pas y avoir de problème de droit...<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n Le 07/02/2011 09:15, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_5\"><blockquote\n cite=\"mid:<span id=\"da04bb7ea205b8ade3f68b47c686d450\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'da04bb7ea205b8ade3f68b47c686d450\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#70;&#65;&#65;&#51;&#68;&#46;&#57;&#48;&#57;&#48;&#53;&#48;&#51;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#70;&#65;&#65;&#51;&#68;&#46;&#57;&#48;&#57;&#48;&#53;&#48;&#51;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\"> salut François,<br>\n <br>\n si tu fais une pause plus longue au lancement de\n firefox, ça ne change rien ?<br>\n est-ce que tu as testé la version python ? Estc-e\n qu\'elle fonctionne ?<br>\n <br>\n A+<br>\n <div>\n <div> Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </div>\n </div>\n <br>\n Le 04/02/2011 14:36, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_6\"><blockquote> Je précise un peu les choses :<br>\n <br>\n <b> Je lance Xvfb : </b><br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 -ac 2&gt; /dev/null\n &amp;<br>\n <br>\n <br>\n <b> Puis firefox, par l\'une de ses commandes : </b><br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\'\n &amp;<br>\n <br>\n DISPLAY=:1 firefox --remote \"openurl(\'<a\n moz-do-not-send=\"true\" href=\"http://www.google.fr\">http://www.google.fr</a>\')\"\n\n\n\n\n &amp;<br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\'\n 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n Cela fonctionne pas vraiment car toujours un écran\n noir.<br>\n Pour le test, j\'ai relancé une deuxième fois firefox\n par une de ces commandes, et j\'ai un popup qui\n m\'affiche : Firefox déjà lancé.<br>\n J\'en déduis que Xvfb fonctionne bien, sinon je n\'aurai\n rien du tout.<br>\n <br>\n Si j\'affiche les erreurs, j\'obtiens au lancement de\n firefox ceci :<br>\n <br>\n <br>\n Erreur GConf : Failed to contact configuration\n server; some possible causes are that you need to\n enable TCP/IP networking for ORBit, or you have stale\n NFS locks due to a system crash. See <a\n moz-do-not-send=\"true\"\n href=\"http://projects.gnome.org/gconf/\">http://projects.gnome.org/gconf/</a>\n for information. (Details -  1: La connexion à la\n session a échoué : /usr/bin/dbus-launch terminated\n abnormally without any error message)<br>\n <br>\n <br>\n <br>\n <b>Pour faire une capture :</b><br>\n <br>\n DISPLAY=:1 import -window root -crop 1260x775+0+120\n \'0.png\' &amp;<br>\n <br>\n <br>\n <br>\n <br>\n Avez vous des idées ?<br>\n <br>\n Cordialement.<br>\n <br>\n <br>\n <br>\n Le 04/02/2011 11:21, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_7\"><blockquote> Bonjour,<br>\n <br>\n J\'ai assez bien avancé sur le script.<br>\n <br>\n Je me permet de mettre le script python de Vincent\n légérement modifié pour prendre en compte si une\n ressource est accessible via SSO CAS.<br>\n <br>\n Pour ma part, le script PHP semble fonctionner. Seul\n souci :<br>\n créer une vignette en faisant un screenshot via\n firefox ne fonctionne pas tout le temps.<br>\n <br>\n En effet, des fois cela fonctionne, des fois, j\'ai\n des vignettes écran noir :/<br>\n <br>\n Si vous avez des infos pour réaliser à coup sûr\n cela, je suis preneur. Cela fait 4 jours que je me\n bats avec Xvfb &amp; cie ....<br>\n <br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n Le 26/01/2011 15:26, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_8\"><blockquote\n cite=\"mid:<span id=\"7a25ae0ffe829bf1f42927476b85cba2\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'7a25ae0ffe829bf1f42927476b85cba2\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\"> Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois\n utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"\n //lom:technical/lom:location \"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n ou ceci :<br>\n md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il\n faut.<br>\n <br>\n On évalue des solutions pour rendre le service de\n génération des vignettes directement dans ORI-OAI\n sans script python ou PERL .... donc ton retour\n sur ce que tu fais en PHP sera très intéressant\n !!!!<br>\n Ca pourrait potentiellement devenir une\n contribution à notre V2 ... on en rediscute en off\n si tu veux.<br>\n <br>\n A+<br>\n <br>\n <div>\n <div> Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du\n Hainaut Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_9\"><blockquote\n cite=\"mid:<span id=\"47b43f56b013ea834d235005b15cad25\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'47b43f56b013ea834d235005b15cad25\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#48;&#50;&#56;&#56;&#56;&#46;&#57;&#48;&#57;&#48;&#50;&#48;&#48;&#64;&#117;&#110;&#105;&#118;&#45;&#108;&#105;&#108;&#108;&#101;&#49;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#48;&#50;&#56;&#56;&#56;&#46;&#57;&#48;&#57;&#48;&#50;&#48;&#48;&#64;&#117;&#110;&#105;&#118;&#45;&#108;&#105;&#108;&#108;&#101;&#49;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\"> Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je\n cherche à générer mes vignettes de documents via\n PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de\n la ressource.<br>\n Je récupère via la fonction webservice :\n searchXMLDocs les documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela\n ressemble à ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le\n lom:location de cette manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\'\n =&gt; \'md-ori-oai-namespace:(<a\n moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                            \n \'in1\' =&gt; \'\',<br>\n                                            \n \'in2\' =&gt; -1,<br>\n                                            \n \'in3\' =&gt; -1,<br>\n                                            \n \'in4\' =&gt;\n \'/lom:lom/lom:technical/lom:location\',<br>\n                                            \n \'in5\' =&gt; true,<br>\n                                            \n \'in6\' =&gt; false,<br>\n                                            \n \'in7\' =&gt; \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les\n paramètres à saisir, car je ne comprend pas les\n instructions :/<br>\n <br>\n Merci<br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </body>\n</html>\n</div>', created = 1507748718, expire = 1507835118, headers = '', serialized = 0 WHERE cid = '4:6fcecaef58da7c023876ab4766c0effa' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:5dc8691f7fbb8cbe095b08fcf21ce185' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n </head>\n <body text=\"#000000\" bgcolor=\"#ffffff\">\n pour le script php, je pense que ça se trouve dans la function\n getUrlsIdsFromOriIndexing à cette ligne :<br>\n <br>\n     $fiches = $soap-&gt;searchXMLDocs(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(\"\'.$namespace.\'\")\',<br>\n                                         \'in1\' =&gt; 1,<br>\n                                         \'in2\' =&gt;1000 ));<br>\n <br>\n si tu mets in2=&gt;10000 ça devrait fonctionner (10000 est à titre\n indicatif et de toute façon il ne traitera que les fiches ramenées)<br>\n <br>\n une autre solution serait de questionner l\'indexing par web service\n pour savoir combien il y a de fiches concernées (peut être\n \"searchForNumberOfResults\" ?)<br>\n comme ça il n\'y aurait plus de pb sur le nombre de fiche à\n ramener...<br>\n <br>\n Le 05/05/2011 13:14, françois lefebvre a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta http-equiv=\"Context-Type\" content=\"text/html; charset=UTF-8\">\n Bonjour,<br>\n <br>\n <br>\n Maintenant que je travaille sur le TEF, j\'ai modifié mon script\n PHP.<br>\n Justement, je suis confronté au même problème, j\'allais commencer\n à fouiner partout pour trouver une solution :)<br>\n <br>\n Si tu as, je suis preneur :)<br>\n <br>\n <br>\n <br>\n Le 05/05/2011 12:48, Benjamin Roy a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <title></title>\n Bonjour,<br>\n <br>\n Je reviens sur ce mail, car je suis en train de travailler sur\n les vignettes et j\'ai vu un point qui m\'a posé problème il y a\n quelques mois en arrière<br>\n <br>\n dans le script python, à la ligne 141, il semble que le\n programme ne traite que les 1000 premières fiches :<br>\n     results = oriindexing.searchXMLDocs(request, 1,\n 1000)[\'results\'][\'SearchResult\']<br>\n <br>\n si 1 entrepôt dépasse les 1000 fiches il faut modifier cette\n valeur pour qu\'il prenne en compte le reste.<br>\n <br>\n si jamais quelqu\'un d\'autre avait se problème...<br>\n <br>\n cordialement<br>\n <br>\n Benjamin<br>\n <br>\n <br>\n Le 07/02/2011 14:11, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote> Rebonjour,<br>\n <br>\n J\'ai trouvé mon souci.<br>\n Il fallait renvoyer le tout dans /dev/null.<br>\n <br>\n <br>\n Pour ma part, les scripts PHP et python fonctionnent.<br>\n <br>\n Je vous les joints à ce mail.<br>\n <br>\n <br>\n Bon utilisation et n\'hésitez pas à me faire part de vos\n remarques.<br>\n Idem, Yohan, n\'hésites pas à l\'utiliser pour une future\n intégration si cela peut t\'aider.<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n Le 07/02/2011 11:19, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_3\"><blockquote> Bonjour Yohan,<br>\n <br>\n <br>\n Le script python fonctionne., pas de souci.<br>\n <br>\n <br>\n Pour mon PHP :<br>\n <br>\n Je teste sous bash avant pour être sûr que cela fonctionne :<br>\n <br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 &amp;<br>\n <br>\n DISPLAY=:1 firefox <a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a> &amp;<br>\n <br>\n DISPLAY=:1 import -window root -crop 995x775+0+120 0.png\n &amp;<br>\n <br>\n pkill firefox<br>\n <br>\n rm /root/.mozilla/firefox/ -rf <br>\n <br>\n killall -9 Xvfb<br>\n <br>\n <br>\n Sous bash, ca marche.<br>\n <br>\n <br>\n Par contre en PHP, je lance bien Xvfb, je récupère la main,\n je peux donc lancer firefox, mais là, je ne récupère pas la\n main pour faire le screenshot :/<br>\n Pourant je lance bien la commande avec le \"&amp;\" à la fin !<br>\n <br>\n exec(\'DISPLAY=:1 firefox \'. $url .\' &amp;\');<br>\n <br>\n <br>\n <br>\n Pour info, je lance le script PHP en tant que root, donc il\n ne devrait pas y avoir de problème de droit...<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n Le 07/02/2011 09:15, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_4\"><blockquote> salut François,<br>\n <br>\n si tu fais une pause plus longue au lancement de firefox,\n ça ne change rien ?<br>\n est-ce que tu as testé la version python ? Estc-e qu\'elle\n fonctionne ?<br>\n <br>\n A+<br>\n <div>\n <div> Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </div>\n </div>\n <br>\n Le 04/02/2011 14:36, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_5\"><blockquote> Je précise un peu les choses :<br>\n <br>\n <b> Je lance Xvfb : </b><br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 -ac 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n <b> Puis firefox, par l\'une de ses commandes : </b><br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\'\n &amp;<br>\n <br>\n DISPLAY=:1 firefox --remote \"openurl(\'<a\n moz-do-not-send=\"true\" href=\"http://www.google.fr\">http://www.google.fr</a>\')\"\n\n\n\n &amp;<br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\'\n 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n Cela fonctionne pas vraiment car toujours un écran noir.<br>\n Pour le test, j\'ai relancé une deuxième fois firefox par\n une de ces commandes, et j\'ai un popup qui m\'affiche :\n Firefox déjà lancé.<br>\n J\'en déduis que Xvfb fonctionne bien, sinon je n\'aurai\n rien du tout.<br>\n <br>\n Si j\'affiche les erreurs, j\'obtiens au lancement de\n firefox ceci :<br>\n <br>\n <br>\n Erreur GConf : Failed to contact configuration server;\n some possible causes are that you need to enable TCP/IP\n networking for ORBit, or you have stale NFS locks due to\n a system crash. See <a moz-do-not-send=\"true\"\n href=\"http://projects.gnome.org/gconf/\">http://projects.gnome.org/gconf/</a>\n for information. (Details -  1: La connexion à la\n session a échoué : /usr/bin/dbus-launch terminated\n abnormally without any error message)<br>\n <br>\n <br>\n <br>\n <b>Pour faire une capture :</b><br>\n <br>\n DISPLAY=:1 import -window root -crop 1260x775+0+120\n \'0.png\' &amp;<br>\n <br>\n <br>\n <br>\n <br>\n Avez vous des idées ?<br>\n <br>\n Cordialement.<br>\n <br>\n <br>\n <br>\n Le 04/02/2011 11:21, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_6\"><blockquote> Bonjour,<br>\n <br>\n J\'ai assez bien avancé sur le script.<br>\n <br>\n Je me permet de mettre le script python de Vincent\n légérement modifié pour prendre en compte si une\n ressource est accessible via SSO CAS.<br>\n <br>\n Pour ma part, le script PHP semble fonctionner. Seul\n souci :<br>\n créer une vignette en faisant un screenshot via\n firefox ne fonctionne pas tout le temps.<br>\n <br>\n En effet, des fois cela fonctionne, des fois, j\'ai des\n vignettes écran noir :/<br>\n <br>\n Si vous avez des infos pour réaliser à coup sûr cela,\n je suis preneur. Cela fait 4 jours que je me bats avec\n Xvfb &amp; cie ....<br>\n <br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n Le 26/01/2011 15:26, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_7\"><blockquote\n cite=\"mid:<span id=\"5a8a537df0e426625be005558b0e1aff\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'5a8a537df0e426625be005558b0e1aff\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\"> Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois\n utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"\n //lom:technical/lom:location \"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n ou ceci :<br>\n md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il faut.<br>\n <br>\n On évalue des solutions pour rendre le service de\n génération des vignettes directement dans ORI-OAI\n sans script python ou PERL .... donc ton retour sur\n ce que tu fais en PHP sera très intéressant !!!!<br>\n Ca pourrait potentiellement devenir une contribution\n à notre V2 ... on en rediscute en off si tu veux.<br>\n <br>\n A+<br>\n <br>\n <div>\n <div> Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_8\"><blockquote\n cite=\"mid:<span id=\"f8cf920e5bca8ea0f19269ad2eaa9b9c\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'f8cf920e5bca8ea0f19269ad2eaa9b9c\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#48;&#50;&#56;&#56;&#56;&#46;&#57;&#48;&#57;&#48;&#50;&#48;&#48;&#64;&#117;&#110;&#105;&#118;&#45;&#108;&#105;&#108;&#108;&#101;&#49;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#48;&#50;&#56;&#56;&#56;&#46;&#57;&#48;&#57;&#48;&#50;&#48;&#48;&#64;&#117;&#110;&#105;&#118;&#45;&#108;&#105;&#108;&#108;&#101;&#49;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\"> Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je\n cherche à générer mes vignettes de documents via\n PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de la\n ressource.<br>\n Je récupère via la fonction webservice :\n searchXMLDocs les documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela\n ressemble à ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le\n lom:location de cette manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                             \'in1\'\n =&gt; \'\',<br>\n                                             \'in2\'\n =&gt; -1,<br>\n                                             \'in3\'\n =&gt; -1,<br>\n                                             \'in4\'\n =&gt; \'/lom:lom/lom:technical/lom:location\',<br>\n                                             \'in5\'\n =&gt; true,<br>\n                                             \'in6\'\n =&gt; false,<br>\n                                             \'in7\'\n =&gt; \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les\n paramètres à saisir, car je ne comprend pas les\n instructions :/<br>\n <br>\n Merci<br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div></div>\n </body>\n</html>\n</div>', created = 1507748718, expire = 1507835118, headers = '', serialized = 0 WHERE cid = '4:5dc8691f7fbb8cbe095b08fcf21ce185' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:decc79bb3d3be6b247e05f14055ca1c7' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n </head>\n <body bgcolor=\"#ffffff\" text=\"#000000\">\n Bonjour,<br>\n <br>\n <br>\n Maintenant que je travaille sur le TEF, j\'ai modifié mon script PHP.<br>\n Justement, je suis confronté au même problème, j\'allais commencer à\n fouiner partout pour trouver une solution :)<br>\n <br>\n Si tu as, je suis preneur :)<br>\n <br>\n <br>\n <br>\n Le 05/05/2011 12:48, Benjamin Roy a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n <title></title>\n Bonjour,<br>\n <br>\n Je reviens sur ce mail, car je suis en train de travailler sur les\n vignettes et j\'ai vu un point qui m\'a posé problème il y a\n quelques mois en arrière<br>\n <br>\n dans le script python, à la ligne 141, il semble que le programme\n ne traite que les 1000 premières fiches :<br>\n     results = oriindexing.searchXMLDocs(request, 1,\n 1000)[\'results\'][\'SearchResult\']<br>\n <br>\n si 1 entrepôt dépasse les 1000 fiches il faut modifier cette\n valeur pour qu\'il prenne en compte le reste.<br>\n <br>\n si jamais quelqu\'un d\'autre avait se problème...<br>\n <br>\n cordialement<br>\n <br>\n Benjamin<br>\n <br>\n <br>\n Le 07/02/2011 14:11, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n <meta http-equiv=\"Context-Type\" content=\"text/html; \">\n Rebonjour,<br>\n <br>\n J\'ai trouvé mon souci.<br>\n Il fallait renvoyer le tout dans /dev/null.<br>\n <br>\n <br>\n Pour ma part, les scripts PHP et python fonctionnent.<br>\n <br>\n Je vous les joints à ce mail.<br>\n <br>\n <br>\n Bon utilisation et n\'hésitez pas à me faire part de vos\n remarques.<br>\n Idem, Yohan, n\'hésites pas à l\'utiliser pour une future\n intégration si cela peut t\'aider.<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n Le 07/02/2011 11:19, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote> Bonjour Yohan,<br>\n <br>\n <br>\n Le script python fonctionne., pas de souci.<br>\n <br>\n <br>\n Pour mon PHP :<br>\n <br>\n Je teste sous bash avant pour être sûr que cela fonctionne :<br>\n <br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 &amp;<br>\n <br>\n DISPLAY=:1 firefox <a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a> &amp;<br>\n <br>\n DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &amp;<br>\n <br>\n pkill firefox<br>\n <br>\n rm /root/.mozilla/firefox/ -rf <br>\n <br>\n killall -9 Xvfb<br>\n <br>\n <br>\n Sous bash, ca marche.<br>\n <br>\n <br>\n Par contre en PHP, je lance bien Xvfb, je récupère la main, je\n peux donc lancer firefox, mais là, je ne récupère pas la main\n pour faire le screenshot :/<br>\n Pourant je lance bien la commande avec le \"&amp;\" à la fin !<br>\n <br>\n exec(\'DISPLAY=:1 firefox \'. $url .\' &amp;\');<br>\n <br>\n <br>\n <br>\n Pour info, je lance le script PHP en tant que root, donc il ne\n devrait pas y avoir de problème de droit...<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n Le 07/02/2011 09:15, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_3\"><blockquote> salut François,<br>\n <br>\n si tu fais une pause plus longue au lancement de firefox, ça\n ne change rien ?<br>\n est-ce que tu as testé la version python ? Estc-e qu\'elle\n fonctionne ?<br>\n <br>\n A+<br>\n <div>\n <div> Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </div>\n </div>\n <br>\n Le 04/02/2011 14:36, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_4\"><blockquote> Je précise un peu les choses :<br>\n <br>\n <b> Je lance Xvfb : </b><br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 -ac 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n <b> Puis firefox, par l\'une de ses commandes : </b><br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\'\n &amp;<br>\n <br>\n DISPLAY=:1 firefox --remote \"openurl(\'<a\n moz-do-not-send=\"true\" href=\"http://www.google.fr\">http://www.google.fr</a>\')\"\n\n\n &amp;<br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\'\n 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n Cela fonctionne pas vraiment car toujours un écran noir.<br>\n Pour le test, j\'ai relancé une deuxième fois firefox par\n une de ces commandes, et j\'ai un popup qui m\'affiche :\n Firefox déjà lancé.<br>\n J\'en déduis que Xvfb fonctionne bien, sinon je n\'aurai\n rien du tout.<br>\n <br>\n Si j\'affiche les erreurs, j\'obtiens au lancement de\n firefox ceci :<br>\n <br>\n <br>\n Erreur GConf : Failed to contact configuration server;\n some possible causes are that you need to enable TCP/IP\n networking for ORBit, or you have stale NFS locks due to a\n system crash. See <a moz-do-not-send=\"true\"\n href=\"http://projects.gnome.org/gconf/\">http://projects.gnome.org/gconf/</a>\n for information. (Details -  1: La connexion à la session\n a échoué : /usr/bin/dbus-launch terminated abnormally\n without any error message)<br>\n <br>\n <br>\n <br>\n <b>Pour faire une capture :</b><br>\n <br>\n DISPLAY=:1 import -window root -crop 1260x775+0+120\n \'0.png\' &amp;<br>\n <br>\n <br>\n <br>\n <br>\n Avez vous des idées ?<br>\n <br>\n Cordialement.<br>\n <br>\n <br>\n <br>\n Le 04/02/2011 11:21, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_5\"><blockquote> Bonjour,<br>\n <br>\n J\'ai assez bien avancé sur le script.<br>\n <br>\n Je me permet de mettre le script python de Vincent\n légérement modifié pour prendre en compte si une\n ressource est accessible via SSO CAS.<br>\n <br>\n Pour ma part, le script PHP semble fonctionner. Seul\n souci :<br>\n créer une vignette en faisant un screenshot via firefox\n ne fonctionne pas tout le temps.<br>\n <br>\n En effet, des fois cela fonctionne, des fois, j\'ai des\n vignettes écran noir :/<br>\n <br>\n Si vous avez des infos pour réaliser à coup sûr cela, je\n suis preneur. Cela fait 4 jours que je me bats avec Xvfb\n &amp; cie ....<br>\n <br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n Le 26/01/2011 15:26, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_6\"><blockquote\n cite=\"mid:<span id=\"ed61cd1fa88cd28e1d432f4002c5b7eb\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'ed61cd1fa88cd28e1d432f4002c5b7eb\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\"> Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"\n //lom:technical/lom:location \"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n ou ceci :<br>\n md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il faut.<br>\n <br>\n On évalue des solutions pour rendre le service de\n génération des vignettes directement dans ORI-OAI sans\n script python ou PERL .... donc ton retour sur ce que\n tu fais en PHP sera très intéressant !!!!<br>\n Ca pourrait potentiellement devenir une contribution à\n notre V2 ... on en rediscute en off si tu veux.<br>\n <br>\n A+<br>\n <br>\n <div>\n <div> Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_7\"><blockquote> Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je\n cherche à générer mes vignettes de documents via\n PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de la\n ressource.<br>\n Je récupère via la fonction webservice :\n searchXMLDocs les documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela\n ressemble à ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le lom:location\n de cette manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                             \'in1\'\n =&gt; \'\',<br>\n                                             \'in2\'\n =&gt; -1,<br>\n                                             \'in3\'\n =&gt; -1,<br>\n                                             \'in4\'\n =&gt; \'/lom:lom/lom:technical/lom:location\',<br>\n                                             \'in5\'\n =&gt; true,<br>\n                                             \'in6\'\n =&gt; false,<br>\n                                             \'in7\'\n =&gt; \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les\n paramètres à saisir, car je ne comprend pas les\n instructions :/<br>\n <br>\n Merci<br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </body>\n</html>\n</div>', created = 1507748718, expire = 1507835118, headers = '', serialized = 0 WHERE cid = '4:decc79bb3d3be6b247e05f14055ca1c7' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: SELECT data, created, headers, expire, serialized FROM cache_filter WHERE cid = '4:c3e2be996e569e5a121cba510cf2e616' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 27.
  • user warning: Table './drupal_www_ori_oai_org/cache_filter' is marked as crashed and last (automatic?) repair failed query: UPDATE cache_filter SET data = '<div class=\"emailFilter\"><!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n<html>\n <head>\n <meta content=\"text/html; charset=UTF-8\" http-equiv=\"Content-Type\">\n <title></title>\n </head>\n <body text=\"#000000\" bgcolor=\"#ffffff\">\n Bonjour,<br>\n <br>\n Je reviens sur ce mail, car je suis en train de travailler sur les\n vignettes et j\'ai vu un point qui m\'a posé problème il y a quelques\n mois en arrière<br>\n <br>\n dans le script python, à la ligne 141, il semble que le programme ne\n traite que les 1000 premières fiches :<br>\n     results = oriindexing.searchXMLDocs(request, 1,\n 1000)[\'results\'][\'SearchResult\']<br>\n <br>\n si 1 entrepôt dépasse les 1000 fiches il faut modifier cette valeur\n pour qu\'il prenne en compte le reste.<br>\n <br>\n si jamais quelqu\'un d\'autre avait se problème...<br>\n <br>\n cordialement<br>\n <br>\n Benjamin<br>\n <br>\n <br>\n Le 07/02/2011 14:11, françois lefebvre a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><blockquote>\n <meta http-equiv=\"Context-Type\" content=\"text/html; charset=UTF-8\">\n Rebonjour,<br>\n <br>\n J\'ai trouvé mon souci.<br>\n Il fallait renvoyer le tout dans /dev/null.<br>\n <br>\n <br>\n Pour ma part, les scripts PHP et python fonctionnent.<br>\n <br>\n Je vous les joints à ce mail.<br>\n <br>\n <br>\n Bon utilisation et n\'hésitez pas à me faire part de vos remarques.<br>\n Idem, Yohan, n\'hésites pas à l\'utiliser pour une future\n intégration si cela peut t\'aider.<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n Le 07/02/2011 11:19, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_1\"><blockquote>\n Bonjour Yohan,<br>\n <br>\n <br>\n Le script python fonctionne., pas de souci.<br>\n <br>\n <br>\n Pour mon PHP :<br>\n <br>\n Je teste sous bash avant pour être sûr que cela fonctionne :<br>\n <br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 &amp;<br>\n <br>\n DISPLAY=:1 firefox <a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a> &amp;<br>\n <br>\n DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &amp;<br>\n <br>\n pkill firefox<br>\n <br>\n rm /root/.mozilla/firefox/ -rf <br>\n <br>\n killall -9 Xvfb<br>\n <br>\n <br>\n Sous bash, ca marche.<br>\n <br>\n <br>\n Par contre en PHP, je lance bien Xvfb, je récupère la main, je\n peux donc lancer firefox, mais là, je ne récupère pas la main\n pour faire le screenshot :/<br>\n Pourant je lance bien la commande avec le \"&amp;\" à la fin !<br>\n <br>\n exec(\'DISPLAY=:1 firefox \'. $url .\' &amp;\');<br>\n <br>\n <br>\n <br>\n Pour info, je lance le script PHP en tant que root, donc il ne\n devrait pas y avoir de problème de droit...<br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n Le 07/02/2011 09:15, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_2\"><blockquote> salut François,<br>\n <br>\n si tu fais une pause plus longue au lancement de firefox, ça\n ne change rien ?<br>\n est-ce que tu as testé la version python ? Estc-e qu\'elle\n fonctionne ?<br>\n <br>\n A+<br>\n <div>\n <div> Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </div>\n </div>\n <br>\n Le 04/02/2011 14:36, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_3\"><blockquote> Je précise un peu les choses :<br>\n <br>\n <b> Je lance Xvfb : </b><br>\n <br>\n Xvfb :1 -screen 0 1280x960x24 -ac 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n <b> Puis firefox, par l\'une de ses commandes : </b><br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\'\n &amp;<br>\n <br>\n DISPLAY=:1 firefox --remote \"openurl(\'<a\n moz-do-not-send=\"true\" href=\"http://www.google.fr\">http://www.google.fr</a>\')\"\n\n &amp;<br>\n <br>\n firefox --display=:1 \'<a moz-do-not-send=\"true\"\n href=\"http://www.google.fr\">http://www.google.fr</a>\'\n 2&gt; /dev/null &amp;<br>\n <br>\n <br>\n Cela fonctionne pas vraiment car toujours un écran noir.<br>\n Pour le test, j\'ai relancé une deuxième fois firefox par une\n de ces commandes, et j\'ai un popup qui m\'affiche : Firefox\n déjà lancé.<br>\n J\'en déduis que Xvfb fonctionne bien, sinon je n\'aurai rien\n du tout.<br>\n <br>\n Si j\'affiche les erreurs, j\'obtiens au lancement de firefox\n ceci :<br>\n <br>\n <br>\n Erreur GConf : Failed to contact configuration server; some\n possible causes are that you need to enable TCP/IP\n networking for ORBit, or you have stale NFS locks due to a\n system crash. See <a moz-do-not-send=\"true\"\n href=\"http://projects.gnome.org/gconf/\">http://projects.gnome.org/gconf/</a>\n for information. (Details -  1: La connexion à la session a\n échoué : /usr/bin/dbus-launch terminated abnormally\n without any error message)<br>\n <br>\n <br>\n <br>\n <b>Pour faire une capture :</b><br>\n <br>\n DISPLAY=:1 import -window root -crop 1260x775+0+120 \'0.png\'\n &amp;<br>\n <br>\n <br>\n <br>\n <br>\n Avez vous des idées ?<br>\n <br>\n Cordialement.<br>\n <br>\n <br>\n <br>\n Le 04/02/2011 11:21, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_4\"><blockquote> Bonjour,<br>\n <br>\n J\'ai assez bien avancé sur le script.<br>\n <br>\n Je me permet de mettre le script python de Vincent\n légérement modifié pour prendre en compte si une ressource\n est accessible via SSO CAS.<br>\n <br>\n Pour ma part, le script PHP semble fonctionner. Seul souci\n :<br>\n créer une vignette en faisant un screenshot via firefox ne\n fonctionne pas tout le temps.<br>\n <br>\n En effet, des fois cela fonctionne, des fois, j\'ai des\n vignettes écran noir :/<br>\n <br>\n Si vous avez des infos pour réaliser à coup sûr cela, je\n suis preneur. Cela fait 4 jours que je me bats avec Xvfb\n &amp; cie ....<br>\n <br>\n <br>\n <br>\n a+<br>\n <br>\n <br>\n <br>\n <br>\n Le 26/01/2011 15:26, Yohan Colmant a écrit :\n <div class=\"emailFilter_Author_5\"><blockquote\n cite=\"mid:<span id=\"97852db904fa973f82c930dc1d2a3dc9\"></span>\n <script type=\"text/javascript\" > <!--\n document.getElementById(\'97852db904fa973f82c930dc1d2a3dc9\')\n .innerHTML = \'<a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\'+\'\">\'+\'&#52;&#68;&#52;&#48;&#50;&#70;&#50;&#68;&#46;&#57;&#48;&#53;&#48;&#53;&#48;&#53;&#64;&#117;&#110;&#105;&#118;&#45;&#118;&#97;&#108;&#101;&#110;&#99;&#105;&#101;&#110;&#110;&#101;&#115;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\"> Salut François,<br>\n <br>\n C\'est bien searchFromAttributes que tu dois utiliser.<br>\n Dans in4, c\'est la valeur suivante à prendre : \"\n //lom:technical/lom:location \"<br>\n <br>\n Ensuite, dans in0, à voir si c\'est bien ceci :<br>\n md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)<br>\n ou ceci :<br>\n md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http://ltsc.ieee.org/xsd/LOM\"</a>)<br>\n <br>\n Je ne sais plus si c\'est avec \"@\" ou \":\" qu\'il faut.<br>\n <br>\n On évalue des solutions pour rendre le service de\n génération des vignettes directement dans ORI-OAI sans\n script python ou PERL .... donc ton retour sur ce que tu\n fais en PHP sera très intéressant !!!!<br>\n Ca pourrait potentiellement devenir une contribution à\n notre V2 ... on en rediscute en off si tu veux.<br>\n <br>\n A+<br>\n <br>\n <div>\n <div> Yohan COLMANT<br>\n Direction des Systèmes d\'Information<br>\n UVHC - Université de Valenciennes et du Hainaut\n Cambrésis<br>\n Coordinateur Technique du projet ORI-OAI </div>\n </div>\n <br>\n Le 26/01/2011 14:58, françois lefebvre a écrit :\n <div class=\"emailFilter_Author_6\"><blockquote> Bonjour,<br>\n <br>\n Ne sachant pas développer en python ou PERL, je\n cherche à générer mes vignettes de documents via PHP.<br>\n <br>\n Actuellement, je ne sais pas récupérer l\'URL de la\n ressource.<br>\n Je récupère via la fonction webservice : searchXMLDocs\n les documents publiés.<br>\n J\'obtiens mes 2 fiches LOM publiées, et cela ressemble\n à ceci :<br>\n <br>\n <br>\n [........]<br>\n SupLOMFRv1.0<br>\n <br>\n fre<br>\n <br>\n 000<br>\n <pre><a moz-do-not-send=\"true\" href=\"http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f\">http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f</a></pre>\n <br>\n PT1H16M<br>\n [........]<br>\n <br>\n <br>\n Donc impossible pour moi de trouver le lom:location de\n cette manière.<br>\n <br>\n <br>\n <br>\n D\'après ce que je peux lire sur la doc : <a\n moz-do-not-send=\"true\"\nhref=\"http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service\">http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service</a>\n , il y a la fonction <b>SearchFromAttributes</b>.<br>\n <br>\n $soap-&gt;SearchFromAttributes(array( \'in0\' =&gt;\n \'md-ori-oai-namespace:(<a moz-do-not-send=\"true\"\n href=\"mailto:http@//ltsc.ieee.org/xsd/LOM\">\"http@//ltsc.ieee.org/xsd/LOM\"</a>)\',<br>\n                                             \'in1\'\n =&gt; \'\',<br>\n                                             \'in2\'\n =&gt; -1,<br>\n                                             \'in3\'\n =&gt; -1,<br>\n                                             \'in4\'\n =&gt; \'/lom:lom/lom:technical/lom:location\',<br>\n                                             \'in5\'\n =&gt; true,<br>\n                                             \'in6\'\n =&gt; false,<br>\n                                             \'in7\'\n =&gt; \'\'));<br>\n <br>\n Ne me retourne rien de probant...<br>\n <br>\n <br>\n Quelqu\'un peut m\'expliquer plus en détail les\n paramètres à saisir, car je ne comprend pas les\n instructions :/<br>\n <br>\n Merci<br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div>\n <br>\n <pre>-- \nCordialement.\n\n\nFrançois Lefebvre\nBibliothèque Universitaire de Lille 1\nCité Scientifique - B.P. 30155\n59653 VILLENEUVE D\'ASCQ CEDEX\nTél.: 03.20.33.60.73</pre>\n </blockquote></div></div>\n </body>\n</html>\n</div>', created = 1507748718, expire = 1507835118, headers = '', serialized = 0 WHERE cid = '4:c3e2be996e569e5a121cba510cf2e616' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
13 messages / 0 nouveaux
Dernière contribution
Yohan Colmant
script PHP : création de vignettes
Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : "
//lom:technical/lom:location"

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
francoislefebvre
Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
Yohan Colmant
Salut François,

Merci pour ce retour et ta contribution.
Je me pencherai dessus dans le cadre de la V2 !

A+
Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 07/02/2011 14:11, françois lefebvre a écrit :
Rebonjour,

J'ai trouvé mon souci.
Il fallait renvoyer le tout dans /dev/null.


Pour ma part, les scripts PHP et python fonctionnent.

Je vous les joints à ce mail.


Bon utilisation et n'hésitez pas à me faire part de vos remarques.
Idem, Yohan, n'hésites pas à l'utiliser pour une future intégration si cela peut t'aider.


a+


Le 07/02/2011 11:19, françois lefebvre a écrit :
Bonjour Yohan,


Le script python fonctionne., pas de souci.


Pour mon PHP :

Je teste sous bash avant pour être sûr que cela fonctionne :


Xvfb :1 -screen 0 1280x960x24 &

DISPLAY=:1 firefox http://www.google.fr &

DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &

pkill firefox

rm /root/.mozilla/firefox/ -rf

killall -9 Xvfb


Sous bash, ca marche.


Par contre en PHP, je lance bien Xvfb, je récupère la main, je peux donc lancer firefox, mais là, je ne récupère pas la main pour faire le screenshot :/
Pourant je lance bien la commande avec le "&" à la fin !

exec('DISPLAY=:1 firefox '. $url .' &');



Pour info, je lance le script PHP en tant que root, donc il ne devrait pas y avoir de problème de droit...


a+



Le 07/02/2011 09:15, Yohan Colmant a écrit :
salut François,

si tu fais une pause plus longue au lancement de firefox, ça ne change rien ?
est-ce que tu as testé la version python ? Estc-e qu'elle fonctionne ?

A+
Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 04/02/2011 14:36, françois lefebvre a écrit :
Je précise un peu les choses :

Je lance Xvfb :

Xvfb :1 -screen 0 1280x960x24 -ac 2> /dev/null &


Puis firefox, par l'une de ses commandes :

firefox --display=:1 'http://www.google.fr' &

DISPLAY=:1 firefox --remote "openurl('http://www.google.fr')" &

firefox --display=:1 'http://www.google.fr' 2> /dev/null &


Cela fonctionne pas vraiment car toujours un écran noir.
Pour le test, j'ai relancé une deuxième fois firefox par une de ces commandes, et j'ai un popup qui m'affiche : Firefox déjà lancé.
J'en déduis que Xvfb fonctionne bien, sinon je n'aurai rien du tout.

Si j'affiche les erreurs, j'obtiens au lancement de firefox ceci :


Erreur GConf : Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: La connexion à la session a échoué : /usr/bin/dbus-launch terminated abnormally without any error message)



Pour faire une capture :

DISPLAY=:1 import -window root -crop 1260x775+0+120 '0.png' &




Avez vous des idées ?

Cordialement.



Le 04/02/2011 11:21, françois lefebvre a écrit :
Bonjour,

J'ai assez bien avancé sur le script.

Je me permet de mettre le script python de Vincent légérement modifié pour prendre en compte si une ressource est accessible via SSO CAS.

Pour ma part, le script PHP semble fonctionner. Seul souci :
créer une vignette en faisant un screenshot via firefox ne fonctionne pas tout le temps.

En effet, des fois cela fonctionne, des fois, j'ai des vignettes écran noir :/

Si vous avez des infos pour réaliser à coup sûr cela, je suis preneur. Cela fait 4 jours que je me bats avec Xvfb & cie ....



a+




Le 26/01/2011 15:26, Yohan Colmant a écrit :
" type="cite"> Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : "
//lom:technical/lom:location"

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
francoislefebvre
Rebonjour,

J'ai trouvé mon souci.
Il fallait renvoyer le tout dans /dev/null.


Pour ma part, les scripts PHP et python fonctionnent.

Je vous les joints à ce mail.


Bon utilisation et n'hésitez pas à me faire part de vos remarques.
Idem, Yohan, n'hésites pas à l'utiliser pour une future intégration si cela peut t'aider.


a+


Le 07/02/2011 11:19, françois lefebvre a écrit :
Bonjour Yohan,


Le script python fonctionne., pas de souci.


Pour mon PHP :

Je teste sous bash avant pour être sûr que cela fonctionne :


Xvfb :1 -screen 0 1280x960x24 &

DISPLAY=:1 firefox http://www.google.fr &

DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &

pkill firefox

rm /root/.mozilla/firefox/ -rf

killall -9 Xvfb


Sous bash, ca marche.


Par contre en PHP, je lance bien Xvfb, je récupère la main, je peux donc lancer firefox, mais là, je ne récupère pas la main pour faire le screenshot :/
Pourant je lance bien la commande avec le "&" à la fin !

exec('DISPLAY=:1 firefox '. $url .' &');



Pour info, je lance le script PHP en tant que root, donc il ne devrait pas y avoir de problème de droit...


a+



Le 07/02/2011 09:15, Yohan Colmant a écrit :
salut François,

si tu fais une pause plus longue au lancement de firefox, ça ne change rien ?
est-ce que tu as testé la version python ? Estc-e qu'elle fonctionne ?

A+
Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 04/02/2011 14:36, françois lefebvre a écrit :
Je précise un peu les choses :

Je lance Xvfb :

Xvfb :1 -screen 0 1280x960x24 -ac 2> /dev/null &


Puis firefox, par l'une de ses commandes :

firefox --display=:1 'http://www.google.fr' &

DISPLAY=:1 firefox --remote "openurl('http://www.google.fr')" &

firefox --display=:1 'http://www.google.fr' 2> /dev/null &


Cela fonctionne pas vraiment car toujours un écran noir.
Pour le test, j'ai relancé une deuxième fois firefox par une de ces commandes, et j'ai un popup qui m'affiche : Firefox déjà lancé.
J'en déduis que Xvfb fonctionne bien, sinon je n'aurai rien du tout.

Si j'affiche les erreurs, j'obtiens au lancement de firefox ceci :


Erreur GConf : Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: La connexion à la session a échoué : /usr/bin/dbus-launch terminated abnormally without any error message)



Pour faire une capture :

DISPLAY=:1 import -window root -crop 1260x775+0+120 '0.png' &




Avez vous des idées ?

Cordialement.



Le 04/02/2011 11:21, françois lefebvre a écrit :
Bonjour,

J'ai assez bien avancé sur le script.

Je me permet de mettre le script python de Vincent légérement modifié pour prendre en compte si une ressource est accessible via SSO CAS.

Pour ma part, le script PHP semble fonctionner. Seul souci :
créer une vignette en faisant un screenshot via firefox ne fonctionne pas tout le temps.

En effet, des fois cela fonctionne, des fois, j'ai des vignettes écran noir :/

Si vous avez des infos pour réaliser à coup sûr cela, je suis preneur. Cela fait 4 jours que je me bats avec Xvfb & cie ....



a+




Le 26/01/2011 15:26, Yohan Colmant a écrit :
Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : "
//lom:technical/lom:location"

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
francoislefebvre
Bonjour Yohan,


Le script python fonctionne., pas de souci.


Pour mon PHP :

Je teste sous bash avant pour être sûr que cela fonctionne :


Xvfb :1 -screen 0 1280x960x24 &

DISPLAY=:1 firefox http://www.google.fr &

DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &

pkill firefox

rm /root/.mozilla/firefox/ -rf

killall -9 Xvfb


Sous bash, ca marche.


Par contre en PHP, je lance bien Xvfb, je récupère la main, je peux donc lancer firefox, mais là, je ne récupère pas la main pour faire le screenshot :/
Pourant je lance bien la commande avec le "&" à la fin !

exec('DISPLAY=:1 firefox '. $url .' &');



Pour info, je lance le script PHP en tant que root, donc il ne devrait pas y avoir de problème de droit...


a+



Le 07/02/2011 09:15, Yohan Colmant a écrit :
salut François,

si tu fais une pause plus longue au lancement de firefox, ça ne change rien ?
est-ce que tu as testé la version python ? Estc-e qu'elle fonctionne ?

A+
Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 04/02/2011 14:36, françois lefebvre a écrit :
Je précise un peu les choses :

Je lance Xvfb :

Xvfb :1 -screen 0 1280x960x24 -ac 2> /dev/null &


Puis firefox, par l'une de ses commandes :

firefox --display=:1 'http://www.google.fr' &

DISPLAY=:1 firefox --remote "openurl('http://www.google.fr')" &

firefox --display=:1 'http://www.google.fr' 2> /dev/null &


Cela fonctionne pas vraiment car toujours un écran noir.
Pour le test, j'ai relancé une deuxième fois firefox par une de ces commandes, et j'ai un popup qui m'affiche : Firefox déjà lancé.
J'en déduis que Xvfb fonctionne bien, sinon je n'aurai rien du tout.

Si j'affiche les erreurs, j'obtiens au lancement de firefox ceci :


Erreur GConf : Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: La connexion à la session a échoué : /usr/bin/dbus-launch terminated abnormally without any error message)



Pour faire une capture :

DISPLAY=:1 import -window root -crop 1260x775+0+120 '0.png' &




Avez vous des idées ?

Cordialement.



Le 04/02/2011 11:21, françois lefebvre a écrit :
Bonjour,

J'ai assez bien avancé sur le script.

Je me permet de mettre le script python de Vincent légérement modifié pour prendre en compte si une ressource est accessible via SSO CAS.

Pour ma part, le script PHP semble fonctionner. Seul souci :
créer une vignette en faisant un screenshot via firefox ne fonctionne pas tout le temps.

En effet, des fois cela fonctionne, des fois, j'ai des vignettes écran noir :/

Si vous avez des infos pour réaliser à coup sûr cela, je suis preneur. Cela fait 4 jours que je me bats avec Xvfb & cie ....



a+




Le 26/01/2011 15:26, Yohan Colmant a écrit :
Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : "
//lom:technical/lom:location"

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
Yohan Colmant
salut François,

si tu fais une pause plus longue au lancement de firefox, ça ne change rien ?
est-ce que tu as testé la version python ? Estc-e qu'elle fonctionne ?

A+
Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 04/02/2011 14:36, françois lefebvre a écrit :
Je précise un peu les choses :

Je lance Xvfb :

Xvfb :1 -screen 0 1280x960x24 -ac 2> /dev/null &


Puis firefox, par l'une de ses commandes :

firefox --display=:1 'http://www.google.fr' &

DISPLAY=:1 firefox --remote "openurl('http://www.google.fr')" &

firefox --display=:1 'http://www.google.fr' 2> /dev/null &


Cela fonctionne pas vraiment car toujours un écran noir.
Pour le test, j'ai relancé une deuxième fois firefox par une de ces commandes, et j'ai un popup qui m'affiche : Firefox déjà lancé.
J'en déduis que Xvfb fonctionne bien, sinon je n'aurai rien du tout.

Si j'affiche les erreurs, j'obtiens au lancement de firefox ceci :


Erreur GConf : Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: La connexion à la session a échoué : /usr/bin/dbus-launch terminated abnormally without any error message)



Pour faire une capture :

DISPLAY=:1 import -window root -crop 1260x775+0+120 '0.png' &




Avez vous des idées ?

Cordialement.



Le 04/02/2011 11:21, françois lefebvre a écrit :
Bonjour,

J'ai assez bien avancé sur le script.

Je me permet de mettre le script python de Vincent légérement modifié pour prendre en compte si une ressource est accessible via SSO CAS.

Pour ma part, le script PHP semble fonctionner. Seul souci :
créer une vignette en faisant un screenshot via firefox ne fonctionne pas tout le temps.

En effet, des fois cela fonctionne, des fois, j'ai des vignettes écran noir :/

Si vous avez des infos pour réaliser à coup sûr cela, je suis preneur. Cela fait 4 jours que je me bats avec Xvfb & cie ....



a+




Le 26/01/2011 15:26, Yohan Colmant a écrit :
Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : "
//lom:technical/lom:location"

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
francoislefebvre
Je précise un peu les choses :

Je lance Xvfb :

Xvfb :1 -screen 0 1280x960x24 -ac 2> /dev/null &


Puis firefox, par l'une de ses commandes :

firefox --display=:1 'http://www.google.fr' &

DISPLAY=:1 firefox --remote "openurl('http://www.google.fr')" &

firefox --display=:1 'http://www.google.fr' 2> /dev/null &


Cela fonctionne pas vraiment car toujours un écran noir.
Pour le test, j'ai relancé une deuxième fois firefox par une de ces commandes, et j'ai un popup qui m'affiche : Firefox déjà lancé.
J'en déduis que Xvfb fonctionne bien, sinon je n'aurai rien du tout.

Si j'affiche les erreurs, j'obtiens au lancement de firefox ceci :


Erreur GConf : Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: La connexion à la session a échoué : /usr/bin/dbus-launch terminated abnormally without any error message)



Pour faire une capture :

DISPLAY=:1 import -window root -crop 1260x775+0+120 '0.png' &




Avez vous des idées ?

Cordialement.



Le 04/02/2011 11:21, françois lefebvre a écrit :
Bonjour,

J'ai assez bien avancé sur le script.

Je me permet de mettre le script python de Vincent légérement modifié pour prendre en compte si une ressource est accessible via SSO CAS.

Pour ma part, le script PHP semble fonctionner. Seul souci :
créer une vignette en faisant un screenshot via firefox ne fonctionne pas tout le temps.

En effet, des fois cela fonctionne, des fois, j'ai des vignettes écran noir :/

Si vous avez des infos pour réaliser à coup sûr cela, je suis preneur. Cela fait 4 jours que je me bats avec Xvfb & cie ....



a+




Le 26/01/2011 15:26, Yohan Colmant a écrit :
Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : "
//lom:technical/lom:location"

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
francoislefebvre
Bonjour,

J'ai assez bien avancé sur le script.

Je me permet de mettre le script python de Vincent légérement modifié pour prendre en compte si une ressource est accessible via SSO CAS.

Pour ma part, le script PHP semble fonctionner. Seul souci :
créer une vignette en faisant un screenshot via firefox ne fonctionne pas tout le temps.

En effet, des fois cela fonctionne, des fois, j'ai des vignettes écran noir :/

Si vous avez des infos pour réaliser à coup sûr cela, je suis preneur. Cela fait 4 jours que je me bats avec Xvfb & cie ....



a+




Le 26/01/2011 15:26, Yohan Colmant a écrit :
Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : "
//lom:technical/lom:location"

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
francoislefebvre
Bonjour,

Voilà, j'ai modifié mon script PHP pour y faire la capture d'écran des fiches LOM et TEF.
Vous avez la possibilité de faire des captures en 150 et/ou 300px juste en modifiant quelques paramètres.


a+






Le 05/05/2011 14:05, françois lefebvre a écrit :
En fait, j'ai fait plus simple.
Je traite les documents par lot de 100.

Tant qu'il y a des fiches dans l'intervalle de 100 ( donc ca laisse une marge de manœuvre si des fiches sont supprimées ) alors je génére les screenshots.


De toutes facons, dès que mon script est terminé, je le met a jour ici.



Exemple pour le lom :


#######################################
# LOM
#######################################

$ficheID = 1;

// recuperation de l'id et de l'URL pour les fiches LOM
while ( $fiches = getUrlsIdsFromOriIndexing($soap, 'http@//ltsc.ieee.org/xsd/LOM', $ficheID) )
{
    //recuperation de l'image
    foreach ( $fiches as $key => $value )
    {
   
        echo '##############################
';
        echo "#Ressource ".$value['id']."
##############################
";


        //si vignettes déjà créées, on passe à la ressource suivante
        //        if ( !file_exists($repDepot ."thumb150-".$value['id'] . ".png") || !file_exists($repDepot ."thumb300-".$value['id'] . ".png") )
        if ( !file_exists($repDepot ."thumb300-".$value['id'] . ".png") )
        {
            //screenshot de la ressource
            $valid = shot($repDepot, $value['id'],$value['url']);
           
            if ( $valid )
            {
                //redimmensionne le screenshot en vignette150
                //thumb150($repDepot, $value['id']);
               
                //redimmensionne le screenshot en vignette300
                thumb300($repDepot, $value['id']);
                       
                //suppression du screenshot
                exec("rm /tmp/". $value['id'] .".png -f");
            }
        }
        else
        {
            echo 'Deja traite...
';
        }
    }

    $ficheID = $ficheID + 100;
}





Le 05/05/2011 13:30, Benjamin Roy a écrit :
pour le script php, je pense que ça se trouve dans la function getUrlsIdsFromOriIndexing à cette ligne :

    $fiches = $soap->searchXMLDocs(array( 'in0' => 'md-ori-oai-namespace:("'.$namespace.'")',
                                        'in1' => 1,
                                        'in2' =>1000 ));

si tu mets in2=>10000 ça devrait fonctionner (10000 est à titre indicatif et de toute façon il ne traitera que les fiches ramenées)

une autre solution serait de questionner l'indexing par web service pour savoir combien il y a de fiches concernées (peut être "searchForNumberOfResults" ?)
comme ça il n'y aurait plus de pb sur le nombre de fiche à ramener...

Le 05/05/2011 13:14, françois lefebvre a écrit :
Bonjour,


Maintenant que je travaille sur le TEF, j'ai modifié mon script PHP.
Justement, je suis confronté au même problème, j'allais commencer à fouiner partout pour trouver une solution :)

Si tu as, je suis preneur :)



Le 05/05/2011 12:48, Benjamin Roy a écrit :
Bonjour,

Je reviens sur ce mail, car je suis en train de travailler sur les vignettes et j'ai vu un point qui m'a posé problème il y a quelques mois en arrière

dans le script python, à la ligne 141, il semble que le programme ne traite que les 1000 premières fiches :
    results = oriindexing.searchXMLDocs(request, 1, 1000)['results']['SearchResult']

si 1 entrepôt dépasse les 1000 fiches il faut modifier cette valeur pour qu'il prenne en compte le reste.

si jamais quelqu'un d'autre avait se problème...

cordialement

Benjamin


Le 07/02/2011 14:11, françois lefebvre a écrit :
Rebonjour,

J'ai trouvé mon souci.
Il fallait renvoyer le tout dans /dev/null.


Pour ma part, les scripts PHP et python fonctionnent.

Je vous les joints à ce mail.


Bon utilisation et n'hésitez pas à me faire part de vos remarques.
Idem, Yohan, n'hésites pas à l'utiliser pour une future intégration si cela peut t'aider.


a+


Le 07/02/2011 11:19, françois lefebvre a écrit :
Bonjour Yohan,


Le script python fonctionne., pas de souci.


Pour mon PHP :

Je teste sous bash avant pour être sûr que cela fonctionne :


Xvfb :1 -screen 0 1280x960x24 &

DISPLAY=:1 firefox http://www.google.fr &

DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &

pkill firefox

rm /root/.mozilla/firefox/ -rf

killall -9 Xvfb


Sous bash, ca marche.


Par contre en PHP, je lance bien Xvfb, je récupère la main, je peux donc lancer firefox, mais là, je ne récupère pas la main pour faire le screenshot :/
Pourant je lance bien la commande avec le "&" à la fin !

exec('DISPLAY=:1 firefox '. $url .' &');



Pour info, je lance le script PHP en tant que root, donc il ne devrait pas y avoir de problème de droit...


a+



Le 07/02/2011 09:15, Yohan Colmant a écrit :
" type="cite"> salut François,

si tu fais une pause plus longue au lancement de firefox, ça ne change rien ?
est-ce que tu as testé la version python ? Estc-e qu'elle fonctionne ?

A+
Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 04/02/2011 14:36, françois lefebvre a écrit :
Je précise un peu les choses :

Je lance Xvfb :

Xvfb :1 -screen 0 1280x960x24 -ac 2> /dev/null &


Puis firefox, par l'une de ses commandes :

firefox --display=:1 'http://www.google.fr' &

DISPLAY=:1 firefox --remote "openurl('http://www.google.fr')" &

firefox --display=:1 'http://www.google.fr' 2> /dev/null &


Cela fonctionne pas vraiment car toujours un écran noir.
Pour le test, j'ai relancé une deuxième fois firefox par une de ces commandes, et j'ai un popup qui m'affiche : Firefox déjà lancé.
J'en déduis que Xvfb fonctionne bien, sinon je n'aurai rien du tout.

Si j'affiche les erreurs, j'obtiens au lancement de firefox ceci :


Erreur GConf : Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: La connexion à la session a échoué : /usr/bin/dbus-launch terminated abnormally without any error message)



Pour faire une capture :

DISPLAY=:1 import -window root -crop 1260x775+0+120 '0.png' &




Avez vous des idées ?

Cordialement.



Le 04/02/2011 11:21, françois lefebvre a écrit :
" type="cite"> Bonjour,

J'ai assez bien avancé sur le script.

Je me permet de mettre le script python de Vincent légérement modifié pour prendre en compte si une ressource est accessible via SSO CAS.

Pour ma part, le script PHP semble fonctionner. Seul souci :
créer une vignette en faisant un screenshot via firefox ne fonctionne pas tout le temps.

En effet, des fois cela fonctionne, des fois, j'ai des vignettes écran noir :/

Si vous avez des infos pour réaliser à coup sûr cela, je suis preneur. Cela fait 4 jours que je me bats avec Xvfb & cie ....



a+




Le 26/01/2011 15:26, Yohan Colmant a écrit :
" type="cite"> Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : " //lom:technical/lom:location "

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
" type="cite"> Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
francoislefebvre
En fait, j'ai fait plus simple.
Je traite les documents par lot de 100.

Tant qu'il y a des fiches dans l'intervalle de 100 ( donc ca laisse une marge de manœuvre si des fiches sont supprimées ) alors je génére les screenshots.


De toutes facons, dès que mon script est terminé, je le met a jour ici.



Exemple pour le lom :


#######################################
# LOM
#######################################

$ficheID = 1;

// recuperation de l'id et de l'URL pour les fiches LOM
while ( $fiches = getUrlsIdsFromOriIndexing($soap, 'http@//ltsc.ieee.org/xsd/LOM', $ficheID) )
{
    //recuperation de l'image
    foreach ( $fiches as $key => $value )
    {
   
        echo '##############################
';
        echo "#Ressource ".$value['id']."
##############################
";


        //si vignettes déjà créées, on passe à la ressource suivante
        //        if ( !file_exists($repDepot ."thumb150-".$value['id'] . ".png") || !file_exists($repDepot ."thumb300-".$value['id'] . ".png") )
        if ( !file_exists($repDepot ."thumb300-".$value['id'] . ".png") )
        {
            //screenshot de la ressource
            $valid = shot($repDepot, $value['id'],$value['url']);
           
            if ( $valid )
            {
                //redimmensionne le screenshot en vignette150
                //thumb150($repDepot, $value['id']);
               
                //redimmensionne le screenshot en vignette300
                thumb300($repDepot, $value['id']);
                       
                //suppression du screenshot
                exec("rm /tmp/". $value['id'] .".png -f");
            }
        }
        else
        {
            echo 'Deja traite...
';
        }
    }

    $ficheID = $ficheID + 100;
}





Le 05/05/2011 13:30, Benjamin Roy a écrit :
pour le script php, je pense que ça se trouve dans la function getUrlsIdsFromOriIndexing à cette ligne :

    $fiches = $soap->searchXMLDocs(array( 'in0' => 'md-ori-oai-namespace:("'.$namespace.'")',
                                        'in1' => 1,
                                        'in2' =>1000 ));

si tu mets in2=>10000 ça devrait fonctionner (10000 est à titre indicatif et de toute façon il ne traitera que les fiches ramenées)

une autre solution serait de questionner l'indexing par web service pour savoir combien il y a de fiches concernées (peut être "searchForNumberOfResults" ?)
comme ça il n'y aurait plus de pb sur le nombre de fiche à ramener...

Le 05/05/2011 13:14, françois lefebvre a écrit :
Bonjour,


Maintenant que je travaille sur le TEF, j'ai modifié mon script PHP.
Justement, je suis confronté au même problème, j'allais commencer à fouiner partout pour trouver une solution :)

Si tu as, je suis preneur :)



Le 05/05/2011 12:48, Benjamin Roy a écrit :
Bonjour,

Je reviens sur ce mail, car je suis en train de travailler sur les vignettes et j'ai vu un point qui m'a posé problème il y a quelques mois en arrière

dans le script python, à la ligne 141, il semble que le programme ne traite que les 1000 premières fiches :
    results = oriindexing.searchXMLDocs(request, 1, 1000)['results']['SearchResult']

si 1 entrepôt dépasse les 1000 fiches il faut modifier cette valeur pour qu'il prenne en compte le reste.

si jamais quelqu'un d'autre avait se problème...

cordialement

Benjamin


Le 07/02/2011 14:11, françois lefebvre a écrit :
Rebonjour,

J'ai trouvé mon souci.
Il fallait renvoyer le tout dans /dev/null.


Pour ma part, les scripts PHP et python fonctionnent.

Je vous les joints à ce mail.


Bon utilisation et n'hésitez pas à me faire part de vos remarques.
Idem, Yohan, n'hésites pas à l'utiliser pour une future intégration si cela peut t'aider.


a+


Le 07/02/2011 11:19, françois lefebvre a écrit :
Bonjour Yohan,


Le script python fonctionne., pas de souci.


Pour mon PHP :

Je teste sous bash avant pour être sûr que cela fonctionne :


Xvfb :1 -screen 0 1280x960x24 &

DISPLAY=:1 firefox http://www.google.fr &

DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &

pkill firefox

rm /root/.mozilla/firefox/ -rf

killall -9 Xvfb


Sous bash, ca marche.


Par contre en PHP, je lance bien Xvfb, je récupère la main, je peux donc lancer firefox, mais là, je ne récupère pas la main pour faire le screenshot :/
Pourant je lance bien la commande avec le "&" à la fin !

exec('DISPLAY=:1 firefox '. $url .' &');



Pour info, je lance le script PHP en tant que root, donc il ne devrait pas y avoir de problème de droit...


a+



Le 07/02/2011 09:15, Yohan Colmant a écrit :
" type="cite"> salut François,

si tu fais une pause plus longue au lancement de firefox, ça ne change rien ?
est-ce que tu as testé la version python ? Estc-e qu'elle fonctionne ?

A+
Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 04/02/2011 14:36, françois lefebvre a écrit :
Je précise un peu les choses :

Je lance Xvfb :

Xvfb :1 -screen 0 1280x960x24 -ac 2> /dev/null &


Puis firefox, par l'une de ses commandes :

firefox --display=:1 'http://www.google.fr' &

DISPLAY=:1 firefox --remote "openurl('http://www.google.fr')" &

firefox --display=:1 'http://www.google.fr' 2> /dev/null &


Cela fonctionne pas vraiment car toujours un écran noir.
Pour le test, j'ai relancé une deuxième fois firefox par une de ces commandes, et j'ai un popup qui m'affiche : Firefox déjà lancé.
J'en déduis que Xvfb fonctionne bien, sinon je n'aurai rien du tout.

Si j'affiche les erreurs, j'obtiens au lancement de firefox ceci :


Erreur GConf : Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: La connexion à la session a échoué : /usr/bin/dbus-launch terminated abnormally without any error message)



Pour faire une capture :

DISPLAY=:1 import -window root -crop 1260x775+0+120 '0.png' &




Avez vous des idées ?

Cordialement.



Le 04/02/2011 11:21, françois lefebvre a écrit :
Bonjour,

J'ai assez bien avancé sur le script.

Je me permet de mettre le script python de Vincent légérement modifié pour prendre en compte si une ressource est accessible via SSO CAS.

Pour ma part, le script PHP semble fonctionner. Seul souci :
créer une vignette en faisant un screenshot via firefox ne fonctionne pas tout le temps.

En effet, des fois cela fonctionne, des fois, j'ai des vignettes écran noir :/

Si vous avez des infos pour réaliser à coup sûr cela, je suis preneur. Cela fait 4 jours que je me bats avec Xvfb & cie ....



a+




Le 26/01/2011 15:26, Yohan Colmant a écrit :
" type="cite"> Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : " //lom:technical/lom:location "

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
" type="cite"> Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
benjaminroy
pour le script php, je pense que ça se trouve dans la function getUrlsIdsFromOriIndexing à cette ligne :

    $fiches = $soap->searchXMLDocs(array( 'in0' => 'md-ori-oai-namespace:("'.$namespace.'")',
                                        'in1' => 1,
                                        'in2' =>1000 ));

si tu mets in2=>10000 ça devrait fonctionner (10000 est à titre indicatif et de toute façon il ne traitera que les fiches ramenées)

une autre solution serait de questionner l'indexing par web service pour savoir combien il y a de fiches concernées (peut être "searchForNumberOfResults" ?)
comme ça il n'y aurait plus de pb sur le nombre de fiche à ramener...

Le 05/05/2011 13:14, françois lefebvre a écrit :
Bonjour,


Maintenant que je travaille sur le TEF, j'ai modifié mon script PHP.
Justement, je suis confronté au même problème, j'allais commencer à fouiner partout pour trouver une solution :)

Si tu as, je suis preneur :)



Le 05/05/2011 12:48, Benjamin Roy a écrit :
Bonjour,

Je reviens sur ce mail, car je suis en train de travailler sur les vignettes et j'ai vu un point qui m'a posé problème il y a quelques mois en arrière

dans le script python, à la ligne 141, il semble que le programme ne traite que les 1000 premières fiches :
    results = oriindexing.searchXMLDocs(request, 1, 1000)['results']['SearchResult']

si 1 entrepôt dépasse les 1000 fiches il faut modifier cette valeur pour qu'il prenne en compte le reste.

si jamais quelqu'un d'autre avait se problème...

cordialement

Benjamin


Le 07/02/2011 14:11, françois lefebvre a écrit :
Rebonjour,

J'ai trouvé mon souci.
Il fallait renvoyer le tout dans /dev/null.


Pour ma part, les scripts PHP et python fonctionnent.

Je vous les joints à ce mail.


Bon utilisation et n'hésitez pas à me faire part de vos remarques.
Idem, Yohan, n'hésites pas à l'utiliser pour une future intégration si cela peut t'aider.


a+


Le 07/02/2011 11:19, françois lefebvre a écrit :
Bonjour Yohan,


Le script python fonctionne., pas de souci.


Pour mon PHP :

Je teste sous bash avant pour être sûr que cela fonctionne :


Xvfb :1 -screen 0 1280x960x24 &

DISPLAY=:1 firefox http://www.google.fr &

DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &

pkill firefox

rm /root/.mozilla/firefox/ -rf

killall -9 Xvfb


Sous bash, ca marche.


Par contre en PHP, je lance bien Xvfb, je récupère la main, je peux donc lancer firefox, mais là, je ne récupère pas la main pour faire le screenshot :/
Pourant je lance bien la commande avec le "&" à la fin !

exec('DISPLAY=:1 firefox '. $url .' &');



Pour info, je lance le script PHP en tant que root, donc il ne devrait pas y avoir de problème de droit...


a+



Le 07/02/2011 09:15, Yohan Colmant a écrit :
salut François,

si tu fais une pause plus longue au lancement de firefox, ça ne change rien ?
est-ce que tu as testé la version python ? Estc-e qu'elle fonctionne ?

A+
Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 04/02/2011 14:36, françois lefebvre a écrit :
Je précise un peu les choses :

Je lance Xvfb :

Xvfb :1 -screen 0 1280x960x24 -ac 2> /dev/null &


Puis firefox, par l'une de ses commandes :

firefox --display=:1 'http://www.google.fr' &

DISPLAY=:1 firefox --remote "openurl('http://www.google.fr')" &

firefox --display=:1 'http://www.google.fr' 2> /dev/null &


Cela fonctionne pas vraiment car toujours un écran noir.
Pour le test, j'ai relancé une deuxième fois firefox par une de ces commandes, et j'ai un popup qui m'affiche : Firefox déjà lancé.
J'en déduis que Xvfb fonctionne bien, sinon je n'aurai rien du tout.

Si j'affiche les erreurs, j'obtiens au lancement de firefox ceci :


Erreur GConf : Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: La connexion à la session a échoué : /usr/bin/dbus-launch terminated abnormally without any error message)



Pour faire une capture :

DISPLAY=:1 import -window root -crop 1260x775+0+120 '0.png' &




Avez vous des idées ?

Cordialement.



Le 04/02/2011 11:21, françois lefebvre a écrit :
Bonjour,

J'ai assez bien avancé sur le script.

Je me permet de mettre le script python de Vincent légérement modifié pour prendre en compte si une ressource est accessible via SSO CAS.

Pour ma part, le script PHP semble fonctionner. Seul souci :
créer une vignette en faisant un screenshot via firefox ne fonctionne pas tout le temps.

En effet, des fois cela fonctionne, des fois, j'ai des vignettes écran noir :/

Si vous avez des infos pour réaliser à coup sûr cela, je suis preneur. Cela fait 4 jours que je me bats avec Xvfb & cie ....



a+




Le 26/01/2011 15:26, Yohan Colmant a écrit :
" type="cite"> Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : " //lom:technical/lom:location "

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
" type="cite"> Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
francoislefebvre
Bonjour,


Maintenant que je travaille sur le TEF, j'ai modifié mon script PHP.
Justement, je suis confronté au même problème, j'allais commencer à fouiner partout pour trouver une solution :)

Si tu as, je suis preneur :)



Le 05/05/2011 12:48, Benjamin Roy a écrit :
Bonjour,

Je reviens sur ce mail, car je suis en train de travailler sur les vignettes et j'ai vu un point qui m'a posé problème il y a quelques mois en arrière

dans le script python, à la ligne 141, il semble que le programme ne traite que les 1000 premières fiches :
    results = oriindexing.searchXMLDocs(request, 1, 1000)['results']['SearchResult']

si 1 entrepôt dépasse les 1000 fiches il faut modifier cette valeur pour qu'il prenne en compte le reste.

si jamais quelqu'un d'autre avait se problème...

cordialement

Benjamin


Le 07/02/2011 14:11, françois lefebvre a écrit :
Rebonjour,

J'ai trouvé mon souci.
Il fallait renvoyer le tout dans /dev/null.


Pour ma part, les scripts PHP et python fonctionnent.

Je vous les joints à ce mail.


Bon utilisation et n'hésitez pas à me faire part de vos remarques.
Idem, Yohan, n'hésites pas à l'utiliser pour une future intégration si cela peut t'aider.


a+


Le 07/02/2011 11:19, françois lefebvre a écrit :
Bonjour Yohan,


Le script python fonctionne., pas de souci.


Pour mon PHP :

Je teste sous bash avant pour être sûr que cela fonctionne :


Xvfb :1 -screen 0 1280x960x24 &

DISPLAY=:1 firefox http://www.google.fr &

DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &

pkill firefox

rm /root/.mozilla/firefox/ -rf

killall -9 Xvfb


Sous bash, ca marche.


Par contre en PHP, je lance bien Xvfb, je récupère la main, je peux donc lancer firefox, mais là, je ne récupère pas la main pour faire le screenshot :/
Pourant je lance bien la commande avec le "&" à la fin !

exec('DISPLAY=:1 firefox '. $url .' &');



Pour info, je lance le script PHP en tant que root, donc il ne devrait pas y avoir de problème de droit...


a+



Le 07/02/2011 09:15, Yohan Colmant a écrit :
salut François,

si tu fais une pause plus longue au lancement de firefox, ça ne change rien ?
est-ce que tu as testé la version python ? Estc-e qu'elle fonctionne ?

A+
Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 04/02/2011 14:36, françois lefebvre a écrit :
Je précise un peu les choses :

Je lance Xvfb :

Xvfb :1 -screen 0 1280x960x24 -ac 2> /dev/null &


Puis firefox, par l'une de ses commandes :

firefox --display=:1 'http://www.google.fr' &

DISPLAY=:1 firefox --remote "openurl('http://www.google.fr')" &

firefox --display=:1 'http://www.google.fr' 2> /dev/null &


Cela fonctionne pas vraiment car toujours un écran noir.
Pour le test, j'ai relancé une deuxième fois firefox par une de ces commandes, et j'ai un popup qui m'affiche : Firefox déjà lancé.
J'en déduis que Xvfb fonctionne bien, sinon je n'aurai rien du tout.

Si j'affiche les erreurs, j'obtiens au lancement de firefox ceci :


Erreur GConf : Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: La connexion à la session a échoué : /usr/bin/dbus-launch terminated abnormally without any error message)



Pour faire une capture :

DISPLAY=:1 import -window root -crop 1260x775+0+120 '0.png' &




Avez vous des idées ?

Cordialement.



Le 04/02/2011 11:21, françois lefebvre a écrit :
Bonjour,

J'ai assez bien avancé sur le script.

Je me permet de mettre le script python de Vincent légérement modifié pour prendre en compte si une ressource est accessible via SSO CAS.

Pour ma part, le script PHP semble fonctionner. Seul souci :
créer une vignette en faisant un screenshot via firefox ne fonctionne pas tout le temps.

En effet, des fois cela fonctionne, des fois, j'ai des vignettes écran noir :/

Si vous avez des infos pour réaliser à coup sûr cela, je suis preneur. Cela fait 4 jours que je me bats avec Xvfb & cie ....



a+




Le 26/01/2011 15:26, Yohan Colmant a écrit :
" type="cite"> Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : " //lom:technical/lom:location "

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73
benjaminroy
Bonjour,

Je reviens sur ce mail, car je suis en train de travailler sur les vignettes et j'ai vu un point qui m'a posé problème il y a quelques mois en arrière

dans le script python, à la ligne 141, il semble que le programme ne traite que les 1000 premières fiches :
    results = oriindexing.searchXMLDocs(request, 1, 1000)['results']['SearchResult']

si 1 entrepôt dépasse les 1000 fiches il faut modifier cette valeur pour qu'il prenne en compte le reste.

si jamais quelqu'un d'autre avait se problème...

cordialement

Benjamin


Le 07/02/2011 14:11, françois lefebvre a écrit :
Rebonjour,

J'ai trouvé mon souci.
Il fallait renvoyer le tout dans /dev/null.


Pour ma part, les scripts PHP et python fonctionnent.

Je vous les joints à ce mail.


Bon utilisation et n'hésitez pas à me faire part de vos remarques.
Idem, Yohan, n'hésites pas à l'utiliser pour une future intégration si cela peut t'aider.


a+


Le 07/02/2011 11:19, françois lefebvre a écrit :
Bonjour Yohan,


Le script python fonctionne., pas de souci.


Pour mon PHP :

Je teste sous bash avant pour être sûr que cela fonctionne :


Xvfb :1 -screen 0 1280x960x24 &

DISPLAY=:1 firefox http://www.google.fr &

DISPLAY=:1 import -window root -crop 995x775+0+120 0.png &

pkill firefox

rm /root/.mozilla/firefox/ -rf

killall -9 Xvfb


Sous bash, ca marche.


Par contre en PHP, je lance bien Xvfb, je récupère la main, je peux donc lancer firefox, mais là, je ne récupère pas la main pour faire le screenshot :/
Pourant je lance bien la commande avec le "&" à la fin !

exec('DISPLAY=:1 firefox '. $url .' &');



Pour info, je lance le script PHP en tant que root, donc il ne devrait pas y avoir de problème de droit...


a+



Le 07/02/2011 09:15, Yohan Colmant a écrit :
salut François,

si tu fais une pause plus longue au lancement de firefox, ça ne change rien ?
est-ce que tu as testé la version python ? Estc-e qu'elle fonctionne ?

A+
Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 04/02/2011 14:36, françois lefebvre a écrit :
Je précise un peu les choses :

Je lance Xvfb :

Xvfb :1 -screen 0 1280x960x24 -ac 2> /dev/null &


Puis firefox, par l'une de ses commandes :

firefox --display=:1 'http://www.google.fr' &

DISPLAY=:1 firefox --remote "openurl('http://www.google.fr')" &

firefox --display=:1 'http://www.google.fr' 2> /dev/null &


Cela fonctionne pas vraiment car toujours un écran noir.
Pour le test, j'ai relancé une deuxième fois firefox par une de ces commandes, et j'ai un popup qui m'affiche : Firefox déjà lancé.
J'en déduis que Xvfb fonctionne bien, sinon je n'aurai rien du tout.

Si j'affiche les erreurs, j'obtiens au lancement de firefox ceci :


Erreur GConf : Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See http://projects.gnome.org/gconf/ for information. (Details -  1: La connexion à la session a échoué : /usr/bin/dbus-launch terminated abnormally without any error message)



Pour faire une capture :

DISPLAY=:1 import -window root -crop 1260x775+0+120 '0.png' &




Avez vous des idées ?

Cordialement.



Le 04/02/2011 11:21, françois lefebvre a écrit :
Bonjour,

J'ai assez bien avancé sur le script.

Je me permet de mettre le script python de Vincent légérement modifié pour prendre en compte si une ressource est accessible via SSO CAS.

Pour ma part, le script PHP semble fonctionner. Seul souci :
créer une vignette en faisant un screenshot via firefox ne fonctionne pas tout le temps.

En effet, des fois cela fonctionne, des fois, j'ai des vignettes écran noir :/

Si vous avez des infos pour réaliser à coup sûr cela, je suis preneur. Cela fait 4 jours que je me bats avec Xvfb & cie ....



a+




Le 26/01/2011 15:26, Yohan Colmant a écrit :
" type="cite"> Salut François,

C'est bien searchFromAttributes que tu dois utiliser.
Dans in4, c'est la valeur suivante à prendre : " //lom:technical/lom:location "

Ensuite, dans in0, à voir si c'est bien ceci :
md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")
ou ceci :
md-ori-oai-namespace:("http://ltsc.ieee.org/xsd/LOM")

Je ne sais plus si c'est avec "@" ou ":" qu'il faut.

On évalue des solutions pour rendre le service de génération des vignettes directement dans ORI-OAI sans script python ou PERL .... donc ton retour sur ce que tu fais en PHP sera très intéressant !!!!
Ca pourrait potentiellement devenir une contribution à notre V2 ... on en rediscute en off si tu veux.

A+

Yohan COLMANT
Direction des Systèmes d'Information
UVHC - Université de Valenciennes et du Hainaut Cambrésis
Coordinateur Technique du projet ORI-OAI

Le 26/01/2011 14:58, françois lefebvre a écrit :
Bonjour,

Ne sachant pas développer en python ou PERL, je cherche à générer mes vignettes de documents via PHP.

Actuellement, je ne sais pas récupérer l'URL de la ressource.
Je récupère via la fonction webservice : searchXMLDocs les documents publiés.
J'obtiens mes 2 fiches LOM publiées, et cela ressemble à ceci :


[........]
SupLOMFRv1.0

fre

000
http://lille1tv.univ-lille1.fr/collections/video.aspx?id=d82296d0-6971-41ac-8a89-5aa9a174e36f

PT1H16M
[........]


Donc impossible pour moi de trouver le lom:location de cette manière.



D'après ce que je peux lire sur la doc : http://www.ori-oai.org/display/ORIOAIindexing/Connexion+au+Web+Service , il y a la fonction SearchFromAttributes.

$soap->SearchFromAttributes(array( 'in0' => 'md-ori-oai-namespace:("http@//ltsc.ieee.org/xsd/LOM")',
                                            'in1' => '',
                                            'in2' => -1,
                                            'in3' => -1,
                                            'in4' => '/lom:lom/lom:technical/lom:location',
                                            'in5' => true,
                                            'in6' => false,
                                            'in7' => ''));

Ne me retourne rien de probant...


Quelqu'un peut m'expliquer plus en détail les paramètres à saisir, car je ne comprend pas les instructions :/

Merci
-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

-- 
Cordialement.


François Lefebvre
Bibliothèque Universitaire de Lille 1
Cité Scientifique - B.P. 30155
59653 VILLENEUVE D'ASCQ CEDEX
Tél.: 03.20.33.60.73

Options d'affichage des commentaires

Sélectionnez la méthode d'affichage des commentaires que vous préférez, puis cliquez sur « Enregistrer les paramètres » pour activer vos changements.
Sujet clos