Census GetCitationForImageXml.php - jcobban/Genealogy GitHub Wiki

Up: Census Implementation

Source Code

Generate an XML document with information about the complete citation for a page identified by the URL of the image on the LAC web-site.

Parameters (passed by method=get):

Name Description
Image The URL of an census page image on the LAC web-site.

The information displayed looks like:

<?xml version='1.0' encoding='UTF-8'?>
<ident>
  <image>http://data2.collectionscanada.ca/e/e328/e008195647.jpg</image>
  <page>
    <pt_census>CA1881</pt_census>
    <pt_distid>159.0</pt_distid>
    <pt_sdid>B</pt_sdid>
    <pt_div>4</pt_div>
    <pt_sched>1</pt_sched>
    <pt_page>6</pt_page>
    <pt_population>25</pt_population>
    <pt_image>http://data2.collectionscanada.ca/e/e328/e008195647.jpg</pt_image>
    <pt_transcriber></pt_transcriber>
    <pt_proofreader></pt_proofreader>
  </page>
  <page>
    <pt_census>CA1881</pt_census>
    <pt_distid>159.0</pt_distid>
    <pt_sdid>B</pt_sdid>
    <pt_div>4</pt_div>
    <pt_sched>1</pt_sched>
    <pt_page>7</pt_page>
    <pt_population>25</pt_population>
    <pt_image>http://data2.collectionscanada.ca/e/e328/e008195647.jpg</pt_image>
    <pt_transcriber></pt_transcriber>
    <pt_proofreader></pt_proofreader>
  </page>
</ident>

Note that this example demonstrates that a single original image may contain more than one page.

Next: getCitationsForImageJSON.php

⚠️ **GitHub.com Fallback** ⚠️