Project

General

Profile

« Previous | Next » 

Revision f2e3c080

Added by Andreas Kohlbecker over 2 years ago

ref #8543 moving name_relationship_footnote_markup() to footnotes.inc

View differences:

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

  

Also available in: Unified diff