Revision 99a137ea
Added by Andreas Kohlbecker about 3 years ago
modules/cdm_dataportal/classes/DerivationTreeComposer.php | ||
---|---|---|
193 | 193 |
* @return string |
194 | 194 |
*/ |
195 | 195 |
function derived_units_tree_node_header($sob_dto) { |
196 |
$link = cdm_internal_link(path_to_specimen($sob_dto->uuid), null); |
|
197 |
$link_markup = '<span class="page-link">' . $link . '</span>'; |
|
196 |
$link = ''; |
|
198 | 197 |
$focused_attribute = ''; |
199 |
if(is_uuid($this->getFocusedUnitUuid()) & $sob_dto->uuid == $this->getFocusedUnitUuid()){ |
|
198 |
$hover_effect_attribute = ''; |
|
199 |
if(is_uuid($this->getFocusedUnitUuid()) & $sob_dto->uuid == $this->getFocusedUnitUuid()) { |
|
200 | 200 |
$focused_attribute = " focused_item"; |
201 |
$link_markup = ''; |
|
201 |
} else { |
|
202 |
$link = cdm_internal_link(path_to_specimen($sob_dto->uuid), NULL); |
|
202 | 203 |
} |
203 |
return '<div class="unit-header ' . $focused_attribute .'"><div class="unit-label">' . $sob_dto->label . $link_markup . '</div></div>'; |
|
204 |
if($this->isWithDetails()){ |
|
205 |
$hover_effect_attribute = ' unit-label-hover-effect'; |
|
206 |
} |
|
207 |
$icon_link_markup = ''; |
|
208 |
if($link) { |
|
209 |
$icon_link_markup = '<span class="page-link">' . $link . '</span>'; |
|
210 |
} |
|
211 |
return '<div class="unit-header ' . $focused_attribute .'"><div class="unit-label' . $hover_effect_attribute .' ">' . $sob_dto->label . $icon_link_markup . '</div></div>'; |
|
204 | 212 |
} |
205 | 213 |
|
206 | 214 |
} |
Also available in: Unified diff
ref #6866 no hover effect of derivate tree headers on specimen page