Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 151 → Rev 152

/trunk/tests/modules/resultat/ResultatFormateurCommun.php
16,48 → 16,8
}
 
protected function getResultatsPourMasque($masque) {
$resultats['viola his'] = array(
'entete' => array(
'masque' => 'nom_sci=%viola% his%',
'depart' => 0,
'limite' => 3000,
'total' => 5),
'resultat' => array(
'72291' => array(
'nom_sci' => 'Viola hispida Lapeyr. [1813]',
'href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72291',
'retenu' => false,
'nom_retenu' => 'Viola bubanii Timb.-Lagr. [1852]',
'nom_retenu.id' => '72117',
'nom_retenu.href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72117'),
'72288' => array(
'nom_sci' => 'Viola hispida Lam. [1779]',
'href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72288',
'retenu' => true,
'nom_retenu' => 'Viola hispida Lam. [1779]',
'nom_retenu.id' => '72288',
'nom_retenu.href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72288'),
'72341' => array(
'nom_sci' => 'Viola lutea var. hispida Nyman [1878]',
'href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72341',
'retenu' => false,
'nom_retenu' => 'Viola bubanii Timb.-Lagr. [1852]',
'nom_retenu.id' => '72117',
'nom_retenu.href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72117'),
'72289' => array(
'nom_sci' => 'Viola hispida subsp. cryana (Gillot) P.Fourn. [1928]',
'href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72289',
'retenu' => false,
'nom_retenu' => 'Viola cryana Gillot [1878]',
'nom_retenu.id' => '72201',
'nom_retenu.href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72201'),
'72290' => array(
'nom_sci' => 'Viola hispida subsp. rothomagensis P.Fourn. [1928]',
'href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72290',
'retenu' => false,
'nom_retenu' => 'Viola hispida Lam. [1779]',
'nom_retenu.id' => '72288',
'nom_retenu.href' => 'http://localhost/service:eflore:0.1/bdtfx/noms/72288')));
$resultatsJson = file_get_contents(dirname(__FILE__).'/resultats.json');
$resultats = json_decode($resultatsJson, true);
return $resultats[$masque];
}
 
/trunk/tests/modules/resultat/resultats.json
New file
0,0 → 1,130
{"eritrichium":{
"entete":
{"masque":"nom_sci=%eritrichium%","depart":0,"limite":"3000","total":"8"},
"resultat":{
"86402":
{"nom_sci":"Eritrichium Gaudin [1828]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/86402",
"retenu":"true",
"nom_retenu":"Eritrichium Gaudin [1828]",
"nom_retenu.id":"86402",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/86402",
"auteur":"Gaudin",
"annee":"1828",
"biblio_origine":null,"nom_addendum":null},
"75113":{
"nom_sci":"Eritrichium nanum (L.) Schrad. ex Gaudin [1828]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/75113",
"retenu":"true",
"nom_retenu":"Eritrichium nanum (L.) Schrad. ex Gaudin [1828]",
"nom_retenu.id":"75113",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/75113",
"auteur":"(L.) Schrad. ex Gaudin",
"annee":"1828",
"biblio_origine":"Fl. Helv., 2 : 57",
"nom_addendum":null},
"25025":{
"nom_sci":"Eritrichium mandonii Ball [1885]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/25025",
"retenu":"false",
"nom_retenu":"Amsinckia micrantha Suksd. [1900]",
"nom_retenu.id":"4208",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/4208",
"auteur":"Ball",
"annee":"1885",
"biblio_origine":"J. Linn. Soc., Bot., 22 : 51",
"nom_addendum":null},
"25024":{
"nom_sci":"Eritrichium hacquetii W.D.J.Koch [1838]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/25024",
"retenu":"false",
"nom_retenu":"Eritrichium nanum subsp. nanum",
"nom_retenu.id":"25026",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/25026",
"auteur":"W.D.J.Koch",
"annee":"1838",
"biblio_origine":"Syn. Fl. Germ. Helv., \u00e9d. 1 : 507",
"nom_addendum":null},
"25028":{
"nom_sci":"Eritrichium tergloviense (Hacq.) Putt. & Endl. [1843]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/25028",
"retenu":"false",
"nom_retenu":"Eritrichium nanum subsp. nanum",
"nom_retenu.id":"25026",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/25026",
"auteur":"(Hacq.) Putt. & Endl.",
"annee":"1843",
"biblio_origine":"in T.Nees ; Gen. Pl. Fl. Germ., tab. 429 fig. 27, 32",
"nom_addendum":null},
"25026":{
"nom_sci":"Eritrichium nanum subsp. nanum",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/25026",
"retenu":"true",
"nom_retenu":"Eritrichium nanum subsp. nanum",
"nom_retenu.id":"25026",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/25026",
"auteur":null,"annee":null,"biblio_origine":null,"nom_addendum":null},
"103076":{
"nom_sci":"Eritrichium nanum subsp. jankae (Simonk.) J\u00e1v. [1887]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/103076",
"retenu":"true",
"nom_retenu":"Eritrichium nanum subsp. jankae (Simonk.) J\u00e1v. [1887]",
"nom_retenu.id":"103076",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/103076",
"auteur":"(Simonk.) J\u00e1v.",
"annee":"1887",
"biblio_origine":"Enum. Fl. Transsilv., 408",
"nom_addendum":null},
"25027":{
"nom_sci":"Eritrichium nanum var. leiospermum Rouy [1908]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/25027",
"retenu":"false",
"nom_retenu":"Eritrichium nanum subsp. nanum",
"nom_retenu.id":"25026",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/25026",
"auteur":"Rouy",
"annee":"1908",
"biblio_origine":"Fl. Fr., 10 : 582",
"nom_addendum":null}
}
},
"viola his":{
"entete":
{"masque":"nom_sci=%viola% his%","depart":0,"limite":"3000","total":"5"},
"resultat":{
"72291":{
"nom_sci":"Viola hispida Lapeyr. [1813]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/72291",
"retenu":"false",
"nom_retenu":"Viola bubanii Timb.-Lagr. [1852]",
"nom_retenu.id":"72117",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/72117"},
"72288":{
"nom_sci":"Viola hispida Lam. [1779]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/72288",
"retenu":"true",
"nom_retenu":"Viola hispida Lam. [1779]",
"nom_retenu.id":"72288",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/72288"},
"72341":{
"nom_sci":"Viola lutea var. hispida Nyman [1878]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/72341",
"retenu":"false",
"nom_retenu":"Viola bubanii Timb.-Lagr. [1852]",
"nom_retenu.id":"72117",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/72117"},
"72289":{"nom_sci":"Viola hispida subsp. cryana (Gillot) P.Fourn. [1928]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/72289",
"retenu":"false",
"nom_retenu":"Viola cryana Gillot [1878]",
"nom_retenu.id":"72201",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/72201"},
"72290":{"nom_sci":"Viola hispida subsp. rothomagensis P.Fourn. [1928]",
"href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/72290",
"retenu":"false",
"nom_retenu":"Viola hispida Lam. [1779]",
"nom_retenu.id":"72288",
"nom_retenu.href":"http:\/\/localhost\/service:eflore:0.1\/bdtfx\/noms\/72288"}
}
}
}