Subversion Repositories eFlore/Applications.cel

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
1740 4019 d 17 h raphael /branches/topic-dbsingleton/ merge trunk/: sync  
1728 4021 d 15 h raphael /branches/topic-dbsingleton/jrest/services/ DB/singleton: partie 7, modification manuelle de ImportXLS.php: simplification des prototypes de fonctions  
1727 4021 d 15 h raphael /branches/topic-dbsingleton/jrest/services/ DB/singleton: partie 6, substitutions automatiques des appels à $this->bdd->quote(): 25 substitutions effectuées  
1724 4021 d 15 h raphael /branches/topic-dbsingleton/jrest/ DB/singleton: partie 3, substitutions automatiques des appels dans jrest/ effectuée par script:
* 489 appels modifiés
* 1 fichier reste à modifier manuellement car il surcharge certaines méthodes: jrest/services/CelSyndicationImage.php

La commande, générée, appliquée est:
sed -i -E 's;\$this->(requeter|executer|protegerRequete|proteger|executerRequeteSimple|executerRequete|getTxt)\(;Cel::db()->\1(;g' \
jrest/lib/RechercheObservation.php \
jrest/lib/GestionObservation.php \
jrest/lib/RechercheInfosTaxonBeta.php \
jrest/lib/GestionImage.php \
jrest/lib/RechercheInfosTaxon.php \
jrest/lib/LiaisonMotsCles.php \
jrest/lib/RechercheImage.php \
jrest/lib/GestionChampsEtendus.php \
jrest/services/CelObs.php \
jrest/services/CelWidgetMap.php \
jrest/services/CelWidgetMapPoint.php \
jrest/services/InventoryImageCount.php \
jrest/services/InventoryObservationList.php \
jrest/services/Name.php \
jrest/services/InventoryImageList.php \
jrest/services/InventoryImageLink.php \
jrest/services/CelSyndicationObservation.php \
jrest/services/InventoryLocationList.php \
jrest/services/InventoryCheck.php \
jrest/services/ImageDateList.php \
jrest/services/ImageContribution.php \
jrest/services/ImportXLS.php \
jrest/services/CelWidgetSaisie.php \
jrest/services/User.php \
jrest/services/InventoryKeyWordObsLink.php \
jrest/services/CelImage.php \
jrest/services/CelValidationObservation.php \
jrest/services/InventoryByDept.php \
jrest/services/CelWidgetExport.php \
jrest/services/Inventory.php \
jrest/services/InventoryKeyWordList.php \
jrest/services/InventoryPDF.php \
jrest/services/NameMap.php \
jrest/services/CelStatistique.php \
jrest/services/CelStatistiqueTxt.php \
jrest/services/InventoryImageListPublic.php \
jrest/services/InventoryImportExcel.php \
jrest/services/InventoryKeyWordImageLink.php \
jrest/services/ExportXLS.php \
jrest/services/Resume.php \
jrest/services/InventoryImportMail.php \
jrest/services/LicenceUtilisateur.php \
jrest/services/SelfRefList.php \
jrest/services/InventoryContributionList.php \
jrest/services/CoordSearch.php \
jrest/services/ImageProvider.php \
jrest/services/InventoryImage.php \
jrest/services/InventoryExport.php \
jrest/services/InventoryObservationCount.php \
jrest/services/CelMessage.php \
jrest/services/InventoryUserList.php \
jrest/services/InventoryImport.php \
jrest/services/CelMotCle.php \
jrest/services/InventoryDateList.php \
jrest/services/NameSearch.php \
jrest/services/LocationSearch.php \
jrest/services/InventoryTransmit.php \
jrest/services/ImageRDF.php \
jrest/services/NameImage.php \
jrest/services/CelImageDoublon.php
 
1720 4021 d 19 h raphael /branches/topic-dbsingleton/ création d'une branche dbsingleton dédiée à rendre l'accès aux fonctions de base de données plus aisé  
1699 4023 d 14 h raphael /trunk/jrest/ import/export: Ajout de l'altitude à l'export et support de l'import  
1698 4023 d 14 h raphael /trunk/jrest/ import/export: suppression de code de débuggage et correction de l'import des date/time.  
1697 4023 d 18 h raphael /trunk/jrest/services/ import: compat PHP 5.2, suppression des gotos  
1688 4023 d 22 h raphael /trunk/jrest/services/ import: quelques ajout d'infos additionnelles à propos de la tentative de
détermination des noms scientifiques avec la nouvelle table cel_references.
 
1678 4028 d 13 h raphael /trunk/jrest/services/ import: stub pour l'import des mots-clefs (bis)  
1677 4028 d 14 h raphael /trunk/jrest/services/ import: stub pour l'import des mots-clefs  
1675 4028 d 16 h raphael /trunk/jrest/services/ import: compatibilité PHP 5.2 (fonctions anonymes indisponibles)  
1656 4029 d 14 h raphael /trunk/jrest/ export: mise à jour de FormateurGroupeColonne
* suppression du code déplacé de ExportXLS
* mise à jour de ImportXLS en conséquence
* gestion du cas particulier FormateurGroupeColonne::getImages()
* indent/header
 
1651 4030 d 20 h raphael /trunk/jrest/services/ import/bugfix: n'écrase plus le nom d'espèce saisi (nom_sel)  
1650 4030 d 20 h raphael /trunk/jrest/services/ import: correction/finalisation de l'association des images mentionnées dans le fichier importé  
1649 4030 d 22 h raphael /trunk/jrest/services/ import: changements mineurs au niveau de l'échappement et de l'initialisation des PDO::Statements  
1648 4033 d 16 h raphael /trunk/jrest/services/ import: implémentation des insertions sous forme de PDOStatement multiples.
Reste le problème du typage des données (bool, float) qui n'est pas
encore résolu (nécessiterait des named-placeholders + PDO::bindParam())
 
1646 4034 d 16 h raphael /trunk/jrest/services/ import: changement nom_d_ensemble_vers_liste_de_colonnes() => nomEnsembleVersListeColonnes() suite à r1644  
1642 4035 d 20 h raphael /trunk/jrest/services/ import/export:
Import:
* gestion des images
* détection de la localisation, repris et amélioré depuis InventoryImportExcel.php
* gestion des valeurs NULL inserées en BDD
* gestion des retours d'erreurs/avertissements

Export:
* correction du status "importable" et "extra" des champs + coloration des entêtes
* support du paramètre "format" (xls, xlsx, csv)

L'import/export commence à être fonctionnel, exemple:
$ POST http://cel/jrest/ExportXLS/22506<<<"format=csv&range=342212"; | \
curl -F "upload=@-" -F utilisateur=22506 "http://cel/jrest/ImportXLS";
# 1 observation importée
 
1640 4037 d 13 h raphael /trunk/jrest/services/ import/xls: diverses améliorations significatives
* lecture de fichier XLS par chunks (par 30 lignes pour l'instant)
* introduction et réutilisation du code d'Aurélien de détection de l'espèce saisie
* meilleur traitement des dates
* support préliminaire de l'association aux images importées, tout en conservant
la possibilité d'INSERT multiples
* quelques fonctions, inutil(isé?)es relatives aux lon/lat et BBox de référentiels
 

Show All