public function testGetIndexingInfo() { $o_service = new WLPlugInformationServiceULAN(); $vm_ret = $o_service->getDataForSearchIndexing(array(), 'http://vocab.getty.edu/ulan/500024253'); $this->assertInternalType('array', $vm_ret); $this->assertGreaterThan(0, sizeof($vm_ret)); }
/** * */ public function __construct() { global $g_information_service_settings_ULAN; WLPlugInformationServiceULAN::$s_settings = $g_information_service_settings_ULAN; parent::__construct(); $this->info['NAME'] = 'ULAN'; $this->description = _t('Provides access to Getty Linked Open Data ULAN service'); }
/** * */ public function Detail() { if (!$this->request->user->canDoAction('can_import_ulan')) { return; } $o_wc = new WLPlugInformationServiceULAN(); $this->view->setVar('detail', $o_wc->getExtendedInformation(array(), $this->request->getParameter('url', pString))); $this->render("ajax_ulan_detail_json.php"); }