Id()] = $Schema->Name() . " Schema"; } $OptList = new HtmlOptionList("SC", $Options, $SchemaInUse->Id()); $OptList->SubmitOnChange(TRUE); $OptList->PrintHtml(); } /** * 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(); } $OptList = new HtmlOptionList("F_FieldId", $Options, $SelectedField->Id()); $OptList->SubmitOnChange(TRUE); $OptList->PrintIfEmpty(FALSE); $OptList->PrintHtml(); } /** * 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); $OptList = new HtmlOptionList("F_Qualifier", $Items, 0); $OptList->PrintIfEmpty(FALSE); $OptList->PrintHtml(); } else { if (Qualifier::ItemExists($Field->DefaultQualifier())) { $Qualifier = new Qualifier($Field->DefaultQualifier()); 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.