First, I would like to say *THANK YOU* for such an awesome module; saves a significant amount of work from having to manually insert legislative records.
When importing data (California specific) it requires a "map_bill" table to be created and populated. Since MAP data is not public (as far as I'm aware), could an option be created to include/exclude MAP data from the import scheme?
Specifically, I'm looking at legislature/imports/ca/leginfo.inc which currently assumes MAP data is present and requires it for successful import of 2009-2010 CA data. It appears to be limited to the first db query in the function legislature_ca_move_bills() which includes a JOIN on a map_bill table and then db queries after the "*** map_bill data ***" comment near the end of the function.
Unfortunately I'm not a PHP/mysql writer (I can read it for the most part, just can't write it), otherwise I would do this myself and submit a patch for review. The import of CA data does not complete without this done (unless you've proper MAP data.)
Again, thanks for a fantastic module, much appreciated.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | California_Money_and_Politics_MAP_Import_Option.patch | 5.54 KB | howards |
Comments
Comment #1
howards commentedI've created a patch which will modify 'imports/ca/leginfo.inc' and 'legislature.module' to include a drop-down choice box for selecting the import of MAP (Money and Politics) data for California. It's a very simple addition of an option in the "California Legislatures Import" screen adding "Import MAP data?", thus California MAP code is ignored/processed depending on the answer. This patch was created against 2009-Dec-18 version.
BTW, I don't know how I could've screwed this up, but tell me if it's wrong.