Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 371 → Rev 372

/branches/v2.0-betulales/services/modules/FicheTaxon.php
92,8 → 92,7
" s.biblio_origine, s.nom_addendum, s.nom_francais, b.num_nom AS bas_num, b.num_nom_retenu AS ".
" bas_num_retenu, b.nom_sci AS bas_nom, b.auteur AS bas_auteur, b.annee AS bas_annee, ".
" b.biblio_origine AS bas_bib, b.nom_addendum AS bas_nom_add ".
" FROM {$ref} s, {$ref} b WHERE ".(($ref == "bdtfx" || $ref == "bdtre") ? 's.num_basionyme' :
's.basionyme')." = b.num_nom AND s.num_nom = {$num_nom};";
" FROM {$ref} s, {$ref} b WHERE s.num_basionyme = b.num_nom AND s.num_nom = {$num_nom};";
// Récupération des résultats
try {
252,8 → 251,7
public function getElementBasionyme($ref, $basionyme) {
$requete = "SELECT num_nom_retenu, num_nom, nom_sci, auteur, annee, biblio_origine, homonyme, ".
" nom_addendum, nom_francais FROM {$ref} WHERE ".(($ref == "bdtfx" || $ref == "bdtre") ? 'num_basionyme' :
'basionyme')." = '{$basionyme}';";
" nom_addendum, nom_francais FROM {$ref} WHERE num_basionyme = '{$basionyme}';";
// Récupération des résultats
try {
/branches/v2.0-betulales/services/modules/Recherche.php
159,8 → 159,7
// Construction de la requête
// si recherche des synonymes
$requete = (($this->distinct) ? 'SELECT DISTINCT' : 'SELECT').' num_nom, nom_sci, auteur, annee, '.
'biblio_origine, nom_addendum, num_nom_retenu, '.(($referentiel == "bdtfx" || $referentiel == "bdtre") ? 'num_basionyme' :
'basionyme').', synonyme_mal_applique, presence, exclure_taxref '.
'biblio_origine, nom_addendum, num_nom_retenu, num_basionyme, synonyme_mal_applique, presence, exclure_taxref '.
' FROM '.$referentiel.' WHERE num_nom_retenu IN ('.$liste_nom.') '.
'ORDER BY nom_sci ASC ';
try {
584,8 → 583,8
" OR presence LIKE {$p['mots']} ".
" OR statut_origine LIKE {$p['mots']} ".
" OR statut_introduction LIKE {$p['mots']} ".
" OR statut_culture LIKE {$p['mots']} ";
$where .= ($referentiel == "bdtfx") ? " OR num_basionyme LIKE {$p['mots']}) " : " OR basionyme LIKE {$p['mots']}) ";
" OR statut_culture LIKE {$p['mots']} ".
" OR num_basionyme LIKE {$p['mots']}) ";
}
}
if (isset($p['sg'])) {
/branches/v2.0-betulales/doc/bdd/creation_bdnt_test.sql
34,7 → 34,7
`notes` text,
`nom_addendum` varchar(500) DEFAULT NULL,
`homonyme` varchar(1) DEFAULT NULL,
`basionyme` varchar(9) DEFAULT NULL,
`num_basionyme` varchar(9) DEFAULT NULL,
`synonyme_proparte` varchar(100) DEFAULT NULL,
`synonyme_douteux` varchar(1) DEFAULT NULL,
`synonyme_mal_applique` varchar(1) DEFAULT NULL,
61,7 → 61,7
-- Contenu de la table `bdnt`
--
 
INSERT INTO `bdnt` (`num_nom`, `num_nom_retenu`, `num_tax_sup`, `rang`, `nom_sci`, `nom_supra_generique`, `genre`, `epithete_infra_generique`, `epithete_sp`, `type_epithete`, `epithete_infra_sp`, `cultivar_groupe`, `cultivar`, `nom_commercial`, `auteur`, `annee`, `biblio_origine`, `notes`, `nom_addendum`, `homonyme`, `basionyme`, `synonyme_proparte`, `synonyme_douteux`, `synonyme_mal_applique`, `synonyme_orthographique`, `hybride_parent_01`, `hybride_parent_01_notes`, `hybride_parent_02`, `hybride_parent_02_notes`, `nom_francais`, `presence`, `statut_origine`, `statut_introduction`, `statut_culture`, `presence_Ga`, `presence_Co`, `exclure_taxref`, `num_taxonomique`) VALUES
INSERT INTO `bdnt` (`num_nom`, `num_nom_retenu`, `num_tax_sup`, `rang`, `nom_sci`, `nom_supra_generique`, `genre`, `epithete_infra_generique`, `epithete_sp`, `type_epithete`, `epithete_infra_sp`, `cultivar_groupe`, `cultivar`, `nom_commercial`, `auteur`, `annee`, `biblio_origine`, `notes`, `nom_addendum`, `homonyme`, `num_basionyme`, `synonyme_proparte`, `synonyme_douteux`, `synonyme_mal_applique`, `synonyme_orthographique`, `hybride_parent_01`, `hybride_parent_01_notes`, `hybride_parent_02`, `hybride_parent_02_notes`, `nom_francais`, `presence`, `statut_origine`, `statut_introduction`, `statut_culture`, `presence_Ga`, `presence_Co`, `exclure_taxref`, `num_taxonomique`) VALUES
(1, '71574', '', 290, 'Abacosa dumetorum', '', 'Abacosa', '', 'dumetorum', '', '', '', '', '', '(L.) Alef.', '1861', 'Bonplandia, 9 : 104', '', '', NULL, '71574', '', '', '', '', '74979', '', '77216', '', '', '', '', '', '', '', '', NULL, NULL),
(10, '10', '74929', 320, 'Abies alba subsp. alba', '', 'Abies', '', 'alba', 'subsp.', 'alba', '', '', '', '', '', '', '', '', NULL, '', '', '', '', '', '', '', '', '', '', 'P', 'N', 'A', '', 'P', 'P', NULL, NULL),
(11, '17', '', 320, 'Abies alba subsp. cephalonica', '', 'Abies', '', 'alba', 'subsp.', 'cephalonica', '', '', '', '(J.W.Loudon) K.Richt.', '1890', 'Pl. Eur., 1 : 5', '', '', NULL, '17', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', NULL, NULL),
/branches/v2.0-betulales/scripts/modules/tests/configurations/tests.ini
378,17 → 378,17
title=";;0 = non, 1 = oui, 9 = indéterminée"
[54]
abr = "Basionyme Syntaxe"
nom = "basionyme -> syntaxe"
description = "Le champ basionyme contient :
nom = "num_basionyme -> syntaxe"
description = "Le champ num_basionyme contient :
- une valeur vide,
- un nombre."
entete = "num_nom,basionyme erroné,Exclusion de Taxref"
entete = "num_nom,num_basionyme erroné,Exclusion de Taxref"
title=";;0 = non, 1 = oui, 9 = indéterminée"
[55]
abr = "Basionyme Existence"
nom = "basionyme -> existence"
description = "Si le champ basionyme contient un nombre alors il doit correspondre à une valeur du champ num_nom."
entete = "num_nom,basionyme introuvable,Exclusion de Taxref"
nom = "num_basionyme -> existence"
description = "Si le champ num_basionyme contient un nombre alors il doit correspondre à une valeur du champ num_nom."
entete = "num_nom,num_basionyme introuvable,Exclusion de Taxref"
title=";;0 = non, 1 = oui, 9 = indéterminée"
[56]
abr = "Synonyme Proparte Syntaxe"
/branches/v2.0-betulales/configurations/referentiel_v4.4.ini
42,7 → 42,7
nom_addendum=VARCHAR|500,
homonyme=VARCHAR|1,
num_type=VARCHAR|9,
basionyme=VARCHAR|9,
num_basionyme=VARCHAR|9,
synonyme_proparte=VARCHAR|100,
synonyme_douteux=VARCHAR|1,
synonyme_mal_applique=VARCHAR|1,