/** * Used by _renderColumn_ConceptSets to render the current concept and its children. */ private function _renderConceptSetCurrent(Concept $c, $show_children = true) { // Show current if ($c->retired) { $_class = ' concept_retired'; } else { $_class = ''; } $_name = $c->getPreferredName(); $_display_name = $this->_shrinkText($_name); echo '<li class="concept_current"><span class="concept_name' . $_class . '"'; if ($_name != $_display_name) { echo ' title="' . htmlentities($_name) . '"'; } echo '>' . htmlentities($_display_name); echo '</span> (<a href="' . $this->getSearchUrl('id:' . $c->concept_id, array('source' => $c->css_dict->dict_db)) . '">' . $c->concept_id . '</a>)</li>'; // Show children if ($show_children && $c->hasChildren()) { echo "<li><ul class=\"hierarchy_not_top\">\n"; foreach ($c->getChildrenIds() as $_child_id) { $child_concept = $this->cc->getConcept($_child_id, $c->css_dict); $_name = $child_concept->getPreferredName(); $_display_name = $this->_shrinkText($_name); echo '<li class="concept_sibling"><span class="concept_name"'; if ($_name != $_display_name) { echo ' title="' . htmlentities($_name) . '"'; } echo '>' . htmlentities($_display_name); echo '</span> (<a href="' . $this->getSearchUrl('id:' . $_child_id, array('source' => $child_concept->css_dict->dict_db)) . '">' . $_child_id . '</a>)</li>'; } echo "</ul></li>\n"; } }