Census QueryDetail.php - jcobban/Genealogy GitHub Wiki

Up: Census Implementation

Source Code

This script displays a form for requesting a query of the Census database.

Parameters (passed by method=get):

Name Description
Census Census identifier. Key of instance of class Census. Usually a 2 character country code plus 4 digit year of enumeration.
Province 2 letter province code whose options depend upon the census. If omitted for a pre-confederation census the default of 'CW' for Canada West/Upper Canada is implied.

This script uses a template 'Query$cc$censusyear$lang.html' which supports customizing the query for each supported census. Each of these forms invokes CensusResponse.php to generate the response. The popup help text for all possible fields in all supported censuses is consolidated in a template 'CensusQueryPopups$lang.html'

Next: QuerySurnames.php