Sounds like a good idea to split this into another pull request.  Chicago has categories on some legislation detail pages: i.e. 

http://chicago.legistar.com/LegislationDetail.aspx?ID=1425803&GUID=B393DA20-907F-4D5C-B537-CBDA50E7CEBC

Would be good to see if this 'index' code would work for both.