-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested sections not appearing correctly. #15
Comments
34bacff gets these to show up at all, but there's definitely an issue with depth here. |
How does the originally imported XML represent this section? How about within |
The XML looks ok I think - I'm not sure exactly what's going on. Here's the file in question: https://gist.github.com/krues8dr/6934934 and here's the current state of affairs: http://dev.marylandcode.org/g95-22F/ between ii and iii it goes wonky. |
Yup, that XML is A-OK. So the next thing to figure out is whether this is a problem at the time of import or at the time of display. That is, is there an incorrect depth and/or parent/child relationship as stored in the database, or as interpreted by the PHP after the data is pulled out of the database? I'd start by comparing the XML to the two MySQL tables for a(2)(iii). If that's OK, then we can dive into the rendering step. |
I'll look there (gotta jump on a call first) - at first glance, I'm wondering if resetting the depth to 1 in |
It's possible that should be |
Hmm - something is definitely not right in there...
a2, a2i, a2ii, aiii, aiv. The "2" is being lost. Maybe I'm popping somewhere I shouldn't be... |
Sure, Virginia's what I would have built this against in the first place, so if it works against Virginia, it at least works against the original test corpus. (Sidenote: I really need to keep on hand a list of test sections—laws that are particularly nest-y, that have a mix of definitions scopes, that have a lot of citations in case law, etc.) |
@waldoj are you aware of any sections that have nesting that I can check? I think this still works... |
1-400 looks ok... |
Here's a decent one. |
Hmm, well that one is broken on the live site - should be |
Ah, yes—that's part of an existing issue that's related, explained most succinctly with this comment. It's actually a problem with Virginia's bulk data, although I have a theory of how to handle it. Anyhow, if your code a) doesn't make things worse and b) actually makes things a little better, than that seems awfully good to me. |
For instance section 3 here http://marylandcode.org/g95-22F/
The text was updated successfully, but these errors were encountered: