/[drupal]/contributions/modules/legislature/imports/us/thomas.inc
ViewVC logotype

Diff of /contributions/modules/legislature/imports/us/thomas.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.5, Tue Jun 17 01:11:51 2008 UTC revision 1.6, Tue Jun 17 01:47:23 2008 UTC
# Line 1  Line 1 
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.
# Line 104  function legislature_us_thomas_committee Line 104  function legislature_us_thomas_committee
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,
# Line 272  function legislature_us_thomas_committee Line 273  function legislature_us_thomas_committee
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

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.2