Revision 621f2ae0
Added by Andreas Kohlbecker over 5 years ago
- ID 621f2ae05d9a5b8b767e91e0afc9c4da0b7d7462
- Parent 79f9e857
modules/cdm_dataportal/theme/cdm_dataportal.page.theme | ||
---|---|---|
430 | 430 |
*/ |
431 | 431 |
function compose_cdm_reference_page($uuid) { |
432 | 432 |
|
433 |
$out = ''; |
|
434 | 433 |
$reference = cdm_ws_get(CDM_WS_REFERENCE, $uuid); |
435 | 434 |
if (isset($reference->titleCache)) { |
436 | 435 |
drupal_set_title($reference->titleCache, PASS_THROUGH); |
... | ... | |
596 | 595 |
if($registration_working_set && count($registration_working_set->registrationDTOs) > 0){ |
597 | 596 |
$out .= "<h3>Nomenclatural acts:</h3><div class=\"cdm-item-list\">"; |
598 | 597 |
foreach($registration_working_set->registrationDTOs as $registration_dto){ |
599 |
$registration_render_a = compose_registation_dto($registration_dto, false, true); |
|
600 |
$registration_render_a["#prefix"] = "<div class=\"item\">"; |
|
601 |
$registration_render_a["#suffix"] = "</div>"; |
|
602 |
$out .= drupal_render($registration_render_a); |
|
598 |
if($registration_dto->status == "PUBLISHED"){ |
|
599 |
$registration_render_a = compose_registation_dto($registration_dto, false, true); |
|
600 |
$registration_render_a["#prefix"] = "<div class=\"item\">"; |
|
601 |
$registration_render_a["#suffix"] = "</div>"; |
|
602 |
$out .= drupal_render($registration_render_a); |
|
603 |
} |
|
603 | 604 |
} |
604 | 605 |
$out .= "</div>"; |
605 | 606 |
} |
Also available in: Unified diff
ref #7723 supressing un-published registrations in the reference page