Skip to content
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

Sections not linkable in PMD section #32

Open
fgregg opened this issue Aug 1, 2016 · 2 comments
Open

Sections not linkable in PMD section #32

fgregg opened this issue Aug 1, 2016 · 2 comments

Comments

@fgregg
Copy link

fgregg commented Aug 1, 2016

I'd like to link to 17-6-0403, but I can't. The only section that is linkable is https://chicagocode.org/17-6-0400/

@krusynth
Copy link
Contributor

krusynth commented Aug 1, 2016

This is an artifact of the codification process, I'm not sure that we will be able to provide a quick fix for this. If you have a look at the American Legal version, it suffers from the same problem:

http://library.amlegal.com/nxt/gateway.dll/Illinois/chicago_il/title17chicagozoningordinance/chapter17-6specialpurposedistricts?f=templates$fn=default.htm$3.0$vid=amlegal:chicago_il$anc=JD_17-6-0403

However, we do preserve the deep-link identifiers, so with a bit of work you can use the full url:

https://chicagocode.org/17-6-0400/#JD_17-6-0403

I've had quite a few ideas on how to make this work better (e.g., punting to search if we can't match something that's obviously an identifier), but simply haven't had time to work on this - it also only effects a few cities, like Chicago.

@waldoj FYSA

@waldoj
Copy link
Contributor

waldoj commented Aug 1, 2016

@krues8dr, lLooking at the XML, it appears that no section prefix has been identified for each section. That's very do-able with XSLT, or really any hook in your import process—hack off the first ~15 characters, see if it contains a regex-matched substring, if so then make it the prefix. Presumably you're already doing something like this, given the mysterious <DESTINATION> tag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants