Revision d4ea0dd9
Added by Andreas Kohlbecker over 5 years ago
modules/cdm_dataportal/cdm_dataportal.module | ||
---|---|---|
1789 | 1789 |
* The node page shows the taxon name title and the list of taxon related |
1790 | 1790 |
* with such taxon. Name on the tree already in use. |
1791 | 1791 |
* |
1792 |
* @param UUID $taxon_name_uuid
|
|
1792 |
* @param string $taxon_name_uuid
|
|
1793 | 1793 |
* The uuid of the CDM TaxonName to show a name page for |
1794 |
* @param UUID $taxon_to_hide_uuid
|
|
1794 |
* @param string $taxon_to_hide_uuid
|
|
1795 | 1795 |
* A taxon which should not be displayed in the taxon list |
1796 |
* @param UUID $highlite_synonym_uuid
|
|
1796 |
* @param string $highlite_synonym_uuid
|
|
1797 | 1797 |
* Optinal parameter wich takes another taxon uuid, if given the |
1798 | 1798 |
* target taxon pages will show the syonymy tab where the taxon |
1799 | 1799 |
* refenrenced by the $highlite_synonym_uuid will be highlighted |
... | ... | |
1829 | 1829 |
* name page. |
1830 | 1830 |
* |
1831 | 1831 |
* |
1832 |
* @param UUID $taxon_name_uuid
|
|
1832 |
* @param string $taxon_name_uuid
|
|
1833 | 1833 |
* The uuid of the CDM TaxonName to show a name page for |
1834 |
* @param UUID $taxon_to_hide_uuid
|
|
1834 |
* @param string $taxon_to_hide_uuid
|
|
1835 | 1835 |
* A taxon which should not be displayed in the taxon list |
1836 |
* @param UUID $highlite_synonym_uuid
|
|
1836 |
* @param string $highlite_synonym_uuid
|
|
1837 | 1837 |
* Optinal parameter wich takes another taxon uuid, if given the |
1838 | 1838 |
* target taxon pages will show the syonymy tab where the taxon |
1839 | 1839 |
* refenrenced by the $highlite_synonym_uuid will be highlighted |
... | ... | |
1933 | 1933 |
|
1934 | 1934 |
$render_array = compose_registation_dto($registration_dto); |
1935 | 1935 |
|
1936 |
if($registration_dto->nameRef){ |
|
1937 |
$name_relations = cdm_ws_fetch_all(str_replace("$0", $registration_dto->nameRef->uuid, CDM_WS_PORTAL_NAME_NAME_RELATIONS)); |
|
1938 |
$render_array['name_relations'] = markup_to_render_array(render_name_relationships_of($name_relations, $registration_dto->nameRef->uuid, null)); |
|
1939 |
} |
|
1940 |
|
|
1936 | 1941 |
if(is_object($registration_dto->orderdTypeDesignationWorkingSets)){ |
1937 | 1942 |
$field_unit_uuids = array(); |
1938 | 1943 |
foreach((array)$registration_dto->orderdTypeDesignationWorkingSets as $field_unit_ref => $obj){ |
... | ... | |
2303 | 2308 |
* The uuid as string of the CDM TaxonName to show a name page for |
2304 | 2309 |
* @param string $taxon_to_hide_uuid |
2305 | 2310 |
* The uuid as string of a taxon which should not be displayed in the taxon list |
2306 |
* @param string $highlite_synonym_uuid |
|
2311 |
* @param string $highlited_synonym_uuid
|
|
2307 | 2312 |
* Optional parameter which takes another taxon uuid, if given the |
2308 | 2313 |
* target taxon pages will show the synonymy tab where the taxon |
2309 | 2314 |
* referenced by the $highlite_synonym_uuid will be highlighted |
... | ... | |
2312 | 2317 |
* @return string |
2313 | 2318 |
* URI path element as string |
2314 | 2319 |
*/ |
2315 |
function path_to_name($name_uuid, $taxon_to_hide_uuid = NULL, $synonym_uuid = NULL) { |
|
2320 |
function path_to_name($name_uuid, $taxon_to_hide_uuid = NULL, $highlited_synonym_uuid = NULL) {
|
|
2316 | 2321 |
$res = FALSE; |
2317 | 2322 |
if ($name_uuid) { |
2318 | 2323 |
$res = 'cdm_dataportal/name/' . $name_uuid; |
2319 | 2324 |
} |
2320 | 2325 |
if($taxon_to_hide_uuid){ |
2321 | 2326 |
$res .= '/' . $taxon_to_hide_uuid; |
2322 |
if($synonym_uuid){ |
|
2323 |
$res .= '/' . $synonym_uuid; |
|
2327 |
if($highlited_synonym_uuid){
|
|
2328 |
$res .= '/' . $highlited_synonym_uuid;
|
|
2324 | 2329 |
} |
2325 | 2330 |
} |
2326 | 2331 |
return $res; |
Also available in: Unified diff
ref #7884 ref #7890 refactoring of name relations rendering and using name rels in the registration page