Revision 48468c67
Added by Andreas Kohlbecker over 4 years ago
modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
1975 | 1975 |
} |
1976 | 1976 |
|
1977 | 1977 |
// type designations |
1978 |
$type_designations_render_array = compose_type_designations($taxon_name->uuid, true);
|
|
1978 |
$type_designations_render_array = compose_type_designations($taxon_name->uuid, false);
|
|
1979 | 1979 |
$content = array_merge($content, $type_designations_render_array); |
1980 | 1980 |
// registrations |
1981 | 1981 |
$registrationDTOs= cdm_ws_fetch_all(CDM_WS_REGISTRATION_DTO, array('nameUuid' => $taxon_name_uuid)); |
modules/cdm_dataportal/theme/cdm_dataportal.name.theme | ||
---|---|---|
70 | 70 |
$type_designations = $variables['typeDesignations']; |
71 | 71 |
$enclosing_tag = $variables['enclosing_tag']; |
72 | 72 |
$element_tag = $variables['element_tag']; |
73 |
$link_to_specimen_page = $variables['link_to_specimen_page']; |
|
73 | 74 |
|
74 | 75 |
// need to add element to render path since type designations |
75 | 76 |
// need other name render template |
... | ... | |
173 | 174 |
if (isset($type_designation->typeSpecimen)) { |
174 | 175 |
$derivedUnitFacadeInstance = cdm_ws_get(CDM_WS_DERIVEDUNIT_FACADE, $type_designation->typeSpecimen->uuid); |
175 | 176 |
} |
177 |
|
|
176 | 178 |
if (isset($derivedUnitFacadeInstance)) { |
177 |
$out .= ': ' . $derivedUnitFacadeInstance->titleCache; // . ': ' . theme('cdm_specimen', array('specimenTypeDesignation' => $derivedUnitFacadeInstance)); |
|
179 |
$specimen_markup = $derivedUnitFacadeInstance->titleCache; |
|
180 |
if($link_to_specimen_page && isset($derivedUnitFacadeInstance->specimenLabel) && $derivedUnitFacadeInstance->specimenLabel){ |
|
181 |
$specimen_markup = str_replace($derivedUnitFacadeInstance->specimenLabel, l($derivedUnitFacadeInstance->specimenLabel, path_to_specimen($type_designation->typeSpecimen->uuid)), $specimen_markup); |
|
182 |
} |
|
183 |
$out .= ': <span class="' . html_class_attribute_ref($type_designation->typeSpecimen) . '">' |
|
184 |
. $specimen_markup |
|
185 |
. '</span>'; // . ': ' . theme('cdm_specimen', array('specimenTypeDesignation' => $derivedUnitFacadeInstance)); |
|
186 |
if(isset($derivedUnitFacadeInstance->preferredStableUri)){ |
|
187 |
$out .= ' ' . l($derivedUnitFacadeInstance->preferredStableUri, $derivedUnitFacadeInstance->preferredStableUri, array('absolute' => true)); |
|
188 |
} |
|
178 | 189 |
} |
179 | 190 |
|
180 | 191 |
// Footnotes for collection acronyms. |
modules/cdm_dataportal/theme/theme_registry.inc | ||
---|---|---|
90 | 90 |
'sources_as_content' => FALSE |
91 | 91 |
)), |
92 | 92 |
// Themes in cdm_dataportal.name.theme. |
93 |
'cdm_typedesignations' => array('variables' => array('typeDesignations' => array(), 'enclosing_tag' => 'ul', 'element_tag' => 'li')), |
|
93 |
'cdm_typedesignations' => array('variables' => array( |
|
94 |
'typeDesignations' => array(), |
|
95 |
'enclosing_tag' => 'ul', |
|
96 |
'element_tag' => 'li', |
|
97 |
'link_to_specimen_page' => true |
|
98 |
) |
|
99 |
), |
|
94 | 100 |
'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)), |
95 | 101 |
'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)), |
96 | 102 |
'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)), |
Also available in: Unified diff
ref #8440 specimen accession numbers link to specimen page