Census genCensuses.php - jcobban/Genealogy GitHub Wiki

Up: Census Implementation

Source Code

This script displays the top level of the hierarchy of information about censuses that are implemented by instances of class Census for a particular country. You get to this page from genCountry.php which is the page which displays a summary of available resources for a particular instance of Country.

Parameters (passed by method=get):

Name Description
cc ISO 3166-1 2-character country code. If this is omitted the information for Canada, code 'CA', is displayed.
lang IETF BCP 47 locale identifier including the language. The default is general English, code 'en'.

The information displayed and how it is displayed is controlled by a template which is selected based upon the two parameters and whether or not the user is signed on as a user who has permission to update the Censuses or is a casual visitor who can only search the database. An example is the display for an authorized user to the US censuses. The script looks for a template which matches both on country code and language. If there is no complete match it looks for an English template for the country. If there is still no match it selects the template "genCensuses__en.html".

Top Page of the US Census Hierarchy

The links from this page take you to more specific information. In particular the link "Update/Display Censuses Table" takes you to the top of the hierarchy of administration tools which is implemented by the script EditCensuses.php. Each of the other links takes you to the top page for viewing and transcribing information about a specific census, which is implemented by the script CensusUpdateStatus.php.

Next: getCitationForImageXml.php