Exemplo n.º 1
0
 public static function display($title)
 {
     $cache = $GLOBALS['okwCache'];
     $html = '';
     $titleArray = explode(':', $title);
     $ontAbbr = $titleArray[0];
     $termID = str_replace(' ', '_', $titleArray[1]);
     $ontology = new OntologyData($ontAbbr);
     $term = $ontology->parseTermByID($termID);
     if (!empty($cache['hierarchy']) || !empty($cache['axiom']['subclassof']) || !empty($cache['axiom']['equivalent'])) {
         $html .= self::printPageSidebar($ontology, $term, $cache);
     }
     if ($ontology->existClass($term->iri) || !empty($cache['annotation'])) {
         $html .= self::printPageHeader($ontology, $term, $cache);
     }
     return DisplayHelper::tidyHTML($html);
 }
Exemplo n.º 2
0
 protected static function printCreateForm($perm, $ontAbbr, $label, $ontologies, $magic)
 {
     $html = self::printFormHeader();
     $html .= '<input id="okw-form-ontology" type="hidden" value="">';
     $html .= CreateDescribeHTML::getHTML($perm, $label, $ontologies);
     $html .= EditHierarchyHTML::getHTML();
     $html .= EditAxiomHTML::getHTML($ontAbbr);
     $html .= EditAnnotationHTML::getHTML($magic);
     $html .= self::printFormBottom();
     return DisplayHelper::tidyHTML($html);
 }