getPrisonerSection() now works but execution of xpath takes a very long time, so it is set only to work on #1 prisoner for now.
Updated code style.
Added prisoner type section divs to list.html to provide structure to list.
REFACTOR: Cleaned up code a lot.
Successfully getting an array of all prisoner sections, organized into subarrays according to prisoner type.
Outputting names of prisoners (unclean).
Added prisoner type to CSV.
Outputs cleaned name to csv.
Gets date and type of date for each prisoner; need to add pretrial detention date type.
Outputs dates and date types correctly with one exception.
Remove <a> tags from date.
Getting prisoner charges (gets too much).
Added removePageRelatedTags function to remove useless PDF-page related tags.
Switched to using gsub! function to simplify checking for an error.
Switched to using gsub! function to simplify checking for an error.
Created new file prisonerSection.rb containing a PrisonerSection class and required it from parser.rb.
Added ID field to Prisoner Section class.
Added name field to PrisonerSection.
Transferred clean name and set name functions to PrisonerSection object.
Created @dateType field in PrisonerSection.