Created on: February 2, 2016.Author:mholmes and jtakeda
This module is part of the static site build process for MoEML.
It provides a variety of functions which are used in the conversion
of TEI XML to XHTML5 output.
These include both functions to construct standard parts of the
web page output, such as menus and footers, and utility functions
of various kinds.
Functions taking a $rootEl parameter would normally expect to receive
a TEI element, in the case of a page being created from a complete
TEI file; however, fragments such as people and bibl entries also
get their own pages, so in these cases the $rootEl might be a
person or a bibl element.
The hcmc:creatPrimarySourceToolbox function
creates the control panel toolbox for switching between various views in the primary source texts. Currently,
this is implemented only for the Stow and (as of May 2019 [i.e. v6.4]) the Mayoral Shows that contain blacklettering.
MDH added WILL10 to this, but that may be temporary.The source document, which must be a TEI root document.0 or 1 unordered lists that contain the primary source toolbox.
The hcmc:usesBlackletter function
checks whether or not a document contains (and uses) a blackletter rendition. It expects a TEI document
and returns a boolean value; note that this function does not determine what kind of document this is
(i.e. a Stow doc vs a mayoral pageant vs a born digital).The source document, which should be a TEI doc.A boolean value denoting whether or not a document uses black letter.hcmc:getChainedCategoryCaption
is passed a TEI category element, and it builds a sequential caption based on the ancestor
categories, to provide a full descriptor for the category incorporating its ancestry.The category for which a caption is required.A string with the sequence of captions (from @n attributes) delimited by colons.Sequence is:
COMMENT THIS PART OUT
We only retrieve alternate spellings in the case of location files.
The document lists they link to should be pulled into this document
in the appendix.
|
<!DOCTYPE html>
Redirect page
This page does not exist. Redirecting to current URL.
<!DOCTYPE html>
Redirect page
This page does not exist. Redirecting to current URL.
hcmc:getAttValFromOdd could not find a specification for:
Element:
Attribute Name:
Attribute Value:
Return null.