Project

General

Profile

« Previous | Next » 

Revision 6679207a

Added by Andreas Kohlbecker over 3 years ago

ref #9222 adapting dataportal and tests to single sourced classes

View differences:

modules/cdm_dataportal/includes/footnotes.inc
289 289
  if (isset($name_rel->ruleConsidered) && $name_rel->ruleConsidered) {
290 290
    $footnote_markup = '<span class="rule_considered">' . $name_rel->ruleConsidered . '</span> ';
291 291
  }
292
  if (isset($name_rel->citation)) {
293
    $footnote_markup .= '<span class="reference">' . $name_rel->citation->titleCache . '</span>';
292
  if (isset($name_rel->source->citation)) {
293
    $footnote_markup .= '<span class="reference">' . $name_rel->source->citation->titleCache . '</span>';
294 294
  }
295
  if (isset($name_rel->citationMicroReference) && $name_rel->citationMicroReference) {
296
    $footnote_markup .= (isset($name_rel->citation) ? ':' : '') . ' <span class="reference_detail">' . $name_rel->citationMicroReference . '</span>';
295
  if (isset($name_rel->source->citationMicroReference) && $name_rel->source->citationMicroReference) {
296
    $footnote_markup .= (isset($name_rel->source->citation) ? ':' : '') . ' <span class="reference_detail">' . $name_rel->source->citationMicroReference . '</span>';
297 297
  }
298 298
  if ($footnote_markup) {
299 299
    $fnkey = FootnoteManager::addNewFootnote(RenderHints::getFootnoteListKey(), $footnote_markup);
......
332 332
{
333 333
  $footnote_markup = '';
334 334
  $footnote_key_markup = '';
335
  if (isset($name->nomenclaturalReference) && $name->nomenclaturalReference) {
336
    $footnote_markup .= '<span class="reference">' . $name->nomenclaturalReference->titleCache . '</span>';
335
  if (isset($name->nomenclaturalSource->citation) && $name->nomenclaturalSource->citation) {
336
    $footnote_markup .= '<span class="reference">' . $name->nomenclaturalSource->citation->titleCache . '</span>';
337 337
  }
338
  if (isset($name->nomenclaturalMicroReference)) {
339
    $footnote_markup .= ($footnote_key_markup ? ':' : '') . '<span class="reference_detail">' . $name->nomenclaturalMicroReference . '</span>';
338
  if (isset($name->nomenclaturalSource->citationMicroReference)) {
339
    $footnote_markup .= ($footnote_key_markup ? ':' : '') . '<span class="reference_detail">' . $name->nomenclaturalSource->citationMicroReference . '</span>';
340 340
  }
341 341
  if ($footnote_markup) {
342 342
    $fnkey = FootnoteManager::addNewFootnote(RenderHints::getFootnoteListKey(), $footnote_markup);

Also available in: Unified diff