Id()] = $Schema->Name() . " Schema"; } PrintOptionList("SC", $Options, $SchemaInUse->Id(), TRUE); } /** * Print an option list containing controlled name field options. * @param MetadataSchema $Schema Metadata schema in use. * @param MetadataField $Field The metadata field in use. */ function PrintControlledNameFieldList(MetadataSchema $Schema, MetadataField $SelectedField) { $Fields = $Schema->GetFields(MetadataSchema::MDFTYPE_CONTROLLEDNAME); $Options = array(); foreach ($Fields as $Field) { $Options[$Field->Id()] = $Field->GetDisplayName(); } PrintOptionList("F_FieldId", $Options, $SelectedField->Id(), 1, 1, NULL, FALSE); } /** * Print an option list containing qualifier options. * @param MetadataField $Field The metadata field in use. */ function PrintQualifierOrList(MetadataField $Field) { if ($Field->HasItemLevelQualifiers()) { # first value is "--" $Items = $Field->AssociatedQualifierList(); $Items["--"] = "--"; ksort($Items); PrintOptionList("F_Qualifier", $Items, 0, 0, 1, NULL, FALSE); } else { $Qualifier = new Qualifier($Field->DefaultQualifier()); if ($Qualifier instanceof Qualifier) { print $Qualifier->Name(); } } } # ----- MAIN ----------------------------------------------------------------- $SafeSchemaId = defaulthtmlentities($H_Schema->Id()); $SafeFieldId = $H_Field ? defaulthtmlentities($H_Field->Id()) : ""; $SafeErrorMessage = defaulthtmlentities($H_ErrorMessage); $SafeControlledName = defaulthtmlentities($H_ControlledName); $SafeVariantName = defaulthtmlentities($H_VariantName); ?>

# Controlled Name Added

The following controlled name has been added:

,

Add Another Controlled Name

Edit Controlled Names

# Add Controlled Name

Field |
Controlled Name |
Variants | <?PHP print $SafeVariantName; ?>
UsesQualifiers()) { ?>
Qualifier |

No controlled name fields exist. Use the metadata field editor to add controlled name fields.