loadModule(); require_once($module->modulePath . "/classes/CasBrowser.class.php"); require_once($module->modulePath . "/scripts/widgets/MetadataDisplayWidget.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]); $ptID = $productType->getId(); $ptName = $productType->getName(); // Determine the visibility level based on the current user $ptVisibilityLevel = $browser->getProductTypeVisibilityLevel($ptID); // Redirect the user if they are not authorized if ($ptVisibilityLevel == CasBrowser::VIS_NONE) { App::Get()->redirect(SITE_ROOT . '/errors/403'); } // Load a MetadataDisplayWidget with the visible metadata for this product type $typeMetadataWidget = new MetadataDisplayWidget(array()); $typeMetadataWidget->loadMetadata($browser->getVisibleMetadataForProductType($ptID)); // Create a MetadataDisplayWidget to display system metadata (all except typeMetadata) $typeMetadata = $productType->toAssocArray(); unset($typeMetadata['typeMetadata']); $systemMetadataWidget = new MetadataDisplayWidget(array()); $systemMetadataWidget->loadMetadata($typeMetadata); // Prepare BreadcrumbWigdet $bcw = new BreadcrumbsWidget(); $bcw->add('Home',SITE_ROOT . '/'); $bcw->add("Browse By Type", $module->moduleRoot . '/'); $bcw->add($ptName); ?>


Description:

getDescription()?>


The following additional metadata information has been defined for this dataset.

Additional information may exist that is not visible due to your current access permissions.
render()?>
settings['browser_suppress_system_metadata']):?>

System Metadata:

render()?>