Changeset 2462


Ignore:
Timestamp:
Nov 3, 2011, 10:18:19 PM (9 years ago)
Author:
komodo
Message:

remove also M. Mme en hémicycle et fixe didascalies missing...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/branches/senat/project/batch/hemicycle/parse_hemicycle.pl

    r2451 r2462  
    105105                $secondinter = '';
    106106                $secondinter = $1 if ($inter =~ s/ et (.*)//) ;
     107                $secondinter =~ s/^\s*M[mles]{0,3}[\.\s]+//;
    107108                $json  = '{"contexte": "'.quotize($context).'", "intervention": "'.quotize($intervention).'", "timestamp": "'.$timestamp.'", "date": "'.$date.'", "source": "'.$url_source.$source.'", "heure":"'.$heure.'", "intervenant": "'.name_lowerize($inter,1).'", "fonction": "'.$fonction.'", "intervenant_url": "'.$url_inter.'", "session":"'.$session.'"';
    108109                $json .= ', "numeros_loi":"'.$numeros_loi.'"' if ($numeros_loi && $context);
     
    175176                        $tmpinter = $1;
    176177                }
     178                $tmpinter =~ s/^\s*M[mles]{0,3}[\.\s]+//;
    177179                $tmpfonction = '';
    178180                $tmpurl_inter = '';
     
    211213        while (s/([^>]*)<(i|span class="info_entre_parentheses")>\(([^\)]*)\)?<\/(i|span)>([\.\s\)]*)//) {
    212214                $i = $1;
     215                $didasc = $3;
    213216                $i =~ s/<[^>]*>//g;
    214217                $i =~ s/\s+/ /g;
    215218                $intervention .= "<p>".$i."</p>";
    216                 $didasc = $3;
    217219                $didasc =~ s/<[^>]*>//gi;
    218220                $didasc =~ s/\)//g;
Note: See TracChangeset for help on using the changeset viewer.