| Line 19... |
Line 19... |
| 19 |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
|
19 |
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
|
| 20 |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
|
20 |
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
|
| 21 |
* @version 1.0
|
21 |
* @version 1.0
|
| 22 |
* @copyright 1999-${year} Tela Botanica (accueil@tela-botanica.org)
|
22 |
* @copyright 1999-${year} Tela Botanica (accueil@tela-botanica.org)
|
| 23 |
*/
|
23 |
*/
|
| - |
|
24 |
|
| - |
|
25 |
// Un caractère de concaténation entre le projet et le service.
|
| - |
|
26 |
// Ce caractère ne doit pas faire partie d'aucun des noms de service ou projet
|
| - |
|
27 |
define('RES_VAL_SEP', '@');
|
| - |
|
28 |
|
| 24 |
class NomsVernaculaires extends Commun {
|
29 |
class NomsVernaculaires extends Commun {
|
| 25 |
protected $champ_infos = array(
|
30 |
protected $champ_infos = array(
|
| 26 |
'taxon' => array('service' => 'taxons', 'ressource' => 'nt:', 'projet' => 'bdtfx', 'nom' => 'nom_sci',
|
31 |
'taxon' => array('service' => 'taxons', 'ressource' => 'nt:', 'projet' => 'bdtfx', 'nom' => 'nom_sci',
|
| 27 |
// utilisés par ajouterChampsOntologieLigneResultat()
|
32 |
// utilisés par ajouterChampsOntologieLigneResultat()
|
| 28 |
'intitule' => 'taxon.code', // intitulé du champ tel qu'il sera renvoyé en JSON
|
33 |
'intitule' => 'taxon.code', // intitulé du champ tel qu'il sera renvoyé en JSON
|
| Line 428... |
Line 433... |
| 428 |
foreach($this->champ_infos as $cle => $champs_supplementaires) {
|
433 |
foreach($this->champ_infos as $cle => $champs_supplementaires) {
|
| 429 |
if(!in_array($cle, $this->champs_supp)) continue;
|
434 |
if(!in_array($cle, $this->champs_supp)) continue;
|
| Line 430... |
Line 435... |
| 430 |
|
435 |
|
| 431 |
// TODO: n'activer QUE lorsque le webservice ontologie Nvjfl supportera le multi-critère
|
436 |
// TODO: n'activer QUE lorsque le webservice ontologie Nvjfl supportera le multi-critère
|
| 432 |
// cf: services/modules/0.1/commun/Ontologies.php
|
437 |
// cf: services/modules/0.1/commun/Ontologies.php
|
| 433 |
if(FALSE && $cle == 'conseil_emploi') {
|
438 |
if($cle == 'conseil_emploi') {
|
| 434 |
// la factorisation des toutes les valeurs recherchées (pour tous les
|
439 |
// la factorisation des toutes les valeurs recherchées (pour tous les
|
| 435 |
// résultats, peut [potentiellement] être effectuée ci-dessous)
|
440 |
// résultats, peut [potentiellement] être effectuée ci-dessous)
|
| 436 |
$ontologieParamPending = static::NvjflOntologieIndex($resultats, $champs_supplementaires);
|
441 |
$ontologieParamPending = static::NvjflOntologieIndex($resultats, $champs_supplementaires);
|
| 437 |
$this->NvjflOntologieExpand($ontologieParamPending);
|
442 |
$this->NvjflOntologieExpand($ontologieParamPending);
|