$preview
$preview :
Preview.
Format a bibliographic resource for output.
$footnotePages :
Some styles require different templates and formatting of creator names for a citation in a footnote as opposed to a full bibliography.
Setting this to TRUE (set externally in CITEFORMAT) loads a different set of templates and settings for footnotes. The default FALSE is for full bibliography.
getStyle(mixed||string|int common, mixed||string|int types, mixed||string|int footnote) :
Transform the raw data from the XML file into usable arrays and load some data arrays
mixed||string|int | common | Array of global formatting data |
mixed||string|int | types | Array of style definitions for each resource type |
mixed||string|int | footnote | Array of style definitions for footnote creators |
map( template = FALSE) :
Map the $item array against the style array ($this->$type) for this resource type and produce a string ready to be formatted for bold, italics etc.
template | If called from CITEFORMAT, this is the array of template elements. Default is FALSE. |
For printing to the output medium.
formatNames(mixed||string|int creators, nameType, shortFootnote = FALSE) :
Format creator name lists (authors, editors, etc.)
mixed||string|int | creators | Multi-associative array of creator names e.g. this array might be of the primary authors: array([0] => array(['surname'] => 'Grimshaw', ['firstname'] => Mark, ['initials'] => 'N', ['prefix'] => ), [1] => array(['surname'] => 'Witt', ['firstname'] => Jan, ['initials'] => , ['prefix'] => 'de')) |
nameType | 'creator1', 'creator2' etc. |
|
shortFootnote | If TRUE, this is being used for just the primary creator names in a footnote style citation using Ibid, Idem, op cit. etc. Default is FALSE. |
Optional if $nameType == 'citation': formatted string of all creator names in the input array.
checkInitials(mixed||string|int creator, initialsStyle, firstNameInitial) :
Handle initials.
mixed||string|int | creator | Associative array of creator name e.g. array(['surname'] => 'Grimshaw', ['firstname'] => Mark, ['initials'] => 'M N G', ['prefix'] => )) Initials must be space-delimited. |
initialsStyle | ||
firstNameInitial |
Formatted string of initials.
formatTransTitle( pString, delimitLeft = FALSE, delimitRight = FALSE) :
Format a title of the original work from which a translation has been made. Anything enclosed in $delimitLeft...$delimitRight is to be left unchanged
pString | Raw title string. |
|
delimitLeft | Default is FALSE. |
|
delimitRight | Default is FALSE. |
formatPages( start, end = FALSE, citation = FALSE) :
Format pages.
$this->style['pageFormat']: 0 == 132-9 1 == 132-39 2 == 132-139
start | Page start. |
|
end | Page end. Default is FALSE. |
|
citation | If called from CITEFORMAT, this is the array of citation stylings. Default is FALSE. |
Pages.