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
I may have already opened this before, but I keep coming across it more and more often. There are lots of legal codes that have a preamble, or other notes that are not purely attached to structures, just random pages glued in with everything else. See Miami-Dade Part II or the SF Charter for examples.
In these cases, I'm inclined to:
add a flag for the section_number to mark it as not-an-identifier in the database
use this flag to determine if we should show the identifier as the heading of the row in the frontend display
make this field much bigger to allow more content than just a number
use that to generate the shortlink per the usual, after slugification
That's fascinating. I had no idea that was a thing. Do you have any sense as to how much content should be allowed? Is it elastic enough that we should go up to 255 characters, or perhaps even longer?
I honestly haven't done enough research to be sure. I would be on board for 255, and if anyone has anything longer than that they'll just have to create a custom case in their parser to do anything smarter than just simple truncation.
Activity
waldoj commentedon Mar 10, 2015
That's fascinating. I had no idea that was a thing. Do you have any sense as to how much content should be allowed? Is it elastic enough that we should go up to 255 characters, or perhaps even longer?
krusynth commentedon Mar 10, 2015
I honestly haven't done enough research to be sure. I would be on board for 255, and if anyone has anything longer than that they'll just have to create a custom case in their parser to do anything smarter than just simple truncation.
krusynth commentedon Mar 10, 2015
(Updated the AMLegal link because it doesn't work to copy and paste their URLs. Obvious comment redacted.)
krusynth commentedon Mar 10, 2015
Wordpress slugs are limited to 200 chars.
waldoj commentedon Mar 10, 2015
Huh. That's a weird length. I'm surprised they didn't just go for 255. I'm sure there's some reason.
[-]Sections without real Identifiers[/-][+]Support subsections that lack Identifiers[/+]Handle structures without identifiers. Fixes #574 openva/va-decoded#22
krusynth commentedon Mar 19, 2017
waldoj commentedon Mar 19, 2017
Makes sense to me!
Merge pull request #689 from statedecoded/issue-574