Next / Previous / Contents / TCC Help System / NM Tech homepage

Abstract

Describes a program that indexes bird photos using Web pages.

This publication is available in Web form and also as a PDF document. Please forward any comments to tcc-doc@nmt.edu.

Table of Contents

1. Introduction
2. Definitions
2.1. Ancestor
2.2. Contained in
2.3. Descendant
2.4. Referred to
2.5. Inverted English name
3. Operation of the catweb script
3.1. The index page
3.2. The form page
4. XHTML output
4.1. XHTML design considerations
4.2. XHTML for the index page
4.3. XHTML for the form page
5. Styling with CSS
6. Analysis notes
7. Design notes
8. Code prologue
8.1. Module imports
9. Manifest constants
9.1. BIRD_IMAGE_CATALOG
9.2. CSS_STYLESHEET: Stylesheet name
9.3. CSS_HEAD_PREFIX
9.4. CSS_NAME_LINE
9.5. CSS_GENUS
9.6. CSS_IDENT
9.7. CSS_CAT_NO
9.8. CSS_CAT_INFO
9.9. ALIGN_LEFT
9.10. ALIGN_CENTER
9.11. ALIGN_RIGHT
9.12. VALIGN_TOP
9.13. THUMB_URL
9.14. FORM_SUBDIR: Form subdirectory name
9.15. FULL_FRAME_MM2: Full frame size for 35mm
9.16. TIMES
9.17. INDEX_PAGE: Name of the index page
9.18. MM_PER_IN: Conversion factor
10. The main program
10.1. addArchive(): Process one archive's worth of catalog entries
10.2. addArchImage(): Add all forms for one image
10.3. buildWeb(): Build all Web pages
10.4. webPage(): Create an empty XHTML page
11. class TaxonPhotoSet: The taxonomic tree node
11.1. TaxonPhotoSet.__init__(): Constructor
11.2. TaxonPhotoSet.addArchImage(): Add one photo
11.3. TaxonPhotoSet._addReferred(): Basis case
11.4. TaxonPhotoSet._addContained(): Recursive case
11.5. TaxonPhotoSet.walk(): Walk the tree
11.6. TaxonPhotoSet.nForms(): Number of contained forms
11.7. TaxonPhotoSet.genForms(): Generate referred FormPhotoSet objects
11.8. TaxonPhotoSet.buildPage(): Construct XHTML
11.9. TaxonPhotoSet._buildSingleForm(): The taxon has only one form
11.10. TaxonPhotoSet._webName(): Fill in scientific and English names
11.11. TaxonPhotoSet._buildMultiForms(): The taxon has multiple forms
11.12. TaxonPhotoSet._buildFormLine(): Build one form link and form page
12. class FormPhotoSet: All photos for one name
12.1. FormPhotoSet.__init__(): Constructor
12.2. FormPhotoSet.addArchImage(): Add one photo
12.3. FormPhotoSet.genArchImages(): Generate contained photos
12.4. FormPhotoSet.pathName(): Form page relative path name
12.5. FormPhotoSet.buildPage(): Build the XHTML page for one form
12.6. formSet._buildTable(): Build the image table
12.7. formSet._addRow(): Generate one row of the table
12.8. FormPhotoSet._addThumbnail(): Add the thumbnail cell
12.9. FormPhotoSet._addSize(): Add the size cell
12.10. FormPhotoSet._addData(): Add the cataloging data cell
13. Epilogue
14. Defect statistics
14.1. Syntax errors
14.2. Strong typing errors
14.3. Logic errors