Changeset 1550


Ignore:
Timestamp:
Oct 3, 2010, 4:49:48 AM (10 years ago)
Author:
teymour
Message:

Inclusion des images dans le fichier de configuration afin de pouvoir y référencer autre chose que des circos
Pour réindexer : php symfony index:Solr --pages=yes

Location:
cpc/trunk/project
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php

    r1548 r1550  
    2626      return $this->getPartial('parlementaire/photoParlementaire', array('parlementaire'=>$obj, 'height'=>70));
    2727    case 'Commentaire':
    28       return '<img width="53" class="jstitle" title="'.$obj->getCitoyen()->getLogin().'" alt="'.$obj->getCitoyen()->getLogin().'" src="'.url_for('@photo_citoyen?slug='.$obj->getCitoyen()->getSlug()).'"/>';
     28      return '<img width="53" src="'.url_for('@photo_citoyen?slug='.$obj->getCitoyen()->getSlug()).'"/>';
    2929    case 'Citoyen':
    30       return '<img width="53" class="jstitle" title="'.$obj->getLogin().'" alt="'.$obj->getLogin().'" src="'.url_for('@photo_citoyen?slug='.$obj->getSlug()).'"/>';
     30      return '<img width="53" src="'.url_for('@photo_citoyen?slug='.$obj->getSlug()).'"/>';
    3131    case 'NonObjectPage':
    32       $dep = preg_replace('/^.*\/([^\/]+)$/', '\\1', $obj->getLink());
    33       $num = strtolower(Parlementaire::getNumeroDepartement(str_replace(' ', '_', $dep)));
    34       if (preg_match('/^\d$/', $num))
    35         $num = sprintf("%02d",$num);
    36       if (preg_match('/\d[a-z]/i', $num))
    37         $fixednum = '0'.$num;
    38       else $fixednum = sprintf('%03d',$num);
    39       return '<img width="53" class="jstitle" title="'.$dep.' ('.$num.')" alt="'.$dep.' ('.$num.')" src="'.url_for("@circo_image_png?circo=".$fixednum."&w=53&h=0").'"/>';
     32      return $obj->getImage();
    4033    }
    4134  }
  • cpc/trunk/project/config/solr/url.yml

    r1549 r1550  
    22  url: "/circonscription/departement/Ain"
    33  title: "Les députés de l'Ain (01)"
     4  image: "<img width='53' class='jstitle' title='Ain (01)' alt='Ain (01)' src='/circonscription/image/001/53/0'/>"
    45  weight: 10
    56url2:
    67  url: "/circonscription/departement/Aisne"
    78  title: "Les députés de l'Aisne (02)"
     9  image: "<img width='53' class='jstitle' title='Aisne (02)' alt='Aisne (02)' src='/circonscription/image/002/53/0'/>"
    810  weight: 10
    911url3:
    1012  url: "/circonscription/departement/Allier"
    1113  title: "Les députés de l'Allier (03)"
     14  image: "<img width='53' class='jstitle' title='Allier (03)' alt='Allier (03)' src='/circonscription/image/003/53/0'/>"
    1215  weight: 10
    1316url4:
    1417  url: "/circonscription/departement/Alpes-de-Haute-Provence"
    1518  title: "Les députés des Alpes-de-Haute-Provence (04)"
     19  image: "<img width='53' class='jstitle' title='Alpes-de-Haute-Provence (04)' alt='Alpes-de-Haute-Provence (04)' src='/circonscription/image/004/53/0'/>"
    1620  weight: 10
    1721url5:
    1822  url: "/circonscription/departement/Alpes-Maritimes"
    1923  title: "Les députés des Alpes-Maritimes (06)"
     24  image: "<img width='53' class='jstitle' title='Alpes-Maritimes (06)' alt='Alpes-Maritimes (06)' src='/circonscription/image/006/53/0'/>"
    2025  weight: 10
    2126url6:
    2227  url: "/circonscription/departement/Ardèche"
    2328  title: "Les députés de l'Ardèche (07)"
     29  image: "<img width='53' class='jstitle' title='Ardèche (07)' alt='Ardèche (07)' src='/circonscription/image/007/53/0'/>"
    2430  weight: 10
    2531url7:
    2632  url: "/circonscription/departement/Ardennes"
    2733  title: "Les députés des Ardennes (08)"
     34  image: "<img width='53' class='jstitle' title='Ardennes (08)' alt='Ardennes (08)' src='/circonscription/image/008/53/0'/>"
    2835  weight: 10
    2936url8:
    3037  url: "/circonscription/departement/Ariège"
    3138  title: "Les députés d'Ariège (09)"
     39  image: "<img width='53' class='jstitle' title='Ariège (09)' alt='Ariège (09)' src='/circonscription/image/009/53/0'/>"
    3240  weight: 10
    3341url9:
    3442  url: "/circonscription/departement/Aube"
    3543  title: "Les députés de l'Aube (10)"
     44  image: "<img width='53' class='jstitle' title='Aube (10)' alt='Aube (10)' src='/circonscription/image/010/53/0'/>"
    3645  weight: 10
    3746url10:
    3847  url: "/circonscription/departement/Aude"
    3948  title: "Les députés de l'Aude (11)"
     49  image: "<img width='53' class='jstitle' title='Aude (11)' alt='Aude (11)' src='/circonscription/image/011/53/0'/>"
    4050  weight: 10
    4151url11:
    4252  url: "/circonscription/departement/Aveyron"
    4353  title: "Les députés de l'Aveyron (12)"
     54  image: "<img width='53' class='jstitle' title='Aveyron (12)' alt='Aveyron (12)' src='/circonscription/image/012/53/0'/>"
    4455  weight: 10
    4556url12:
    4657  url: "/circonscription/departement/Bas-Rhin"
    4758  title: "Les députés du Bas-Rhin (67)"
     59  image: "<img width='53' class='jstitle' title='Bas-Rhin (67)' alt='Bas-Rhin (67)' src='/circonscription/image/067/53/0'/>"
    4860  weight: 10
    4961url13:
    5062  url: "/circonscription/departement/Bouches-du-Rhône"
    5163  title: "Les députés des Bouches-du-Rhône (13)"
     64  image: "<img width='53' class='jstitle' title='Bouches-du-Rhône (13)' alt='Bouches-du-Rhône (13)' src='/circonscription/image/013/53/0'/>"
    5265  weight: 10
    5366url14:
    5467  url: "/circonscription/departement/Calvados"
    5568  title: "Les députés du Calvados (14)"
     69  image: "<img width='53' class='jstitle' title='Calvados (14)' alt='Calvados (14)' src='/circonscription/image/014/53/0'/>"
    5670  weight: 10
    5771url15:
    5872  url: "/circonscription/departement/Cantal"
    5973  title: "Les députés du Cantal (15)"
     74  image: "<img width='53' class='jstitle' title='Cantal (15)' alt='Cantal (15)' src='/circonscription/image/015/53/0'/>"
    6075  weight: 10
    6176url16:
    6277  url: "/circonscription/departement/Charente"
    6378  title: "Les députés de Charente (16)"
     79  image: "<img width='53' class='jstitle' title='Charente (16)' alt='Charente (16)' src='/circonscription/image/016/53/0'/>"
    6480  weight: 10
    6581url17:
    6682  url: "/circonscription/departement/Charente-Maritime"
    6783  title: "Les députés de Charente-Maritime (17)"
     84  image: "<img width='53' class='jstitle' title='Charente-Maritime (17)' alt='Charente-Maritime (17)' src='/circonscription/image/017/53/0'/>"
    6885  weight: 10
    6986url18:
    7087  url: "/circonscription/departement/Cher"
    7188  title: "Les députés du Cher (18)"
     89  image: "<img width='53' class='jstitle' title='Cher (18)' alt='Cher (18)' src='/circonscription/image/018/53/0'/>"
    7290  weight: 10
    7391url19:
    7492  url: "/circonscription/departement/Corrèze"
    7593  title: "Les députés de Corrèze (19)"
     94  image: "<img width='53' class='jstitle' title='Corrèze (19)' alt='Corrèze (19)' src='/circonscription/image/019/53/0'/>"
    7695  weight: 10
    7796url20:
    7897  url: "/circonscription/departement/Corse-du-Sud"
    7998  title: "Les députés de Corse-du-Sud (2A)"
     99  image: "<img width='53' class='jstitle' title='Corse-du-Sud (2A)' alt='Corse-du-Sud (2A)' src='/circonscription/image/02a/53/0'/>"
    80100  weight: 10
    81101url21:
    82102  url: "/circonscription/departement/Côte-d'Or"
    83103  title: "Les députés de Côte-d'Or (21)"
     104  image: "<img width='53' class='jstitle' title='Côte-d'Or (21)' alt='Côte-d'Or (21)' src='/circonscription/image/021/53/0'/>"
    84105  weight: 10
    85106url22:
    86107  url: "/circonscription/departement/Côtes-d'Armor"
    87108  title: "Les députés des Côtes-d'Armor (22)"
     109  image: "<img width='53' class='jstitle' title='Côtes-d'Armor (22)' alt='Côtes-d'Armor (22)' src='/circonscription/image/022/53/0'/>"
    88110  weight: 10
    89111url23:
    90112  url: "/circonscription/departement/Creuse"
    91113  title: "Les députés de la Creuse (23)"
     114  image: "<img width='53' class='jstitle' title='Creuse (23)' alt='Creuse (23)' src='/circonscription/image/023/53/0'/>"
    92115  weight: 10
    93116url24:
    94117  url: "/circonscription/departement/Deux-Sèvres"
    95118  title: "Les députés des Deux-Sèvres (79)"
     119  image: "<img width='53' class='jstitle' title='Deux-Sèvres (79)' alt='Deux-Sèvres (79)' src='/circonscription/image/079/53/0'/>"
    96120  weight: 10
    97121url25:
    98122  url: "/circonscription/departement/Dordogne"
    99123  title: "Les députés de la Dordogne (24)"
     124  image: "<img width='53' class='jstitle' title='Dordogne (24)' alt='Dordogne (24)' src='/circonscription/image/024/53/0'/>"
    100125  weight: 10
    101126url26:
    102127  url: "/circonscription/departement/Doubs"
    103128  title: "Les députés du Doubs (25)"
     129  image: "<img width='53' class='jstitle' title='Doubs (25)' alt='Doubs (25)' src='/circonscription/image/025/53/0'/>"
    104130  weight: 10
    105131url27:
    106132  url: "/circonscription/departement/Drôme"
    107133  title: "Les députés de la Drôme (26)"
     134  image: "<img width='53' class='jstitle' title='Drôme (26)' alt='Drôme (26)' src='/circonscription/image/026/53/0'/>"
    108135  weight: 10
    109136url28:
    110137  url: "/circonscription/departement/Essonne"
    111138  title: "Les députés de l'Essonne (91)"
     139  image: "<img width='53' class='jstitle' title='Essonne (91)' alt='Essonne (91)' src='/circonscription/image/091/53/0'/>"
    112140  weight: 10
    113141url29:
    114142  url: "/circonscription/departement/Eure"
    115143  title: "Les députés de l'Eure (27)"
     144  image: "<img width='53' class='jstitle' title='Eure (27)' alt='Eure (27)' src='/circonscription/image/027/53/0'/>"
    116145  weight: 10
    117146url30:
    118147  url: "/circonscription/departement/Eure-et-Loir"
    119148  title: "Les députés d'Eure-et-Loir (28)"
     149  image: "<img width='53' class='jstitle' title='Eure-et-Loir (28)' alt='Eure-et-Loir (28)' src='/circonscription/image/028/53/0'/>"
    120150  weight: 10
    121151url31:
    122152  url: "/circonscription/departement/Finistère"
    123153  title: "Les députés du Finistère (29)"
     154  image: "<img width='53' class='jstitle' title='Finistère (29)' alt='Finistère (29)' src='/circonscription/image/029/53/0'/>"
    124155  weight: 10
    125156url32:
    126157  url: "/circonscription/departement/Gard"
    127158  title: "Les députés du Gard (30)"
     159  image: "<img width='53' class='jstitle' title='Gard (30)' alt='Gard (30)' src='/circonscription/image/030/53/0'/>"
    128160  weight: 10
    129161url33:
    130162  url: "/circonscription/departement/Gers"
    131163  title: "Les députés du Gers (32)"
     164  image: "<img width='53' class='jstitle' title='Gers (32)' alt='Gers (32)' src='/circonscription/image/032/53/0'/>"
    132165  weight: 10
    133166url34:
    134167  url: "/circonscription/departement/Gironde"
    135168  title: "Les députés de la Gironde (33)"
     169  image: "<img width='53' class='jstitle' title='Gironde (33)' alt='Gironde (33)' src='/circonscription/image/033/53/0'/>"
    136170  weight: 10
    137171url35:
    138172  url: "/circonscription/departement/Guadeloupe"
    139173  title: "Les députés de Guadeloupe (971)"
     174  image: "<img width='53' class='jstitle' title='Guadeloupe (971)' alt='Guadeloupe (971)' src='/circonscription/image/971/53/0'/>"
    140175  weight: 10
    141176url36:
    142177  url: "/circonscription/departement/Guyane"
    143178  title: "Les députés de Guyane (973)"
     179  image: "<img width='53' class='jstitle' title='Guyane (973)' alt='Guyane (973)' src='/circonscription/image/973/53/0'/>"
    144180  weight: 10
    145181url37:
    146182  url: "/circonscription/departement/Haut-Rhin"
    147183  title: "Les députés du Haut-Rhin (68)"
     184  image: "<img width='53' class='jstitle' title='Haut-Rhin (68)' alt='Haut-Rhin (68)' src='/circonscription/image/068/53/0'/>"
    148185  weight: 10
    149186url38:
    150187  url: "/circonscription/departement/Haute-Corse"
    151188  title: "Les députés de Haute-Corse (2B)"
     189  image: "<img width='53' class='jstitle' title='Haute-Corse (2B)' alt='Haute-Corse (2B)' src='/circonscription/image/02b/53/0'/>"
    152190  weight: 10
    153191url39:
    154192  url: "/circonscription/departement/Haute-Garonne"
    155193  title: "Les députés de la Haute-Garonne (31)"
     194  image: "<img width='53' class='jstitle' title='Haute-Garonne (31)' alt='Haute-Garonne (31)' src='/circonscription/image/031/53/0'/>"
    156195  weight: 10
    157196url40:
    158197  url: "/circonscription/departement/Haute-Loire"
    159198  title: "Les députés de la Haute-Loire (43)"
     199  image: "<img width='53' class='jstitle' title='Haute-Loire (43)' alt='Haute-Loire (43)' src='/circonscription/image/043/53/0'/>"
    160200  weight: 10
    161201url41:
    162202  url: "/circonscription/departement/Haute-Marne"
    163203  title: "Les députés de la Haute-Marne (52)"
     204  image: "<img width='53' class='jstitle' title='Haute-Marne (52)' alt='Haute-Marne (52)' src='/circonscription/image/052/53/0'/>"
    164205  weight: 10
    165206url42:
    166207  url: "/circonscription/departement/Haute-Saône"
    167208  title: "Les députés de la Haute-Saône (70)"
     209  image: "<img width='53' class='jstitle' title='Haute-Saône (70)' alt='Haute-Saône (70)' src='/circonscription/image/070/53/0'/>"
    168210  weight: 10
    169211url43:
    170212  url: "/circonscription/departement/Haute-Savoie"
    171213  title: "Les députés de Haute-Savoie (74)"
     214  image: "<img width='53' class='jstitle' title='Haute-Savoie (74)' alt='Haute-Savoie (74)' src='/circonscription/image/074/53/0'/>"
    172215  weight: 10
    173216url44:
    174217  url: "/circonscription/departement/Haute-Vienne"
    175218  title: "Les députés de la Haute-Vienne (87)"
     219  image: "<img width='53' class='jstitle' title='Haute-Vienne (87)' alt='Haute-Vienne (87)' src='/circonscription/image/087/53/0'/>"
    176220  weight: 10
    177221url45:
    178222  url: "/circonscription/departement/Hautes-Alpes"
    179223  title: "Les députés des Hautes-Alpes (05)"
     224  image: "<img width='53' class='jstitle' title='Hautes-Alpes (05)' alt='Hautes-Alpes (05)' src='/circonscription/image/005/53/0'/>"
    180225  weight: 10
    181226url46:
    182227  url: "/circonscription/departement/Hautes-Pyrénées"
    183228  title: "Les députés des Hautes-Pyrénées (65)"
     229  image: "<img width='53' class='jstitle' title='Hautes-Pyrénées (65)' alt='Hautes-Pyrénées (65)' src='/circonscription/image/065/53/0'/>"
    184230  weight: 10
    185231url47:
    186232  url: "/circonscription/departement/Hauts-de-Seine"
    187233  title: "Les députés des Hauts-de-Seine (92)"
     234  image: "<img width='53' class='jstitle' title='Hauts-de-Seine (92)' alt='Hauts-de-Seine (92)' src='/circonscription/image/092/53/0'/>"
    188235  weight: 10
    189236url48:
    190237  url: "/circonscription/departement/Hérault"
    191238  title: "Les députés de l'Hérault (34)"
     239  image: "<img width='53' class='jstitle' title='Hérault (34)' alt='Hérault (34)' src='/circonscription/image/034/53/0'/>"
    192240  weight: 10
    193241url49:
    194242  url: "/circonscription/departement/Ille-et-Vilaine"
    195243  title: "Les députés d'Ille-et-Vilaine (35)"
     244  image: "<img width='53' class='jstitle' title='Ille-et-Vilaine (35)' alt='Ille-et-Vilaine (35)' src='/circonscription/image/035/53/0'/>"
    196245  weight: 10
    197246url50:
    198247  url: "/circonscription/departement/Indre"
    199248  title: "Les députés de l'Indre (36)"
     249  image: "<img width='53' class='jstitle' title='Indre (36)' alt='Indre (36)' src='/circonscription/image/036/53/0'/>"
    200250  weight: 10
    201251url51:
    202252  url: "/circonscription/departement/Indre-et-Loire"
    203253  title: "Les députés de l'Indre-et-Loire (37)"
     254  image: "<img width='53' class='jstitle' title='Indre-et-Loire (37)' alt='Indre-et-Loire (37)' src='/circonscription/image/037/53/0'/>"
    204255  weight: 10
    205256url52:
    206257  url: "/circonscription/departement/Isère"
    207258  title: "Les députés de l'Isère (38)"
     259  image: "<img width='53' class='jstitle' title='Isère (38)' alt='Isère (38)' src='/circonscription/image/038/53/0'/>"
    208260  weight: 10
    209261url53:
    210262  url: "/circonscription/departement/Jura"
    211263  title: "Les députés du Jura (39)"
     264  image: "<img width='53' class='jstitle' title='Jura (39)' alt='Jura (39)' src='/circonscription/image/039/53/0'/>"
    212265  weight: 10
    213266url54:
    214267  url: "/circonscription/departement/Landes"
    215268  title: "Les députés des Landes (40)"
     269  image: "<img width='53' class='jstitle' title='Landes (40)' alt='Landes (40)' src='/circonscription/image/040/53/0'/>"
    216270  weight: 10
    217271url55:
    218272  url: "/circonscription/departement/Loir-et-Cher"
    219273  title: "Les députés du Loir-et-Cher (41)"
     274  image: "<img width='53' class='jstitle' title='Loir-et-Cher (41)' alt='Loir-et-Cher (41)' src='/circonscription/image/041/53/0'/>"
    220275  weight: 10
    221276url56:
    222277  url: "/circonscription/departement/Loire"
    223278  title: "Les députés de la Loire (42)"
     279  image: "<img width='53' class='jstitle' title='Loire (42)' alt='Loire (42)' src='/circonscription/image/042/53/0'/>"
    224280  weight: 10
    225281url57:
    226282  url: "/circonscription/departement/Loire-Atlantique"
    227283  title: "Les députés de Loire-Atlantique (44)"
     284  image: "<img width='53' class='jstitle' title='Loire-Atlantique (44)' alt='Loire-Atlantique (44)' src='/circonscription/image/044/53/0'/>"
    228285  weight: 10
    229286url58:
    230287  url: "/circonscription/departement/Loiret"
    231288  title: "Les députés du Loiret (45)"
     289  image: "<img width='53' class='jstitle' title='Loiret (45)' alt='Loiret (45)' src='/circonscription/image/045/53/0'/>"
    232290  weight: 10
    233291url59:
    234292  url: "/circonscription/departement/Lot"
    235293  title: "Les députés du Lot (46)"
     294  image: "<img width='53' class='jstitle' title='Lot (46)' alt='Lot (46)' src='/circonscription/image/046/53/0'/>"
    236295  weight: 10
    237296url60:
    238297  url: "/circonscription/departement/Lot-et-Garonne"
    239298  title: "Les députés du Lot-et-Garonne (47)"
     299  image: "<img width='53' class='jstitle' title='Lot-et-Garonne (47)' alt='Lot-et-Garonne (47)' src='/circonscription/image/047/53/0'/>"
    240300  weight: 10
    241301url61:
    242302  url: "/circonscription/departement/Lozère"
    243303  title: "Les députés de la Lozère (48)"
     304  image: "<img width='53' class='jstitle' title='Lozère (48)' alt='Lozère (48)' src='/circonscription/image/048/53/0'/>"
    244305  weight: 10
    245306url62:
    246307  url: "/circonscription/departement/Maine-et-Loire"
    247308  title: "Les députés du Maine-et-Loire (49)"
     309  image: "<img width='53' class='jstitle' title='Maine-et-Loire (49)' alt='Maine-et-Loire (49)' src='/circonscription/image/049/53/0'/>"
    248310  weight: 10
    249311url63:
    250312  url: "/circonscription/departement/Manche"
    251313  title: "Les députés de la Manche (50)"
     314  image: "<img width='53' class='jstitle' title='Manche (50)' alt='Manche (50)' src='/circonscription/image/050/53/0'/>"
    252315  weight: 10
    253316url64:
    254317  url: "/circonscription/departement/Marne"
    255318  title: "Les députés de la Marne (51)"
     319  image: "<img width='53' class='jstitle' title='Marne (51)' alt='Marne (51)' src='/circonscription/image/051/53/0'/>"
    256320  weight: 10
    257321url65:
    258322  url: "/circonscription/departement/Martinique"
    259323  title: "Les députés de Martinique (972)"
     324  image: "<img width='53' class='jstitle' title='Martinique (972)' alt='Martinique (972)' src='/circonscription/image/972/53/0'/>"
    260325  weight: 10
    261326url66:
    262327  url: "/circonscription/departement/Mayenne"
    263328  title: "Les députés de la Mayenne (53)"
     329  image: "<img width='53' class='jstitle' title='Mayenne (53)' alt='Mayenne (53)' src='/circonscription/image/053/53/0'/>"
    264330  weight: 10
    265331url67:
    266332  url: "/circonscription/departement/Mayotte"
    267333  title: "Les députés de Mayotte (976)"
     334  image: "<img width='53' class='jstitle' title='Mayotte (976)' alt='Mayotte (976)' src='/circonscription/image/976/53/0'/>"
    268335  weight: 10
    269336url68:
    270337  url: "/circonscription/departement/Meurthe-et-Moselle"
    271338  title: "Les députés de Meurthe-et-Moselle (54)"
     339  image: "<img width='53' class='jstitle' title='Meurthe-et-Moselle (54)' alt='Meurthe-et-Moselle (54)' src='/circonscription/image/054/53/0'/>"
    272340  weight: 10
    273341url69:
    274342  url: "/circonscription/departement/Meuse"
    275343  title: "Les députés de la Meuse (55)"
     344  image: "<img width='53' class='jstitle' title='Meuse (55)' alt='Meuse (55)' src='/circonscription/image/055/53/0'/>"
    276345  weight: 10
    277346url70:
    278347  url: "/circonscription/departement/Morbihan"
    279348  title: "Les députés du Morbihan (56)"
     349  image: "<img width='53' class='jstitle' title='Morbihan (56)' alt='Morbihan (56)' src='/circonscription/image/056/53/0'/>"
    280350  weight: 10
    281351url71:
    282352  url: "/circonscription/departement/Moselle"
    283353  title: "Les députés de la Moselle (57)"
     354  image: "<img width='53' class='jstitle' title='Moselle (57)' alt='Moselle (57)' src='/circonscription/image/057/53/0'/>"
    284355  weight: 10
    285356url72:
    286357  url: "/circonscription/departement/Nièvre"
    287358  title: "Les députés de la Nièvre (58)"
     359  image: "<img width='53' class='jstitle' title='Nièvre (58)' alt='Nièvre (58)' src='/circonscription/image/058/53/0'/>"
    288360  weight: 10
    289361url73:
    290362  url: "/circonscription/departement/Nord"
    291363  title: "Les députés du Nord (59)"
     364  image: "<img width='53' class='jstitle' title='Nord (59)' alt='Nord (59)' src='/circonscription/image/059/53/0'/>"
    292365  weight: 10
    293366url74:
    294367  url: "/circonscription/departement/Nouvelle-Calédonie"
    295368  title: "Les députés de la Nouvelle-Calédonie (988)"
     369  image: "<img width='53' class='jstitle' title='Nouvelle-Calédonie (988)' alt='Nouvelle-Calédonie (988)' src='/circonscription/image/988/53/0'/>"
    296370  weight: 10
    297371url75:
    298372  url: "/circonscription/departement/Oise"
    299373  title: "Les députés de l'Oise (60)"
     374  image: "<img width='53' class='jstitle' title='Oise (60)' alt='Oise (60)' src='/circonscription/image/060/53/0'/>"
    300375  weight: 10
    301376url76:
    302377  url: "/circonscription/departement/Orne"
    303378  title: "Les députés de l'Orne (61)"
     379  image: "<img width='53' class='jstitle' title='Orne (61)' alt='Orne (61)' src='/circonscription/image/061/53/0'/>"
    304380  weight: 10
    305381url77:
    306382  url: "/circonscription/departement/Paris"
    307383  title: "Les députés de Paris (75)"
     384  image: "<img width='53' class='jstitle' title='Paris (75)' alt='Paris (75)' src='/circonscription/image/075/53/0'/>"
    308385  weight: 10
    309386url78:
    310387  url: "/circonscription/departement/Pas-de-Calais"
    311388  title: "Les députés du Pas-de-Calais (62)"
     389  image: "<img width='53' class='jstitle' title='Pas-de-Calais (62)' alt='Pas-de-Calais (62)' src='/circonscription/image/062/53/0'/>"
    312390  weight: 10
    313391url79:
    314392  url: "/circonscription/departement/Polynésie_Française"
    315393  title: "Les députés de la Polynésie Française (987)"
     394  image: "<img width='53' class='jstitle' title='Polynésie Française (987)' alt='Polynésie Française (987)' src='/circonscription/image/987/53/0'/>"
    316395  weight: 10
    317396url80:
    318397  url: "/circonscription/departement/Puy-de-Dôme"
    319398  title: "Les députés du Puy-de-Dôme (63)"
     399  image: "<img width='53' class='jstitle' title='Puy-de-Dôme (63)' alt='Puy-de-Dôme (63)' src='/circonscription/image/063/53/0'/>"
    320400  weight: 10
    321401url81:
    322402  url: "/circonscription/departement/Pyrénées-Atlantiques"
    323403  title: "Les députés des Pyrénées-Atlantiques (64)"
     404  image: "<img width='53' class='jstitle' title='Pyrénées-Atlantiques (64)' alt='Pyrénées-Atlantiques (64)' src='/circonscription/image/064/53/0'/>"
    324405  weight: 10
    325406url82:
    326407  url: "/circonscription/departement/Pyrénées-Orientales"
    327408  title: "Les députés des Pyrénées-Orientales (66)"
     409  image: "<img width='53' class='jstitle' title='Pyrénées-Orientales (66)' alt='Pyrénées-Orientales (66)' src='/circonscription/image/066/53/0'/>"
    328410  weight: 10
    329411url83:
    330412  url: "/circonscription/departement/Réunion"
    331413  title: "Les députés de la Réunion (974)"
     414  image: "<img width='53' class='jstitle' title='Réunion (974)' alt='Réunion (974)' src='/circonscription/image/974/53/0'/>"
    332415  weight: 10
    333416url84:
    334417  url: "/circonscription/departement/Rhône"
    335418  title: "Les députés du Rhône (69)"
     419  image: "<img width='53' class='jstitle' title='Rhône (69)' alt='Rhône (69)' src='/circonscription/image/069/53/0'/>"
    336420  weight: 10
    337421url85:
    338422  url: "/circonscription/departement/Saint-Pierre-et-Miquelon"
    339423  title: "Les députés de Saint-Pierre-et-Miquelon (975)"
     424  image: "<img width='53' class='jstitle' title='Saint-Pierre-et-Miquelon (975)' alt='Saint-Pierre-et-Miquelon (975)' src='/circonscription/image/975/53/0'/>"
    340425  weight: 10
    341426url86:
    342427  url: "/circonscription/departement/Saône-et-Loire"
    343428  title: "Les députés de Saône-et-Loire (71)"
     429  image: "<img width='53' class='jstitle' title='Saône-et-Loire (71)' alt='Saône-et-Loire (71)' src='/circonscription/image/071/53/0'/>"
    344430  weight: 10
    345431url87:
    346432  url: "/circonscription/departement/Sarthe"
    347433  title: "Les députés de la Sarthe (72)"
     434  image: "<img width='53' class='jstitle' title='Sarthe (72)' alt='Sarthe (72)' src='/circonscription/image/072/53/0'/>"
    348435  weight: 10
    349436url88:
    350437  url: "/circonscription/departement/Savoie"
    351438  title: "Les députés de Savoie (73)"
     439  image: "<img width='53' class='jstitle' title='Savoie (73)' alt='Savoie (73)' src='/circonscription/image/073/53/0'/>"
    352440  weight: 10
    353441url89:
    354442  url: "/circonscription/departement/Seine-et-Marne"
    355443  title: "Les députés de Seine-et-Marne (77)"
     444  image: "<img width='53' class='jstitle' title='Seine-et-Marne (77)' alt='Seine-et-Marne (77)' src='/circonscription/image/077/53/0'/>"
    356445  weight: 10
    357446url90:
    358447  url: "/circonscription/departement/Seine-Maritime"
    359448  title: "Les députés de Seine-Maritime (76)"
     449  image: "<img width='53' class='jstitle' title='Seine-Maritime (76)' alt='Seine-Maritime (76)' src='/circonscription/image/076/53/0'/>"
    360450  weight: 10
    361451url91:
    362452  url: "/circonscription/departement/Seine-Saint-Denis"
    363453  title: "Les députés de Seine-Saint-Denis (93)"
     454  image: "<img width='53' class='jstitle' title='Seine-Saint-Denis (93)' alt='Seine-Saint-Denis (93)' src='/circonscription/image/093/53/0'/>"
    364455  weight: 10
    365456url92:
    366457  url: "/circonscription/departement/Somme"
    367458  title: "Les députés de la Somme (80)"
     459  image: "<img width='53' class='jstitle' title='Somme (80)' alt='Somme (80)' src='/circonscription/image/080/53/0'/>"
    368460  weight: 10
    369461url93:
    370462  url: "/circonscription/departement/Tarn"
    371463  title: "Les députés du Tarn (81)"
     464  image: "<img width='53' class='jstitle' title='Tarn (81)' alt='Tarn (81)' src='/circonscription/image/081/53/0'/>"
    372465  weight: 10
    373466url94:
    374467  url: "/circonscription/departement/Tarn-et-Garonne"
    375468  title: "Les députés du Tarn-et-Garonne (82)"
     469  image: "<img width='53' class='jstitle' title='Tarn-et-Garonne (82)' alt='Tarn-et-Garonne (82)' src='/circonscription/image/082/53/0'/>"
    376470  weight: 10
    377471url95:
    378472  url: "/circonscription/departement/Territoire-de-Belfort"
    379473  title: "Les députés du Territoire-de-Belfort (90)"
     474  image: "<img width='53' class='jstitle' title='Territoire-de-Belfort (90)' alt='Territoire-de-Belfort (90)' src='/circonscription/image/090/53/0'/>"
    380475  weight: 10
    381476url96:
    382477  url: "/circonscription/departement/Val-d'Oise"
    383478  title: "Les députés du Val-d'Oise (95)"
     479  image: "<img width='53' class='jstitle' title='Val-d'Oise (95)' alt='Val-d'Oise (95)' src='/circonscription/image/095/53/0'/>"
    384480  weight: 10
    385481url97:
    386482  url: "/circonscription/departement/Val-de-Marne"
    387483  title: "Les députés du Val-de-Marne (94)"
     484  image: "<img width='53' class='jstitle' title='Val-de-Marne (94)' alt='Val-de-Marne (94)' src='/circonscription/image/094/53/0'/>"
    388485  weight: 10
    389486url98:
    390487  url: "/circonscription/departement/Var"
    391488  title: "Les députés du Var (83)"
     489  image: "<img width='53' class='jstitle' title='Var (83)' alt='Var (83)' src='/circonscription/image/083/53/0'/>"
    392490  weight: 10
    393491url99:
    394492  url: "/circonscription/departement/Vaucluse"
    395493  title: "Les députés du Vaucluse (84)"
     494  image: "<img width='53' class='jstitle' title='Vaucluse (84)' alt='Vaucluse (84)' src='/circonscription/image/084/53/0'/>"
    396495  weight: 10
    397496url100:
    398497  url: "/circonscription/departement/Vendée"
    399498  title: "Les députés de Vendée (85)"
     499  image: "<img width='53' class='jstitle' title='Vendée (85)' alt='Vendée (85)' src='/circonscription/image/085/53/0'/>"
    400500  weight: 10
    401501url101:
    402502  url: "/circonscription/departement/Vienne"
    403503  title: "Les députés de la Vienne (86)"
     504  image: "<img width='53' class='jstitle' title='Vienne (86)' alt='Vienne (86)' src='/circonscription/image/086/53/0'/>"
    404505  weight: 10
    405506url102:
    406507  url: "/circonscription/departement/Vosges"
    407508  title: "Les députés des Vosges (88)"
     509  image: "<img width='53' class='jstitle' title='Vosges (88)' alt='Vosges (88)' src='/circonscription/image/088/53/0'/>"
    408510  weight: 10
    409511url103:
    410512  url: "/circonscription/departement/Wallis-et-Futuna"
    411513  title: "Les députés de Wallis-et-Futuna (986)"
     514  image: "<img width='53' class='jstitle' title='Wallis-et-Futuna (986)' alt='Wallis-et-Futuna (986)' src='/circonscription/image/986/53/0'/>"
    412515  weight: 10
    413516url104:
    414517  url: "/circonscription/departement/Yonne"
    415518  title: "Les députés de l'Yonne (89)"
     519  image: "<img width='53' class='jstitle' title='Yonne (89)' alt='Yonne (89)' src='/circonscription/image/089/53/0'/>"
    416520  weight: 10
    417521url105:
    418522  url: "/circonscription/departement/Yvelines"
    419523  title: "Les députés des Yvelines (78)"
    420   weight: 10
     524  image: "<img width='53' class='jstitle' title='Yvelines (78)' alt='Yvelines (78)' src='/circonscription/image/078/53/0'/>"
     525  weight: 10
  • cpc/trunk/project/lib/model/solr/NonObjectPage.class.php

    r1541 r1550  
    4242    return $this->getElement('personne');
    4343  }
     44
     45  public function getImage() {
     46    return $this->getElement('image');
     47  }
    4448}
  • cpc/trunk/project/lib/task/printCircosSolrTask.class.php

    r1549 r1550  
    77    $this->briefDescription = 'print url objets circonscriptions pour Solr';
    88    $this->addOption('env', null, sfCommandOption::PARAMETER_OPTIONAL, 'Changes the environment this task is run in', 'test');
    9     $this->addOption('app', null, sfCommandOption::PARAMETER_OPTIONAL, 'Changes the environment this task is run in', 'frontend');
     9    $this->addOption('application', null, sfCommandOption::PARAMETER_OPTIONAL, 'Changes the environment this task is run in', 'frontend');
    1010 }
    1111
     
    1717      echo "  url: \"/circonscription/departement/".str_replace(' ', '_', $dep)."\"\n";
    1818      echo "  title: \"Les députés ".$pref.(!preg_match("/'/", $pref) ? ' ' : '').$dep.' ('.Parlementaire::getNumeroDepartement($dep).')"'."\n";
     19      $num = Parlementaire::getNumeroDepartement($dep);
     20      if (preg_match('/^\d$/', $num))
     21        $num = sprintf("%02d",$num);
     22      if (preg_match('/\d[a-z]/i', $num))
     23        $fixednum = '0'.strtolower($num);
     24      else
     25        $fixednum = sprintf('%03d',$num);
     26      echo "  image: \"<img width='53' class='jstitle' title='".$dep." (".$num.")' alt='".$dep." (".$num.")' src='/circonscription/image/".$fixednum."/53/0'/>\"\n";
    1927      echo "  weight: 10\n";
    2028      $ct++;
Note: See TracChangeset for help on using the changeset viewer.