Subversion Repositories eFlore/Applications.cel

Rev

Rev 2734 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2734 Rev 2737
Line 478... Line 478...
478
				if ((noms=reponse.get(i).isArray()) != null) {
478
				if ((noms=reponse.get(i).isArray()) != null) {
479
					String nom = ((JSONString) noms.get(0)).stringValue();
479
					String nom = ((JSONString) noms.get(0)).stringValue();
480
					String numeroNom = ((JSONString) noms.get(1)).stringValue();
480
					String numeroNom = ((JSONString) noms.get(1)).stringValue();
481
					String statut= ((JSONString) noms.get(2)).stringValue();
481
					String statut= ((JSONString) noms.get(2)).stringValue();
482
					ReferentielNom nomScientifique = new ReferentielNom(nom, numeroNom, statut);
482
					ReferentielNom nomScientifique = new ReferentielNom(nom, numeroNom, statut);
483
					// clef améliorée : permet de désambiguiser les noms identiques
483
					// FIXME : et si le numero de nom n'est pas unique ? (cas de multirefrentiel....)					
484
					// (ex: Scilla bifolia)
-
 
485
					referentielNomData.put(numeroNom + "|" + nom, nomScientifique);
484
					referentielNomData.put(nomScientifique.getNom(),nomScientifique);								
486
				}
485
				}
487
			}
486
			}
488
		} else {	
487
		} else {	
489
			referentielNomData = new HashMap<String, ReferentielNom>(0);
488
			referentielNomData = new HashMap<String, ReferentielNom>(0);
490
		}
489
		}