Changeset 1397
- Timestamp:
- Sep 21, 2010, 7:38:35 PM (10 years ago)
- Location:
- cpc/trunk/project
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpc/trunk/project/batch/documents/download_docs.pl
r1333 r1397 17 17 "http://www.assemblee-nationale.fr/13/documents/index-femmes.asp", 18 18 "http://www.assemblee-nationale.fr/13/documents/index-information-comper.asp", 19 "http://www.assemblee-nationale.fr/13/documents/index-enquete-rapports.asp") { 19 "http://www.assemblee-nationale.fr/13/documents/index-enquete-rapports.asp", 20 "http://www.assemblee-nationale.fr/13/budget/plf2008/rapporteurs.asp", 21 "http://www.assemblee-nationale.fr/13/budget/plf2009/rapporteurs.asp", 22 "http://www.assemblee-nationale.fr/13/budget/plf2010/rapporteurs.asp") { 20 23 $ct = 0; 21 24 $a->get($baseurl); -
cpc/trunk/project/batch/documents/parse_metas.pl
r1371 r1397 7 7 $source =~ s/_/\//g; 8 8 $id = $source; 9 $id =~ s/^http\:\/\/.*(\d{4})(-[at].*)?\.asp$/\1\2/i; 9 $plflettre = ''; 10 if ($id =~ /plf\d{4}\/([a-z])\d{4}/i) { 11 $plflettre = uc($1); 12 } 13 $id =~ s/^http\:\/\/.*(\d{4})(-[at].*)?\.asp$/\1$plflettre\2/i; 10 14 $id =~ s/^0+//; 11 15 $num = $annexe = $id; 12 $num =~ s/^(\d+)(-[at].*)?$/\1/i; 13 $annexe =~ s/^\d+(-[at])?(.*)?$/\2/i; 16 $num =~ s/^(\d+)([^\d].*)?$/\1/i; 17 $annexe =~ s/^\d+([^\d].*)?$/\1/i; 18 $annexe =~ s/-//g; 19 if ($annexe =~ /t\d([av]\d+)?$/) { 20 $annexe =~ s/t/t0/; 21 } 22 if ($annexe =~ /v\d$/) { 23 $annexe =~ s/v/v0/; 24 } 25 if ($annexe =~ /a\d$/) { 26 $annexe =~ s/a/a0/; 27 } 28 if ($annexe =~ /t([IVX]+)([av].*)?$/) { 29 $ro = $1; 30 $rom{'I'} = '01'; 31 $rom{'II'} = '02'; 32 $rom{'III'} = '03'; 33 $rom{'IV'} = '04'; 34 $rom{'V'} = '05'; 35 $rom{'VI'} = '06'; 36 $rom{'VII'} = '07'; 37 $rom{'VIII'} = '08'; 38 $rom{'IX'} = '09'; 39 $rom{'X'} = '10'; 40 $rom{'XI'} = '11'; 41 $rom{'XII'} = '12'; 42 $rom{'XIII'} = '13'; 43 $rom{'XIV'} = '14'; 44 $rom{'XV'} = '15'; 45 $rom{'XVI'} = '16'; 46 $rom{'XVII'} = '17'; 47 $rom{'XVIII'} = '18'; 48 $rom{'XVIII'} = '19'; 49 $rom{'XVIII'} = '20'; 50 $ro = $rom{$ro}; 51 $annexe =~ s/t([IVX]+)([a-v].*)?$/t$ro\2/; 52 } 14 53 15 54 open(FILE, $file) ; -
cpc/trunk/project/config/doctrine/schema.yml
r1372 r1397 239 239 type: string(255) 240 240 legislature: integer 241 texteloi_id: string(1 2)241 texteloi_id: string(16) 242 242 numero: string(8) 243 243 rectif: integer … … 490 490 unique: false 491 491 columns: 492 texteloi_id: string(1 2)492 texteloi_id: string(16) 493 493 titre: string(16) 494 494 ordre: integer … … 518 518 Timestampable: 519 519 columns: 520 texteloi_id: string(1 2)520 texteloi_id: string(16) 521 521 article_loi_id: integer 522 522 numero: integer … … 542 542 Timestampable: 543 543 columns: 544 texteloi_id: string(1 2)544 texteloi_id: string(16) 545 545 chapitre: string(8) 546 546 section: string(8) … … 578 578 columns: 579 579 id: 580 type: string(1 2)580 type: string(16) 581 581 unique: true 582 582 legislature: integer … … 623 623 columns: 624 624 parlementaire_id: integer 625 texteloi_id: string(1 2)625 texteloi_id: string(16) 626 626 importance: integer 627 627 fonction: string(255)
Note: See TracChangeset
for help on using the changeset viewer.