Menu

Tree [548195] master /
 History

HTTPS access


File Date Author Commit
 VCard unknown
 baseProspect 2017-01-13 Valentin Guilloux Valentin Guilloux [3a8217] Modification des fichier .bp en vue de traiter ...
 test 2016-12-04 Thomas D'Aubenton Thomas D'Aubenton [253d27] Export Bp To Vc + explication code
 BaseProspect.js 2016-12-03 Thomas D'Aubenton Thomas D'Aubenton [632662] BaseProject parser
 Contact.js 2016-12-03 Thomas D'Aubenton Thomas D'Aubenton [632662] BaseProject parser
 ImportVcard.js 2017-01-13 Valentin Guilloux Valentin Guilloux [548195] modification du readme (cf ticket #10) + correc...
 Licence.md 2017-01-02 lamiaahadi147 lamiaahadi147 [53a15d] Licence
 README.txt 2017-01-13 Valentin Guilloux Valentin Guilloux [548195] modification du readme (cf ticket #10) + correc...
 VcParser.js 2016-12-03 David Galante David Galante [382258] Création de l'import et d'un parser Vcard qui ...
 bpParser.js 2017-01-11 Valentin Guilloux Valentin Guilloux [a7faee] Modificaction de ImportVcard.js en vue de trait...

Read Me

### README - RegistreTPE - GL02 ### 

Description:  il faut que 2 modules soient installés. le module vcf et le module prompt.
Pour cela deux choix :   npm install qui installe automatiquement les deux modules
		      ou npm install vcf et npm install prompt.

Cette librairie effectuera des opérations sur des fichiers de deux formats : vcard et baseprospect. Ces fichiers devront respecter les grammaires suivantes :

=============            
Format Vcard 
=============
vcard-entity = 1*vcard 
  vcard = "BEGIN:VCARD" CRLF 
          "VERSION:4.0" CRLF 
          1*contentline 
          "END:VCARD" CRLF 
  contentline = [group "."] name *(";" param) ":" value CRLF 
  group = 1*(ALPHA / DIGIT / "-") 
  name  =  "FN" / "N" / "TEL" / "EMAIL" / "ROLE"/ "ORG"  / "NOTE" / “REV” /  iana-token / x-name 
  iana-token = 1*(ALPHA / DIGIT / "-") 
  x-name = "x-" 1*(ALPHA / DIGIT / "-") 
  param = language-param / value-param / pref-param / pid-param 
        / type-param / geo-parameter / tz-parameter / sort-as-param 
        / calscale-param / any-param 
  param-value = *SAFE-CHAR / DQUOTE *QSAFE-CHAR DQUOTE 
  any-param  = (iana-token / x-name) "=" param-value *("," param-value) 
  NON-ASCII = UTF8-2 / UTF8-3 / UTF8-4 
  QSAFE-CHAR = WSP / "!" / %x23-7E / NON-ASCII  
  SAFE-CHAR = WSP / "!" / %x23-39 / %x3C-7E / NON-ASCII 
  VALUE-CHAR = WSP / VCHAR / NON-ASCII 
  
====================
Format BaseProspect 
====================
FichierBP = 1*FormatBP 
FormatBP    =    Domaine CRLF Nom CRLF Prénom CRLF Entreprise CRLF Fonction CRLF Email 
CRLF Téléphone1 CRLF Remarque 
Domaine        =    '###' WSP 'Domaine : ' TEXT 
Nom         =     ‘Nom : ’ TEXT 
Prénom         =    ‘Prénom : ’ TEXT 
Entreprise     =    ‘Entreprise : ’ TEXT 
Fonction    =    ‘Fonction : ’ TEXT 
Email         =     ‘Email : ’ PLAINTEXT ‘@’ PLAINTEXT ‘.’ PLAINTEXT 
Téléphone    =     ‘Téléphone : ’ 1*(DIGIT)  
Remarque    =    DATE WSP ‘-’ WSP TEXT 
TEXT         =    1*(WSP / VCHAR) 
PLAINTEXT     =    1*(VCHAR) 
DATE        =    2DIGIT ‘/’ 2DIGIT ‘/’ 2DIGITF 


============
Utilisation
============

-----------------------------------------
POUR LES OPERATIONS SUR UN FICHIER VCARD
-----------------------------------------
node ImportVcard.js --help 

Cette commande affiche l'aide tel qu'écrite ci-desous

node ImportVcard.js [0<entier<22] fichierVcard

Cette commande possčde deux arguments, le premier argument est l'entier correspondant au domaine du contact (voir liste) alors que le second et le fichier ŕ importer.

1     Nettoyage de locaux,
2     Portiques de sécurité,
3     Sécurité électronique,
4     Transport (fret et express),
5     Travaux et aménagement,
6     Assurance automobile,
7     Assurance décennale,
8     Assurance de marchandises,
9     Assurance de personne,
10    Assurance multirisque,
11    Assurance RC Pro,
12    Véhicules Utilitaires Légers,
13    Transport,
14    Comptabilité et gestion,
15    Cession,
16    transmission entreprise,
17    Comptabilité externalisée/Expert comptable,
18    Création d'entreprises,
19    Permanence Téléphonique,
20    Recouvrement amiable et judiciaire,
21    Boissons et fontaine ŕ eau,
22    Imprimante Multifonction & Photocopieur 


------------------------------------------------
POUR LES OPERATIONS SUR UN FICHIER BaseProspect
------------------------------------------------
node bpParser.js fichierBaseProspect [--deleteDoublons] [--exportVCF]

Cette commande effectuera un parsing du fichier BaseProspect passé en paramčtres.
Deux options sont proposés : --deleteDoublons qui vérifie la présence de doublons et supprime le plus ancien si c'est le cas
			     --exportVCF qui effectue un export du fichier passé en paramčtre au format VCard. Le fichier a pour nom le domaine des contacts.

========================
Liste des contributeurs
========================
David Galante (davidgalante77@gmail.com)
Thomas D'Aubenton Carafa (thomas.d_aubenton_carafa@utt.fr)
Victorien Choteau (victorien.choteau@utt.fr)
Shilun Li (shilun.li@utt.fr)

============
Version 1.0
============
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.