christopherritter/sea-contract-decoded — pull request #1 by waldoj (2013-07-02 15:04:48+00:00)
Title: Configure The State Decoded for this contract

The problem appears to be that `includes/config.inc.php` just hadn't been configured for this contract. (Or, at least, that's the major problem that I encountered. :) I set the options there, and then updated `.htaccess` with the same regular expression, and everything works fine!

So, this are your steps:

1. Download this repository and overwrite `C:\wamp\www\statedecoded\` with it.
1. Make sure that you have a MySQL database named `statedecoded`.
1. If your `statedecoded` database isn't populated with tables, load `C:\wamp\www\statedecoded\statedecoded.sql` into it. In Linux this is done with `mysql -u root -p statedecoded < statedecoded.sql`; I'm afraid that I don't know how it works in Windows.
1. Set up a quick `editions` record (not applicable to a contract, but I'm afraid it's required) in the database, like such: `INSERT INTO editions SET year=2013;`.
1. Load [http://localhost:80/admin/parser.php](http://localhost:80/admin/parser.php) in your browser (or whatever URL and port you have set up for WAMP) and hit the "Parse" button.
1. You're done! Load the site (e.g., [http://localhost:80/](http://localhost:80/admin/parser.php)) and everything should work.

If you need to make changes and re-parse, no problem—just load [http://localhost:80/admin/parser.php](http://localhost:80/admin/parser.php) again, hit "Empty the DB," go back to the parser page again, and then press "Parse." Repeat as necessary. :)

The only problem I'm seeing is that your XML files contain a whole bunch of sections, rather than having one XML file per section. The result is that, when opening a given article, only one section appears, despite there being a dozen or so. When selecting that one section, it appears, and then all of the remaining ones show up below it. So you'll probably want to atomize your XML more before importing it.