Assigned to = number_format($UsageCount); ?> resources
(= $UsagePercentage; ?>% coverage)
FieldId());
$InUseCount = $CN->InUse();
$Link = "index.php?P=SearchResults&G".$Field->Id()."="
.urlencode("=".$CN->Name());
# display number of resources that use this controlled name
if ($InUseCount == 1)
{
$InUseMessage = "(".$InUseCount." resource)";
}
else if ($InUseCount > 0)
{
$InUseMessage = "(".$InUseCount." resources)";
}
else
{
$InUseMessage = "(Not Used)";
}
// @codingStandardsIgnoreStart
?>
0){ ?>
Remap to:
Id(), "", "", FALSE, "D_Remap_".$Index); ?>
UsesQualifiers())
{
if ($Field->HasItemLevelQualifiers())
{
# first value is "--"
$Items = $Field->AssociatedQualifierList();
$Items["--"] = "--";
ksort($Items);
$OptList = new HtmlOptionList("F_QualifierName_".$Index, $Items, $QualifierId);
$OptList->PrintIfEmpty(FALSE);
$OptList->PrintHtml();
}
else
{
$Qualifier = new Qualifier($Field->DefaultQualifier());
print $Qualifier->Name();
}
}
}
/**
* Display pagination controls for ControlledName search.
* @param int $NumResults Number of results per page.
* @param MetadataField $Field Field searched.
* @param string $ControlledName Name searched for.
* @param int $StartRecord Numerical index of the first record on this
* page.
* @param int $PerPage Number of records per page.
*/
function DisplayPagination(
$NumResults, $Field, $ControlledName, $StartRecord, $PerPage)
{
// @codingStandardsIgnoreStart
if ($NumResults > $PerPage) { ?>