Ajouter un champs dans un rss

  • 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:9233a04688ca261a383abe02b8eb5a86' 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\">Merci d\'avoir reprécisé le nom du fichier (n\'ayant pas d\'instance accessible, je ne pouvais le retrouver)</p>\n</div>\n', created = 1507750803, expire = 1507837203, headers = '', serialized = 0 WHERE cid = '4:9233a04688ca261a383abe02b8eb5a86' 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:9233a04688ca261a383abe02b8eb5a86' 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\">Merci d\'avoir reprécisé le nom du fichier (n\'ayant pas d\'instance accessible, je ne pouvais le retrouver)</p>\n</div>\n', created = 1507750803, expire = 1507837203, headers = '', serialized = 0 WHERE cid = '4:9233a04688ca261a383abe02b8eb5a86' 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:33a347f4a2003e08597d0b0ff9879030' 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 Fabien,<br>\n <br>\n J\'ai eu l\'occasion il y a déjà quelque temps d\'ajouter un fil rss\n pour un besoin d\'affichage spécifique de certaines ressources. <br>\n En quelques mots, il s\'agissait de produire un fil rss contenant une\n liste de publications scientifiques qui est affichée  ensuite par un\n composant Infoglue.<br>\n Il fallait modifier le contenu du fil pour l\'adapter à la demande: <br>\n <style type=\"text/css\">pre.cjk { font-family: \"DejaVu Sans\",monospace; }p { margin-bottom: 0.21cm; }a:link { }</style><br>\n Au lieu du fil rss  : <br>\n <pre id=\"line4574\">\n&lt;<span class=\"start-tag\">rss</span><span class=\"attribute-name\"> version</span>=<span class=\"attribute-value\">\"2.0\" </span><span class=\"attribute-name\">xmlns:rdf</span>=<span class=\"attribute-value\"><a class=\"moz-txt-link-rfc2396E\" href=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"</a> </span><span class=\"attribute-name\">xmlns:content</span>=<span class=\"attribute-value\"><a class=\"moz-txt-link-rfc2396E\" href=\"http://purl.org/rss/1.0/modules/content/\">\"http://purl.org/rss/1.0/modules/content/\"</a></span>&gt;\n&lt;<span class=\"start-tag\">channel</span>&gt;\n&lt;item&gt;\n&lt;title&gt;Adult/young ratio influences song acquisition in female European starlings (Sturnus vulgaris)&lt;/title&gt;\n&lt;description&gt;One parallel between humans and most songbirds is the fact that young require social interactions with an adult to acquire specific vocalizations. Songbirds are considered good models for comparative studies, although reports to date concern almost exclusively male songbirds. In addition, adult influence on vocal communication is generally investigated only in restricted social contexts (usually dyads). Here, we analysed song learning and spatial associations among young female starlings that were maintained for one year in dyads (1 adult/1 young), triads (2 adults/1 young) or larger group (7 young/2 adults). Segregation by age was seen in the triads and in the larger group. The influence of adults (proportion of songs copied from adults) decreased as social complexity increased. Unusual temporal features were observed in young maintained in triads and young neglected copying adult songs in the presence of peers. These results are among the first to explore\n the circumstances under which females learn and from whom they learn. They also add new insight to a wide range of questions about social influences on learning.&lt;/description&gt;\n&lt;author&gt;Bertin, A.; Hausberger, M.; Henry, L.; Richard-Yris, M.-A.; EthoS, UMR 6552; CNRS; Université de Rennes 1&lt;/author&gt;\n&lt;<span class=\"start-tag\">pubDate</span>&gt;Wed, 31 Dec 2008 23:00:00 GMT&lt;/<span class=\"end-tag\">pubDate</span>&gt;\n\n&lt;link&gt;<a href=\"http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939\">http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939</a>&lt;/link&gt;\n&lt;guid isPermaLink=\"true\"&gt;rennes1-ori-wf-1-1939&lt;/guid&gt; &lt;content:encoded&gt;&lt;![CDATA[ &lt;br/&gt;&lt;b&gt;URL: &lt;a href=<a class=\"moz-txt-link-rfc2396E\" href=\"http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939\">\"http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939\"</a> target=\"_blank\"&gt;<a class=\"moz-txt-link-freetext\" href=\"http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939\">http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939</a>&lt;/a&gt;&lt;/b&gt; ]]&gt;&lt;/content:encoded&gt;\n&lt;/item&gt;\n....\n&lt;/<span class=\"end-tag\">channel</span>&gt;\n&lt;/<span class=\"end-tag\">rss</span>&gt;</pre>\n Il fallait le fil :<br>\n <pre id=\"line4574\">&lt;<span class=\"start-tag\">rss</span><span class=\"attribute-name\"> version</span>=<span class=\"attribute-value\">\"2.0\" </span><span class=\"attribute-name\">xmlns:rdf</span>=<span class=\"attribute-value\"><a class=\"moz-txt-link-rfc2396E\" href=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\">\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"</a> </span><span class=\"attribute-name\">xmlns:content</span>=<span class=\"attribute-value\"><a class=\"moz-txt-link-rfc2396E\" href=\"http://purl.org/rss/1.0/modules/content/\">\"http://purl.org/rss/1.0/modules/content/\"</a></span>&gt;\n&lt;<span class=\"start-tag\">channel</span>&gt;\n...\n&lt;item&gt;\n&lt;title&gt;Adult/young ratio influences song acquisition in female European starlings (Sturnus vulgaris)&lt;/title&gt;\n<b>&lt;<span class=\"start-tag\">description</span>&gt;Journal of Comparative Psychology, 2009, 123, 195-203&lt;/<span class=\"end-tag\">description</span>&gt;</b>\n&lt;author&gt;Bertin, A.; Hausberger, M.; Henry, L.; Richard-Yris, M.-A.; EthoS, UMR 6552; CNRS; Université de Rennes 1&lt;/author&gt;\n<b>&lt;<span class=\"start-tag\">pubDate</span>&gt;[2009]&lt;/<span class=\"end-tag\">pubDate</span>&gt;</b>\n\n&lt;link&gt;<a href=\"http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939\">http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939</a>&lt;/link&gt;\n&lt;guid isPermaLink=\"true\"&gt;rennes1-ori-wf-1-1939&lt;/guid&gt; &lt;content:encoded&gt;&lt;![CDATA[ &lt;br/&gt;&lt;b&gt;URL: &lt;a href=<a class=\"moz-txt-link-rfc2396E\" href=\"http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939\">\"http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939\"</a> target=\"_blank\"&gt;<a class=\"moz-txt-link-freetext\" href=\"http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939\">http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939</a>&lt;/a&gt;&lt;/b&gt; ]]&gt;&lt;/content:encoded&gt;\n&lt;/item&gt;\n....\n&lt;/<span class=\"end-tag\">channel</span>&gt;\n&lt;/<span class=\"end-tag\">rss</span>&gt;</pre>\n <br>\n En gros, il fallait modifier le contenu des champs rss\n &lt;description&gt; et &lt;pubDate&gt;.<br>\n Voici les extraits des fichiers modifiés. <br>\n <br>\n <br>\n Pour la partie configuration (<b>config.xml</b>) :<br>\n <br>\n &lt;!-- Menu permettant de construire le fil rss de publications\n scientifiques décrites en DC --&gt;\n<br>\n          &lt;advanced_search hide=\"true\" key=\"advanced\"\n file=\"ur1-scd-dc_advanced.xml\"&gt;\n<br>\n                                 &lt;hidden_fields&gt;\n<br>\n                                         &lt;hidden_field\n vocabularyId=\"search_metadata_namespaces:dc\"&gt;\n<br>\n                                                \n &lt;metadata&gt;md-ori-oai-namespace&lt;/metadata&gt;\n<br>\n                                         &lt;/hidden_field&gt;\n<br>\n                                 &lt;/hidden_fields&gt;\n<br>\n                                 &lt;result_fields id=\"<b>publication_no_fulltext</b>\"/&gt;\n \n<br>\n                                 &lt;sort_fields\n id=\"year_author\"/&gt;\n<br>\n                                 &lt;rss_fields id=\"<b>publication</b>\"/&gt;\n \n<br>\n          &lt;/advanced_search&gt;\n<br>\n <style type=\"text/css\">p { margin-bottom: 0.21cm; }</style>\n <p style=\"margin-bottom: 0cm;\">...<br>\n &lt;!-- ======== result\n fields pour le fil rss publication ======== --&gt;\n </p>\n <p style=\"margin-bottom: 0cm;\"> &lt;result_fields\n id=\"p<b>ublication_no_fulltext</b>\"\n jsp_file=\"documents-results-ur1-scd.jsp\"&gt;<br>\n ...<br>\n       &lt;result_field\n key=\"<b>resource</b>\"&gt;<br>\n           &lt;metadata&gt;/<b>/dc:source</b>&lt;/metadata&gt;<br>\n           &lt;metadata&gt;/<b>/dc:identifier</b>&lt;/metadata&gt;<br>\n        &lt;/result_field&gt;<br>\n &lt;/result_fields&gt;<br>\n ...<br>\n &lt;!-- ======== rss\n fields ======== --&gt;<br>\n &lt;rss_fields\n id=\"notice\" link=\"notice\"&gt;<br>\n      &lt;title&gt;title&lt;/title&gt;<br>\n      &lt;author&gt;author&lt;/author&gt;<br>\n      &lt;description&gt;description&lt;/description&gt;<br>\n      &lt;pubDate&gt;date&lt;/pubDate&gt;<br>\n &lt;/rss_fields&gt;\n </p>\n <p style=\"margin-bottom: 0cm;\">\n <style type=\"text/css\">p { margin-bottom: 0.21cm; }</style>\n <p style=\"margin-bottom: 0cm;\"> <b>&lt;! le nouveau fil rss\n --&gt;<br>\n </b>&lt;rss_fields id=\"<b>publication</b>\"\n link=\"<b>publication</b>\"&gt;<br>\n     &lt;title&gt;title&lt;/title&gt;<br>\n     &lt;author&gt;author&lt;/author&gt;<br>\n     &lt;description&gt;<b>resource</b>&lt;/description&gt;<br>\n     &lt;pubDate&gt;date&lt;/pubDate&gt;<br>\n &lt;/rss_fields&gt;\n </p>\n <p style=\"margin-bottom: 0cm;\"><br>\n </p>\n </p>\n Le fil rss est produit par /stylesheets/rss/<b>results-content.jsp</b>.\n <br>\n Par exemple, pour afficher le contenu du champ rss\n &lt;description&gt; : <br>\n <br>\n                 &lt;c:if test=\"${rssDescription!=null}\"&gt;\n<br>\n                         &lt;c:if test=\"${resultFieldKey==<b>rssDescription</b>}\"&gt;\n \n<br>\n                             &lt;c:forEach begin=\"0\"\n end=\"${resultField.metadatasSize-1}\" var=\"index_md\"&gt;\n<br>\n                                 &lt;c:set var=\"md_name\"\n value=\"${resultField.metadatas[index_md].name}\" /&gt;\n<br>\n                                 &lt;c:set var=\"values_size\"\n value=\"${result.values[md_name].transformedValuesSize}\" /&gt;\n<br>\n                                 &lt;c:if\n test=\"${values_size!=0}\"&gt;\n<br>\n                                    &lt;c:if\n test=\"${resultField.key==\'description\'}\"&gt;\n<br>\n                                      <br>\n                                         &lt;c:forEach begin=\"0\"\n end=\"${values_size-1}\" var=\"index_value\"&gt;\n<br>\n                                             &lt;c:set\n var=\"cell_content\"\n value=\"${cell_content}${result.values[md_name].transformedValues[index_value]}\"\n /&gt;\n<br>\n                                             &lt;c:if\n test=\"${index_value!=(values_size-1)}\"&gt;\n<br>\n                                                 &lt;c:set\n var=\"cell_content\" value=\"${cell_content}&lt;br/&gt;\" /&gt;\n<br>\n                                             &lt;/c:if&gt;\n<br>\n                                         &lt;/c:forEach&gt;\n<br>\n                                     &lt;/c:if&gt;\n<br>\n  <br>\n  <b>                             &lt;c:if\n test=\"${resultField.key==\'resource\'}\"&gt;\n<br>\n                                     &lt;c:forEach begin=\"0\"\n end=\"${values_size-1}\" var=\"index_value\"&gt;\n<br>\n                                             &lt;c:set\n var=\"value_to_add\"\n value=\"${result.values[md_name].transformedValues[index_value]}\"\n /&gt;                                             <br>\n                                             &lt;c:if test=\"${not\n (fn:startsWith(value_to_add, \'http\')) and not\n (fn:startsWith(value_to_add, \'https\'))}\"&gt;\n<br>\n                                                 &lt;c:if\n test=\"${not (fn:endsWith(cell_content, \'-- \')) and\n cell_content!=\'\' and value_to_add!=null}\"&gt;\n<br>\n                                                     &lt;c:set\n var=\"cell_content\" value=\"${cell_content} -- \" /&gt;\n<br>\n                                                 &lt;/c:if&gt;   \n                                          <br>\n                                                 &lt;c:set\n var=\"cell_content\" value=\"${cell_content}${value_to_add}\" /&gt;\n<br>\n                                             &lt;/c:if&gt;       \n                                          <br>\n                                     &lt;/c:forEach&gt;\n<br>\n                               &lt;/c:if&gt;\n<br>\n </b> <br>\n                                 &lt;/c:if&gt;\n<br>\n                             &lt;/c:forEach&gt;\n<br>\n                         &lt;/c:if&gt;\n<br>\n                         &lt;c:if test=\"${cell_content!=\'\'}\"&gt;\n<br>\n                             &lt;description&gt;&lt;c:out\n value=\"${cell_content}\"/&gt;&lt;/description&gt;\n<br>\n                         &lt;/c:if&gt;\n<br>\n                     &lt;/c:if&gt;<br>\n <br>\n <br>\n Pour modifier l\'affichage du contenu de &lt;pubDate&gt; , on se sert\n du lien link=\"<b>publication</b>\" déclaré dans la configuration du\n fil rss :<br>\n <br>\n <br>\n                  &lt;c:if test=\"${rssPubDate!=null}\"&gt;<br>\n                             &lt;c:if\n test=\"${resultFieldKey==rssPubDate}\"&gt;                           <br>\n                                 &lt;c:forEach begin=\"0\"\n end=\"${resultField.metadatasSize-1}\" var=\"index_md\"&gt;<br>\n                                     &lt;c:set var=\"md_name\"\n value=\"${resultField.metadatas[index_md].name}\" /&gt;<br>\n                                     &lt;c:choose&gt;<br>\n                                         &lt;c:when\n test=\"${rssLink==\'<b>publication</b>\'}\"&gt;<br>\n                                             &lt;c:set\n var=\"cell_content\" value=\"${result.values[md_name].retrievedValues}\"\n /&gt;<br>\n                                         &lt;/c:when&gt;<br>\n                                         &lt;c:otherwise&gt;<br>\n                                              &lt;c:set\n var=\"cell_content\" value=\"${result.values[md_name].dateValue}\" /&gt;<br>\n                                         &lt;/c:otherwise&gt;<br>\n                                     &lt;/c:choose&gt;<br>\n                                 &lt;/c:forEach&gt;<br>\n                             &lt;/c:if&gt;<br>\n                             &lt;c:if test=\"${cell_content!=\'\'}\"&gt;<br>\n                                 &lt;pubDate&gt;&lt;c:out\n value=\"${cell_content}\"/&gt;&lt;/pubDate&gt;<br>\n                             &lt;/c:if&gt;                 <br>\n                         &lt;/c:if&gt;<br>\n <br>\n <br>\n En espérant que ça t\'aide,<br>\n Henri<br>\n <br>\n Le 29/03/2011 14:30, <a class=\"moz-txt-link-abbreviated\" href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#102;&#97;&#98;&#105;&#101;&#110;&#46;&#112;&#101;&#115;&#108;&#105;&#101;&#114;&#64;&#117;&#110;&#105;&#118;&#45;&#97;&#110;&#103;&#101;&#114;&#115;&#46;&#102;&#114;\">&#102;&#97;&#98;&#105;&#101;&#110;&#46;&#112;&#101;&#115;&#108;&#105;&#101;&#114;&#64;&#117;&#110;&#105;&#118;&#45;&#97;&#110;&#103;&#101;&#114;&#115;&#46;&#102;&#114;</a> a écrit :\n <div class=\"emailFilter_Toggle\"><div class=\"emailFilter_Author_0\"><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;\'+\'&#115;&#121;&#109;&#112;&#97;&#46;&#49;&#51;&#48;&#49;&#52;&#48;&#49;&#55;&#52;&#54;&#46;&#49;&#54;&#56;&#55;&#56;&#46;&#52;&#48;&#51;&#64;&#108;&#105;&#115;&#116;&#101;&#115;&#46;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\'+\'\">\'+\'&#115;&#121;&#109;&#112;&#97;&#46;&#49;&#51;&#48;&#49;&#52;&#48;&#49;&#55;&#52;&#54;&#46;&#49;&#54;&#56;&#55;&#56;&#46;&#52;&#48;&#51;&#64;&#108;&#105;&#115;&#116;&#101;&#115;&#46;&#117;&#110;&#105;&#118;&#45;&#114;&#101;&#110;&#110;&#101;&#115;&#49;&#46;&#102;&#114;\' + \'</a>\';\n // --> </script>\"\n type=\"cite\">\n <pre wrap=\"\">Bonjour,\nAie, dommage...\nJe vais continuer à chercher alors, et poster la réponse ici... si je la\ntrouve ! :)\n\nCordialement,\n\nFabien Peslier</pre>\n </blockquote></div></div>\n <br>\n <pre class=\"moz-signature\" cols=\"72\">-- \nHenri Jacob\nCentre de Ressources Informatiques (CRI)\nUniversité de Rennes 1\ntel: 02 23 23 71 37</pre>\n </body>\n</html>\n</div>', created = 1507750803, expire = 1507837203, headers = '', serialized = 0 WHERE cid = '4:33a347f4a2003e08597d0b0ff9879030' 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:71d7ab5844ae335d174364e8839eb254' 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\">Bonjour,<br />\nAie, dommage...<br />\nJe vais continuer à chercher alors, et poster la réponse ici... si je la<br />\ntrouve ! :)</p>\n<p>Cordialement,</p>\n<p>Fabien Peslier\n</div>\n', created = 1507750805, expire = 1507837205, headers = '', serialized = 0 WHERE cid = '4:71d7ab5844ae335d174364e8839eb254' 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:f7831f5d895af7504657c640580893c7' 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\">Bonjour,</p>\n<p>Je ne pourrai pas vous aider là, je n\'ai jamais modifié les flux rss :/</p>\n<p>Par contre, toute modification nécessite un redéploiement.</p>\n<p>Cordialement.</p>\n<p>Le 28/03/2011 14:57, <a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#102;&#97;&#98;&#105;&#101;&#110;&#46;&#112;&#101;&#115;&#108;&#105;&#101;&#114;&#64;&#117;&#110;&#105;&#118;&#45;&#97;&#110;&#103;&#101;&#114;&#115;&#46;&#102;&#114;\">&#102;&#97;&#98;&#105;&#101;&#110;&#46;&#112;&#101;&#115;&#108;&#105;&#101;&#114;&#64;&#117;&#110;&#105;&#118;&#45;&#97;&#110;&#103;&#101;&#114;&#115;&#46;&#102;&#114;</a> a écrit :<br />\n<div class=\"emailFilter_Toggle\">\n<blockquote class=\"emailFilter_Author_0\"><p>> Bonjour,<br />\n> merci de votre réactivité !<br />\n> Cependant, ne connaissant pas le JavaServer Pages, je ne peux réaliser ma<br />\n> demande...<br />\n> Auriez vous une piste de réflexion pour que ca m\'avance un peu ?<br />\n><br />\n> Faut il redémarrer le serveur pour que les modifications soit prisent en<br />\n> compte ?<br />\n><br />\n> Cordialement,<br />\n><br />\n> Fabien Peslier</div>\n</blockquote>\n<p>--<br />\nCordialement.</p>\n<p>François Lefebvre<br />\nBibliothèque Universitaire de Lille 1<br />\nCité Scientifique - B.P. 30155<br />\n59653 VILLENEUVE D\'ASCQ CEDEX<br />\nTél.: 03.20.33.60.73</p>\n</div>\n', created = 1507750805, expire = 1507837205, headers = '', serialized = 0 WHERE cid = '4:f7831f5d895af7504657c640580893c7' 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:b8846ca63c9d49e3bdc2097b90ed2f27' 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\">Bonjour,<br />\nmerci de votre réactivité !<br />\nCependant, ne connaissant pas le JavaServer Pages, je ne peux réaliser ma<br />\ndemande...<br />\nAuriez vous une piste de réflexion pour que ca m\'avance un peu ?</p>\n<p>Faut il redémarrer le serveur pour que les modifications soit prisent en<br />\ncompte ?</p>\n<p>Cordialement,</p>\n<p>Fabien Peslier\n</div>\n', created = 1507750805, expire = 1507837205, headers = '', serialized = 0 WHERE cid = '4:b8846ca63c9d49e3bdc2097b90ed2f27' 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:3ad07e8f4a12d511a2bbf167b7c3f422' 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\">Bonjour,</p>\n<p>En regardant le fichier : \"stylesheets/rss/thematic-search.jsp\" on voit<br />\nqu\'il fait référence à \"stylesheets/rss/results-content.jsp\".</p>\n<p>C\'est dans ce dernier fichier qu\'il faut faire la modification. ( après<br />\nl\'avoir copié dans votre répertoire de contribution bien sûr ).</p>\n<p>Cordialement.</p>\n<p>Le 28/03/2011 11:01, <a href=\"&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#102;&#97;&#98;&#105;&#101;&#110;&#46;&#112;&#101;&#115;&#108;&#105;&#101;&#114;&#64;&#117;&#110;&#105;&#118;&#45;&#97;&#110;&#103;&#101;&#114;&#115;&#46;&#102;&#114;\">&#102;&#97;&#98;&#105;&#101;&#110;&#46;&#112;&#101;&#115;&#108;&#105;&#101;&#114;&#64;&#117;&#110;&#105;&#118;&#45;&#97;&#110;&#103;&#101;&#114;&#115;&#46;&#102;&#114;</a> a écrit :<br />\n<div class=\"emailFilter_Toggle\">\n<blockquote class=\"emailFilter_Author_0\"><p>> Bonjour,<br />\n> Personnel à l\'université d\'Angers, j\'aurai aimé adapté le flux rss suite à<br />\n> une recherche thématique. (thematic-search.rss)<br />\n> En effet, ce flux récupère le titre, la date et la description d\'une<br />\n> ressource.<br />\n> J\'aurai aimé avoir également le thème de la ressource, mais je ne vois pas<br />\n> où il faut modifié...<br />\n><br />\n> Cordialement,<br />\n><br />\n> Fabien Peslier</div>\n</blockquote>\n<p>--<br />\nCordialement.</p>\n<p>François Lefebvre<br />\nBibliothèque Universitaire de Lille 1<br />\nCité Scientifique - B.P. 30155<br />\n59653 VILLENEUVE D\'ASCQ CEDEX<br />\nTél.: 03.20.33.60.73</p>\n</div>\n', created = 1507750805, expire = 1507837205, headers = '', serialized = 0 WHERE cid = '4:3ad07e8f4a12d511a2bbf167b7c3f422' 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:b62095729ae20bfdd9f441b558694b38' 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\">Bonjour,<br />\nPersonnel à l\'université d\'Angers, j\'aurai aimé adapté le flux rss suite à<br />\nune recherche thématique. (thematic-search.rss)<br />\nEn effet, ce flux récupère le titre, la date et la description d\'une<br />\nressource.<br />\nJ\'aurai aimé avoir également le thème de la ressource, mais je ne vois pas<br />\noù il faut modifié...</p>\n<p>Cordialement,</p>\n<p>Fabien Peslier</p>\n</div>\n', created = 1507750805, expire = 1507837205, headers = '', serialized = 0 WHERE cid = '4:b62095729ae20bfdd9f441b558694b38' in /home/ori-oai/drupal/drupal-6.34/includes/cache.inc on line 112.
6 messages / 0 nouveaux
Dernière contribution
hjacob
Ajouter un champs dans un rss
Bonjour Fabien,

J'ai eu l'occasion il y a déjà quelque temps d'ajouter un fil rss pour un besoin d'affichage spécifique de certaines ressources.
En quelques mots, il s'agissait de produire un fil rss contenant une liste de publications scientifiques qui est affichée  ensuite par un composant Infoglue.
Il fallait modifier le contenu du fil pour l'adapter à la demande:

Au lieu du fil rss  :
<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
<item>
<title>Adult/young ratio influences song acquisition in female European starlings (Sturnus vulgaris)</title>
<description>One parallel between humans and most songbirds is the fact that young require social interactions with an adult to acquire specific vocalizations. Songbirds are considered good models for comparative studies, although reports to date concern almost exclusively male songbirds. In addition, adult influence on vocal communication is generally investigated only in restricted social contexts (usually dyads). Here, we analysed song learning and spatial associations among young female starlings that were maintained for one year in dyads (1 adult/1 young), triads (2 adults/1 young) or larger group (7 young/2 adults). Segregation by age was seen in the triads and in the larger group. The influence of adults (proportion of songs copied from adults) decreased as social complexity increased. Unusual temporal features were observed in young maintained in triads and young neglected copying adult songs in the presence of peers. These results are among the first to explore
 the circumstances under which females learn and from whom they learn. They also add new insight to a wide range of questions about social influences on learning.</description>
<author>Bertin, A.; Hausberger, M.; Henry, L.; Richard-Yris, M.-A.; EthoS, UMR 6552; CNRS; Université de Rennes 1</author>
<pubDate>Wed, 31 Dec 2008 23:00:00 GMT</pubDate>

<link>http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939</link>
<guid isPermaLink="true">rennes1-ori-wf-1-1939</guid> <content:encoded><![CDATA[ <br/><b>URL: <a href="http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939" target="_blank">http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939</a></b>  ]]></content:encoded>
</item>
....
</channel>
</rss>
Il fallait le fil :
<rss version="2.0" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
...
<item>
<title>Adult/young ratio influences song acquisition in female European starlings (Sturnus vulgaris)</title>
<description>Journal of Comparative Psychology, 2009, 123, 195-203</description>
<author>Bertin, A.; Hausberger, M.; Henry, L.; Richard-Yris, M.-A.; EthoS, UMR 6552; CNRS; Université de Rennes 1</author>
<pubDate>[2009]</pubDate>

<link>http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939</link>
<guid isPermaLink="true">rennes1-ori-wf-1-1939</guid> <content:encoded><![CDATA[ <br/><b>URL: <a href="http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939" target="_blank">http://localhost:8184/ori-oai-search/notice/view/rennes1-ori-wf-1-1939</a></b>  ]]></content:encoded>
</item>
....
</channel>
</rss>

En gros, il fallait modifier le contenu des champs rss <description> et <pubDate>.
Voici les extraits des fichiers modifiés.


Pour la partie configuration (config.xml) :

<!-- Menu permettant de construire le fil rss de publications scientifiques décrites en DC -->
         <advanced_search hide="true" key="advanced" file="ur1-scd-dc_advanced.xml">
                                <hidden_fields>
                                        <hidden_field vocabularyId="search_metadata_namespaces:dc">
                                                <metadata>md-ori-oai-namespace</metadata>
                                        </hidden_field>
                                </hidden_fields>
                                <result_fields id="publication_no_fulltext"/>
                                <sort_fields id="year_author"/>
                                <rss_fields id="publication"/>
         </advanced_search>

...
<!-- ======== result fields pour le fil rss publication ======== -->

<result_fields id="publication_no_fulltext" jsp_file="documents-results-ur1-scd.jsp">
...
      <result_field key="resource">
          <metadata>//dc:source</metadata>
          <metadata>//dc:identifier</metadata>
       </result_field>
</result_fields>
...
<!-- ======== rss fields ======== -->
<rss_fields id="notice" link="notice">
     <title>title</title>
     <author>author</author>
     <description>description</description>
     <pubDate>date</pubDate>
</rss_fields>

<! le nouveau fil rss -->
<rss_fields id="publication" link="publication">
    <title>title</title>
    <author>author</author>
    <description>resource</description>
    <pubDate>date</pubDate>
</rss_fields>


Le fil rss est produit par /stylesheets/rss/results-content.jsp.
Par exemple, pour afficher le contenu du champ rss <description> :

                <c:if test="${rssDescription!=null}">
                        <c:if test="${resultFieldKey==rssDescription}">
                            <c:forEach begin="0" end="${resultField.metadatasSize-1}" var="index_md">
                                <c:set var="md_name" value="${resultField.metadatas[index_md].name}" />
                                <c:set var="values_size" value="${result.values[md_name].transformedValuesSize}" />
                                <c:if test="${values_size!=0}">
                                   <c:if test="${resultField.key=='description'}">
                                     
                                        <c:forEach begin="0" end="${values_size-1}" var="index_value">
                                            <c:set var="cell_content" value="${cell_content}${result.values[md_name].transformedValues[index_value]}" />
                                            <c:if test="${index_value!=(values_size-1)}">
                                                <c:set var="cell_content" value="${cell_content}<br/>" />
                                            </c:if>
                                        </c:forEach>
                                    </c:if>
 
                              <c:if test="${resultField.key=='resource'}">
                                    <c:forEach begin="0" end="${values_size-1}" var="index_value">
                                            <c:set var="value_to_add" value="${result.values[md_name].transformedValues[index_value]}" />                                             
                                            <c:if test="${not (fn:startsWith(value_to_add, 'http')) and not (fn:startsWith(value_to_add, 'https'))}">
                                                <c:if test="${not (fn:endsWith(cell_content, '-- ')) and cell_content!='' and value_to_add!=null}">
                                                    <c:set var="cell_content" value="${cell_content} -- " />
                                                </c:if>                                             
                                                <c:set var="cell_content" value="${cell_content}${value_to_add}" />
                                            </c:if>                                                 
                                    </c:forEach>
                              </c:if>
 
                                </c:if>
                            </c:forEach>
                        </c:if>
                        <c:if test="${cell_content!=''}">
                            <description><c:out value="${cell_content}"/></description>
                        </c:if>
                    </c:if>


Pour modifier l'affichage du contenu de <pubDate> , on se sert du lien link="publication" déclaré dans la configuration du fil rss :


                 <c:if test="${rssPubDate!=null}">
                            <c:if test="${resultFieldKey==rssPubDate}">                          
                                <c:forEach begin="0" end="${resultField.metadatasSize-1}" var="index_md">
                                    <c:set var="md_name" value="${resultField.metadatas[index_md].name}" />
                                    <c:choose>
                                        <c:when test="${rssLink=='publication'}">
                                            <c:set var="cell_content" value="${result.values[md_name].retrievedValues}" />
                                        </c:when>
                                        <c:otherwise>
                                             <c:set var="cell_content" value="${result.values[md_name].dateValue}" />
                                        </c:otherwise>
                                    </c:choose>
                                </c:forEach>
                            </c:if>
                            <c:if test="${cell_content!=''}">
                                <pubDate><c:out value="${cell_content}"/></pubDate>
                            </c:if>                
                        </c:if>


En espérant que ça t'aide,
Henri

Le 29/03/2011 14:30, fabien.peslier@univ-angers.fr a écrit :
" type="cite">
Bonjour,
Aie, dommage...
Je vais continuer à chercher alors, et poster la réponse ici... si je la
trouve ! :)

Cordialement,

Fabien Peslier

-- 
Henri Jacob
Centre de Ressources Informatiques (CRI)
Université de Rennes 1
tel: 02 23 23 71 37
fabien.peslier
Bonjour,
Aie, dommage...
Je vais continuer à chercher alors, et poster la réponse ici... si je la
trouve ! :)

Cordialement,

Fabien Peslier

francoislefebvre
Bonjour,

Je ne pourrai pas vous aider là, je n'ai jamais modifié les flux rss :/

Par contre, toute modification nécessite un redéploiement.

Cordialement.

Le 28/03/2011 14:57, fabien.peslier@univ-angers.fr a écrit :

> Bonjour,
> merci de votre réactivité !
> Cependant, ne connaissant pas le JavaServer Pages, je ne peux réaliser ma
> demande...
> Auriez vous une piste de réflexion pour que ca m'avance un peu ?
>
> Faut il redémarrer le serveur pour que les modifications soit prisent en
> compte ?
>
> Cordialement,
>
> Fabien Peslier

--
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

fabien.peslier
Bonjour,
merci de votre réactivité !
Cependant, ne connaissant pas le JavaServer Pages, je ne peux réaliser ma
demande...
Auriez vous une piste de réflexion pour que ca m'avance un peu ?

Faut il redémarrer le serveur pour que les modifications soit prisent en
compte ?

Cordialement,

Fabien Peslier

francoislefebvre
Bonjour,

En regardant le fichier : "stylesheets/rss/thematic-search.jsp" on voit
qu'il fait référence à "stylesheets/rss/results-content.jsp".

C'est dans ce dernier fichier qu'il faut faire la modification. ( après
l'avoir copié dans votre répertoire de contribution bien sûr ).

Cordialement.

Le 28/03/2011 11:01, fabien.peslier@univ-angers.fr a écrit :

> Bonjour,
> Personnel à l'université d'Angers, j'aurai aimé adapté le flux rss suite à
> une recherche thématique. (thematic-search.rss)
> En effet, ce flux récupère le titre, la date et la description d'une
> ressource.
> J'aurai aimé avoir également le thème de la ressource, mais je ne vois pas
> où il faut modifié...
>
> Cordialement,
>
> Fabien Peslier

--
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

fabien.peslier
Bonjour,
Personnel à l'université d'Angers, j'aurai aimé adapté le flux rss suite à
une recherche thématique. (thematic-search.rss)
En effet, ce flux récupère le titre, la date et la description d'une
ressource.
J'aurai aimé avoir également le thème de la ressource, mais je ne vois pas
où il faut modifié...

Cordialement,

Fabien Peslier

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.