Revision f2e3c080
Added by Andreas Kohlbecker over 2 years ago
modules/cdm_dataportal/classes/renderhints.php | ||
---|---|---|
43 | 43 |
* The FootnoteListKey as set or the default FootnoteListKey ('PAGE_GLOBAL') |
44 | 44 |
*/ |
45 | 45 |
public static function getFootnoteListKey() { |
46 |
return self::$footnoteListKey ? self::$footnoteListKey : self::$footnoteListKeyDefault; |
|
46 |
if(self::$footnoteListKey){ |
|
47 |
return self::$footnoteListKey; |
|
48 |
} else { |
|
49 |
return self::$footnoteListKeyDefault; |
|
50 |
} |
|
47 | 51 |
} |
48 | 52 |
|
49 | 53 |
/** |
modules/cdm_dataportal/includes/footnotes.inc | ||
---|---|---|
272 | 272 |
} |
273 | 273 |
|
274 | 274 |
|
275 |
/** |
|
276 |
* @param $name_rel |
|
277 |
* @return string |
|
278 |
*/ |
|
279 |
function name_relationship_footnote_markup($name_rel) |
|
280 |
{ |
|
281 |
$footnote_markup = ''; |
|
282 |
$footnote_key_markup = ''; |
|
283 |
if (isset($name_rel->ruleConsidered) && $name_rel->ruleConsidered) { |
|
284 |
$footnote_markup = '<span class="rule_considered">' . $name_rel->ruleConsidered . '</span> '; |
|
285 |
} |
|
286 |
if (isset($name_rel->citation)) { |
|
287 |
$footnote_markup .= '<span class="reference">' . $name_rel->citation->titleCache . '</span>'; |
|
288 |
} |
|
289 |
if (isset($name_rel->citationMicroReference) && $name_rel->citationMicroReference) { |
|
290 |
$footnote_markup .= (isset($name_rel->citation) ? ':' : '') . ' <span class="reference_detail">' . $name_rel->citationMicroReference . '</span>'; |
|
291 |
} |
|
292 |
if ($footnote_markup) { |
|
293 |
$fnkey = FootnoteManager::addNewFootnote(RenderHints::getFootnoteListKey(), $footnote_markup); |
|
294 |
$footnote_key_markup = render_footnote_key($fnkey,',',TRUE); |
|
295 |
} |
|
296 |
return $footnote_key_markup; |
|
297 |
} |
|
298 |
|
modules/cdm_dataportal/includes/name.inc | ||
---|---|---|
1569 | 1569 |
} |
1570 | 1570 |
|
1571 | 1571 |
/** |
1572 |
* @param $name_rel |
|
1573 |
* @return string |
|
1574 |
*/ |
|
1575 |
function name_relationship_footnote_markup($name_rel) |
|
1576 |
{ |
|
1577 |
$footnote_markup = ''; |
|
1578 |
$footnote_key_markup = ''; |
|
1579 |
if (isset($name_rel->ruleConsidered) && $name_rel->ruleConsidered) { |
|
1580 |
$footnote_markup = '<span class="rule_considered">' . $name_rel->ruleConsidered . '</span> '; |
|
1581 |
} |
|
1582 |
if (isset($name_rel->citation)) { |
|
1583 |
$footnote_markup .= '<span class="reference">' . $name_rel->citation->titleCache . '</span>'; |
|
1584 |
} |
|
1585 |
if (isset($name_rel->citationMicroReference) && $name_rel->citationMicroReference) { |
|
1586 |
$footnote_markup .= (isset($name_rel->citation) ? ':' : '') . ' <span class="reference_detail">' . $name_rel->citationMicroReference . '</span>'; |
|
1587 |
} |
|
1588 |
if ($footnote_markup) { |
|
1589 |
$fnkey = FootnoteManager::addNewFootnote(RenderHints::getFootnoteListKey(), $footnote_markup); |
|
1590 |
$footnote_key_markup = render_footnote_key($fnkey,',',TRUE); |
|
1591 |
} |
|
1592 |
return $footnote_key_markup; |
|
1593 |
} |
|
1594 |
|
|
1595 |
/** |
|
1596 | 1572 |
* @param $nom_status |
1597 | 1573 |
* @return string |
1598 | 1574 |
*/ |
modules/cdm_dataportal/includes/pages.inc | ||
---|---|---|
694 | 694 |
// homotypic group and accepted taxon should have the same footnote key |
695 | 695 |
$referenceUri = ''; |
696 | 696 |
if ($add_accepted_taxon) { |
697 |
// remember the last part of the render path |
|
698 |
$synonymy_render_path = RenderHints::getRenderPath(); |
|
699 | 697 |
// set new render path for the accepted taxon so |
700 | 698 |
// it can be styled differently via the name render part definitions |
701 | 699 |
RenderHints::pushToRenderStack('accepted_taxon'); |
Also available in: Unified diff
ref #8543 moving name_relationship_footnote_markup() to footnotes.inc