Project

General

Profile

« Previous | Next » 

Revision f2e3c080

Added by Andreas Kohlbecker almost 4 years ago

ref #8543 moving name_relationship_footnote_markup() to footnotes.inc

View differences:

modules/cdm_dataportal/includes/name.inc
1568 1568
  return $render_array;
1569 1569
}
1570 1570

  
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 1571
/**
1596 1572
 * @param $nom_status
1597 1573
 * @return string

Also available in: Unified diff