- The items datbase table was based on the original one used for the web site, but some of the field names had been modified. Updating the script to reference the correct field names was fairly painless.
- The items database table contains goals from multiple goals documents. I modified the various SQL statements to only pull from Benchmarks.
- The original table contained a field with the URL of the chapter+section+grade range. The new table did not. It would have been fairly trivial to add this information to the table, but EK seemed reluctant and upon further review I decided it would not require too much effort to modify the script to dynamically generate the URL.
- I updated the free text search to use MySQL's built-in full text search option rather than the rather crude text search I had developed so many years ago.
Once I started working on modifying the code I realized it would require more work than anticipated. The original page anchors were based on the section titles, which would have been fine but often were shortened or had different capitalization. I decided a better approach than trying to figure out each section anchor I would modify the anchors to use letter instead of the title. It took a while to make the change, but probably less time overall because it simplified the programming requirement.
The major drawback to this approach is that it will break any outside links to Benchmarks that rely on the page anchors. I have a solution in mind: use JavaScript to check for an anchor and, if one is found, see if it matches one of the old anchors used. The browser can then be redirected to the appropriate anchor. Should be easy enough to code, though I haven't decided if I'm going to go ahead do so.