US Congress

Application Module that imports and manages Bills from the U.S. Library of Congress website as CCK nodes. It imports Representatives, Committees, Bills, and Bill Actions. It creates these CCK types when the module is installed, and imports this data on cron runs. It manages the automatic updating of this data as it changes.

It also implements an input filter called the "H.R." filter that looks for references to bills in the input text and converts these to links to the bill nodes. It recognizes several regular expressions, such as HR1234, H.R.1234, and even H.RES.1234 for Resolutions. The input filter must be enabled for the desired input format, presumably "Filtered HTML".

The administrator can control which user is the owner of the Bill nodes, what type of bills to download (Bills, Resolutions, Joint Resolutions, etc), and how much time to spend during each cron run. The module was built with Organic Groups in mind and works, as long as you apply patch #185376.

The data is retrieved from Thomas via two methods. The primary method is screen-scraping. The secondary method is by reading a document archive of XML files. The reason XML is the secondary method is that not all information is available via XML. However, this second method is important in that it does provide some additional information and it is the main indicator that something in the BIll has changed, and that the screen-scraping should be re-initiated.

This project is under development. It currently only supports U.S. House of Representative data, but as the name implies, the intention is to support the data from both houses of the U.S. Congress.

This module is partially supported by CivicActions.

3
Average: 3 (1 vote)

CVS Commits

  • cvsuid: 
    29191
    cvstag: 
    DRUPAL-5
    cvscomment: 
    remove author attribution (see http://www.youtube.com/watch?v=ZSFDm3UYkeE)
    cvscid: 
    106170

    commit #106170 by douggreen on DRUPAL-5 - remove author attribution (see http://www.youtube.com/watch?v=ZSFDm3UYkeE)

  • cvsuid: 
    29191
    cvstag: 
    DRUPAL-5
    cvscomment: 
    fix code style
    cvscid: 
    104272

    commit #104272 by douggreen on DRUPAL-5 - fix code style

  • cvsuid: 
    29191
    cvstag: 
    DRUPAL-5
    cvscomment: 
    fix importing duplicate billactions
    cvscid: 
    102593

    commit #102593 by douggreen on DRUPAL-5 - fix importing duplicate billactions

  • cvsuid: 
    29191
    cvstag: 
    DRUPAL-5
    cvscomment: 
    fix setting uscongressno on billaction import
    cvscid: 
    102536

    commit #102536 by douggreen on DRUPAL-5 - fix setting uscongressno on billaction import

  • cvsuid: 
    29191
    cvstag: 
    DRUPAL-5
    cvscomment: 
    use LEFT JOINs instead of INNER JOINs, and JOIN ON vid instead of nid and vid
    cvscid: 
    102416

    commit #102416 by douggreen on DRUPAL-5 - use LEFT JOINs instead of INNER JOINs, and JOIN ON vid instead of nid and vid