loadModule(); require_once($module->modulePath . "/classes/CasBrowser.class.php"); // Get a CAS-Browser XML/RPC client $browser = new CasBrowser(); $client = $browser->getClient(); // Get a Product Type object $productType = $client->getProductTypeById(App::Get()->request->segments[0]); $productCount = $client->getNumProducts($productType); $ptID = $productType->getId(); $ptName = $productType->getName(); // Determine which search widget to show $widgetClassName = isset(App::Get()->settings['browser_product_search_widget']) ? App::Get()->settings['browser_product_search_widget'] : 'FilterWidget'; $querySiteRoot = (isset(App::Get()->settings['query_service_url'])) ? App::Get()->settings['query_service_url'] : 'http://' . $_SERVER['HTTP_HOST'] . MODULE_ROOT; // Create the search widget require_once($module->modulePath . "/scripts/widgets/{$widgetClassName}.php"); $searchWidget = new $widgetClassName(array( 'productType'=>$productType, 'htmlID'=>'cas_browser_product_list', 'siteUrl'=>$querySiteRoot, 'pagedResults'=>true, 'resultFormat'=>'json')); // Render search widget javascript $searchWidget->renderScript(); // Prepare BreadcrumbWigdet $bcw = new BreadcrumbsWidget(); $bcw->add('Home',SITE_ROOT . '/'); $bcw->add("Browser", $module->moduleRoot . '/'); $bcw->add($ptName, $module->moduleRoot."/dataset/{$ptID}"); $bcw->add("Product Search"); ?>

Product Search:


render(); ?>

Product Search Results

zip-icon Click on the icon to download all data products associated with this search as a single Zip archive.