{recherche} vs {recherche #RECHERCHE}

Alexandre Catonné <[email protected]>
Newsgroups gmane.comp.web.spip.user
Message-ID <[email protected]>
Bonjour,

Dans le cas d’une recherche entre guillemets
Je n’obtiens pas les même résultats pour des boucles de recherche avec ou sans un argument à {recherche}


<BOUCLE_articles_var(ARTICLES) {recherche #RECHERCHE} {!par date} >
<li><a href="#URL_ARTICLE">#TITRE</a></li>
</BOUCLE_articles_var>


<BOUCLE_articles(ARTICLES) {recherche} {!par date}>
<li><a href="#URL_ARTICLE">#TITRE</a></li>
</BOUCLE_articles>


En debug je vois qu’avec {recherche #RECHERCHE} un entites_html(_request("recherche »)) s’ajoute



{recherche} :
        $prepare_recherche = charger_fonction('prepare_recherche', 'inc');
14 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles&var_mode_affiche=code#T357e4187f7a78406196a2a7eff55e557>        list($rech_select, $rech_where) = $prepare_recherche((isset($Pile[0]["recherche"])?$Pile[0]["recherche"]:(isset($GLOBALS["recherche"])?$GLOBALS["recherche"]:"")), "articles", "","",array (
15 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles&var_mode_affiche=code#T357e4187f7a78406196a2a7eff55e557>),"id_article");
16 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles&var_mode_affiche=code#T357e4187f7a78406196a2a7eff55e557>    }



{recherche #RECHERCHE} :
  $prepare_recherche = charger_fonction('prepare_recherche', 'inc');
14 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>        list($rech_select, $rech_where) = $prepare_recherche((
15 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>
16 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>// 1 signes
17 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>'(' .
18 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>
19 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>// #RECHERCHE*
20 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>entites_html(_request("recherche")) .
21 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>
22 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>// 1 signes
23 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>')'), "articles", "","",array (
24 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>),"id_article");
25 <http://localhost:8888/afc/DOUBLONTRAVAIL/spip.php?page=recherche&recherche=%22Pascale+Marin%22&var_mode=debug&var_mode_objet=html_f5802a09a8bc2d2e89d127b329e5d0dc_articles_var&var_mode_affiche=code#T066d69110b9152b37ad58f66605edcdf>    }



Sur un spip 3.2.9, tous plugins désactivés, testé à partir du squelettes-dist
Avec ou sans plugin fulltext.

#RECHERCHE ou #RECHERCHE* ou #ENV{recherche} est idem
L’application du filtre de fulltext |fulltext_recherche_naturelle_fr ne change pas la donne


C’est bizarre non ?
acaton
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.