getTag(); $this -> getModel(self :: PIWIK) -> track('quickSearchOrganizations', 'keyword=' . urlencode($term) . '&limit=' . urlencode($limit) . '&locale=' . urlencode($locale)); $organizations = $this -> getModel(self :: SEARCH) -> quickSearchOrganizations($term, $limit, $locale); $this -> institutions = array(); if ($organizations != NULL) { foreach ($organizations as $institution) if (($institution -> id != NULL) && (($institution -> name != NULL) || ($institution -> shortName != NULL))) $this -> institutions[] = array('id' => $institution -> id, 'name' => ($institution -> name . ((($institution -> name == NULL) || ($institution -> shortName == NULL)) ? '' : ' (') . $institution -> shortName . ((($institution -> name == NULL) || ($institution -> shortName == NULL)) ? '' : ')'))); } if (count($errors = $this -> get('Errors')) > 0) { JLog :: add('Error viewing institutions: ' . implode("\n", $errors), JLog :: ERROR, self :: LOG); return FALSE; } parent :: display($template); } }