| 1 |
<?php |
<?php |
| 2 |
// $Id: thomas.inc,v 1.4 2008/06/16 20:23:25 drumm Exp $ |
// $Id: thomas.inc,v 1.5 2008/06/17 01:11:51 drumm Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file Parse committees from Thomas, House, and Senate websites. |
* @file Parse committees from Thomas, House, and Senate websites. |
| 104 |
if ($position == 'Ranking') { |
if ($position == 'Ranking') { |
| 105 |
$position = 'Ranking Member'; |
$position = 'Ranking Member'; |
| 106 |
} |
} |
| 107 |
|
|
| 108 |
$after_main = TRUE; |
$after_main = TRUE; |
| 109 |
/* todo |
/* todo |
| 110 |
DBInsert(people_committees, |
DBInsert(people_committees, |
| 273 |
// (cause House took ages to update at the start of 2007). These committees |
// (cause House took ages to update at the start of 2007). These committees |
| 274 |
// are obsolete. |
// are obsolete. |
| 275 |
foreach (array_keys($committees) as $code) { |
foreach (array_keys($committees) as $code) { |
| 276 |
if (isset($committees[$code]['covered'])) { |
if (!isset($committees[$code]['covered'])) { |
| 277 |
next; |
if ($code{0} == 'h') { |
| 278 |
} |
$type = 'House'; |
| 279 |
if ($code{0} == 'h') { |
} |
| 280 |
$type = 'House'; |
else { |
| 281 |
} |
$type = 'Senate'; |
| 282 |
else { |
} |
| 283 |
$type = 'Senate'; |
$name = ''; |
| 284 |
} |
foreach (legislature_get_enabled_sessions('us') as $session) { |
| 285 |
$name = ''; |
if (!empty($committees[$code][$session]['thomas_name'])) { |
| 286 |
foreach (legislature_get_enabled_sessions('us') as $session) { |
$name = $committees[$code][$session]['thomas_name']; |
| 287 |
if (!empty($committees[$code][$session]['thomas_name'])) { |
} |
|
$name = $committees[$code][$session]['thomas_name']; |
|
| 288 |
} |
} |
| 289 |
|
$committees[$code]['display name'] = $type .' Committee on '. $name; |
| 290 |
} |
} |
|
$committees[$code]['display name'] = $type .' Committee on '. $name; |
|
| 291 |
} |
} |
| 292 |
|
|
| 293 |
// Save the committees |
// Save the committees |