Revision dcf17487
Added by Andreas Kohlbecker over 9 years ago
7.x/modules/cdm_dataportal/theme/cdm_dataportal.references.theme | ||
---|---|---|
149 | 149 |
'microReference' => $source->citationMicroReference, |
150 | 150 |
'doLink' => $doLink, |
151 | 151 |
)); |
152 |
|
|
153 |
$name_in_source = ''; |
|
152 | 154 |
if (isset($source->nameUsedInSource)) { |
153 |
$nameInSource = theme('cdm_taxonName', array(
|
|
155 |
$name_in_source = theme('cdm_taxonName', array(
|
|
154 | 156 |
'taxonName' => $source->nameUsedInSource |
155 | 157 |
)); |
156 |
$out .= ' <span class="nameUsedInSource">(' . t('as') . ' ' . $nameInSource . ')</span>'; |
|
158 |
} else if (isset($source->originalNameString) && !empty($source->originalNameString)) { |
|
159 |
// the name used in source can not be expressed as valid taxon name, |
|
160 |
// so the editor has chosen to put the freetext name into ReferencedEntityBase.originalNameString |
|
161 |
// field |
|
162 |
// using the originalNameString as key to avoid duplicate entries |
|
163 |
$name_in_source = $source->originalNameString; |
|
164 |
} |
|
165 |
if($name_in_source) { |
|
166 |
$out .= ' <span class="nameUsedInSource">(' . t('as') . ' ' . $name_in_source . ')</span>'; |
|
157 | 167 |
} |
158 | 168 |
|
159 | 169 |
$id_with_namespace = ''; |
Also available in: Unified diff
fixing #3704 (show name in source for Distributions) for all cases (nameUsedInSource & originalNameString) as well for all settings options: sorted and unsorted distributions with or without bibliography block