You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The get_structure_labels function assumes that every structure in the code will have the same label at the same depth; in practice, this is not the case. E.g., even a small subset of VA's code yields the following inconsistencies:
This function should be removed entirely since it's inconsistent, and the code that uses it rewritten to parse the structures of the current section instead.
A side effect of this problem is that as-written, the query for structure labels results in less labels than actually account for the full depth of the structure tree, making browsing inconsistent. (Structure pages do not have enough ancestors in the breadcrumbs.)
Argh, you're right, of course. When I put together that functionality, it was when both the official SGML and the official site reflected a simple title / chapter / section structure. I can't envision, at the moment, how many things are broken by this new reality. :-/
That PR should take care of the bulk of this – it only effects two places: the dictionary generation, and the calculation for the structure_unified view.
The American Legal parser should get a similar treatment at some point, but that's not a high priority right now.
Activity
krusynth commentedon Apr 16, 2017
A side effect of this problem is that as-written, the query for structure labels results in less labels than actually account for the full depth of the structure tree, making browsing inconsistent. (Structure pages do not have enough ancestors in the breadcrumbs.)
waldoj commentedon Apr 17, 2017
Argh, you're right, of course. When I put together that functionality, it was when both the official SGML and the official site reflected a simple title / chapter / section structure. I can't envision, at the moment, how many things are broken by this new reality. :-/
Remove get_structure_labels() function entirely. #703
Show the name of the structure level on thet structure page for clari…
krusynth commentedon Apr 17, 2017
That PR should take care of the bulk of this – it only effects two places: the dictionary generation, and the calculation for the
structure_unifiedview.The American Legal parser should get a similar treatment at some point, but that's not a high priority right now.