|
|
|
@ -17,16 +17,17 @@
|
|
|
|
|
- Param `groupes`. Uses id_groupe.
|
|
|
|
|
]
|
|
|
|
|
[(#ENV{groupes}|oui)[(#ENV{groupes}|explode{','}|setenv{id_groupe})]]
|
|
|
|
|
\[
|
|
|
|
|
{
|
|
|
|
|
"results": \[
|
|
|
|
|
<BOUCLE_e(MOTS){tout}{objet}{id_objet}{doublons} />
|
|
|
|
|
<BOUCLE_s1(MOTS){titre LIKE (#ENV*{q})%}{","}
|
|
|
|
|
{id_groupe ?IN #ENV{id_groupe}}
|
|
|
|
|
{0,20}{par titre}{doublons}{tout}>
|
|
|
|
|
[(#SET{label,#TITRE[ - (#DESCRIPTIF|textebrut|couper{20})][ ((#TYPE|textebrut))]})]
|
|
|
|
|
{
|
|
|
|
|
"label": [(#GET{label}|json_encode)],
|
|
|
|
|
"value": [(#ID_MOT|json_encode)],
|
|
|
|
|
"titre": [(#TITRE|textebrut|json_encode)]
|
|
|
|
|
"id": [(#ID_MOT|json_encode)],
|
|
|
|
|
"long_text": [(#GET{label}|json_encode)],
|
|
|
|
|
"text": [(#TITRE|textebrut|json_encode)]
|
|
|
|
|
}
|
|
|
|
|
</BOUCLE_s1>
|
|
|
|
|
<BOUCLE_s2(MOTS){recherche (#ENV*{q})*}{","}
|
|
|
|
@ -34,10 +35,11 @@
|
|
|
|
|
{0,20}{!par points}{doublons}{tout}>
|
|
|
|
|
[(#SET{label,#TITRE[ - (#DESCRIPTIF|textebrut|couper{20})][ ((#TYPE|textebrut))]})]
|
|
|
|
|
{
|
|
|
|
|
"label": [(#GET{label}|json_encode)],
|
|
|
|
|
"value": [(#ID_MOT|json_encode)],
|
|
|
|
|
"titre": [(#TITRE|textebrut|json_encode)]
|
|
|
|
|
"id": [(#ID_MOT|json_encode)],
|
|
|
|
|
"long_text": [(#GET{label}|json_encode)],
|
|
|
|
|
"text": [(#TITRE|textebrut|json_encode)]
|
|
|
|
|
}
|
|
|
|
|
</BOUCLE_s2>
|
|
|
|
|
<//B_s1>
|
|
|
|
|
\]
|
|
|
|
|
\]
|
|
|
|
|
}
|