Skip to content

TopLevel DisplayImage.php

James Cobban edited this page Jun 17, 2020 · 3 revisions

Up: Top Level Implementation

Source Code

This script displays an image of an original source document with the ability to zoom in and out and scrollt.

When invoked by method='get' the parameters are:

parameter description
'src' the URL of the image of the original document or the relative file name from the document root of the site. For example: /Images/B1915/r264_0113.jpg
'fldname' if this dialog is invoked from a transcription dialog, so that the user can copy information from the image into the transcription, this parameter identifies the name attribute of the field in the transcription dialog into which the URL of the image is to be copied if it is changed.
'lang' the language selection

This script is normally invoked from a dialog which displays a transcription of an original document. This includes censuses and vital statistics. For example the following is displayed for an Ontario birth registration:

Birth Registration Image

Note the left and right arrows on the header. These permit moving backwards and forward through the set of images of which this is a part. Doing this updates the link to the image in the invoking transcription dialog. The buttons labelled "+" and "-" are used to zoom in or out. The close button closes the dialog so that it no longer overlays part of the invoking dialog. You can move around in the image by using the scroll bars, or the scroll button on the mouse.

However it is not always possible to invoke this dialog to view images of original documents because many of the sites which provide access to those images require that you use their viewer.

Next: displayPage.js

Clone this wiki locally