Id()); $ResourceCount = $RFactory->GetItemCount(); $Fields = $Schema->GetFields(MetadataSchema::MDFTYPE_CONTROLLEDNAME); # Compute the width of the submit buttons in characters based on # the lengths of the field names plus "Search ". $Width = 0; foreach ($Fields as $Field) { $Width = max($Width, strlen($Field->GetDisplayName())+10); } foreach ($Fields as $Field) { $CNFactory = new ControlledNameFactory($Field->Id()); $DisplayName = $Field->Name() .(strlen($Field->Label()) ? ": (".$Field->Label().")" : ""); $UsageCount = $CNFactory->GetUsageCount(); $UsagePercentage = ($ResourceCount>0) ? round((100*$UsageCount)/$ResourceCount) : 0 ; // @codingStandardsIgnoreStart ?>
(GetCountOfPossibleValues()); ?> values)
Description(); ?>
Assigned to resources (% coverage)
LoadFunction("PrintQuickSearchField"); $CN = new ControlledName($CNId); $Field = new MetadataField($CN->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); ?>
delete
<?= $CN->VariantName() ?>
UsesQualifiers()) { if ($Field->HasItemLevelQualifiers()) { # first value is "--" $Items = $Field->AssociatedQualifierList(); $Items["--"] = "--"; ksort($Items); PrintOptionList("F_QualifierName_".$Index, $Items, $QualifierId, 0, 1, NULL, FALSE); } 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) { ?>
0) { ?> /
Id()] = $Schema->Name() . " Schema"; } PrintOptionList("SC", $Options, $SchemaInUse->Id(), TRUE); } # ----- MAIN ----------------------------------------------------------------- $SafeSchemaId = defaulthtmlentities($H_Schema->Id()); // @codingStandardsIgnoreStart ?> 0) { ?>

# Edit Controlled Names

Number of matching records:

# Search for Controlled Names to Edit

ERROR: No Controlled Names matched your query. Please search again.
Search terms |