setIcon("BackArrow.svg"); $ReturnButton->setLink("index.php?P=EditMetadataField&Id=" . $H_Field->Id()); $PopulateButton = new HtmlButton("Populate"); $PopulateButton->setIcon("MagicWand.svg"); $CancelSingleButton = new HtmlButton("Cancel"); $CancelSingleButton->setIcon("Cross.svg"); $CancelSingleButton->addSemanticClass("btn-danger"); $PreviewButton = new HtmlButton("Preview"); $PreviewButton->setIcon("EyeOpen.svg"); $PreviewButton->setSize(HtmlButton::SIZE_SMALL); $CancelAllButton = new HtmlButton("Cancel"); $CancelAllButton->setIcon("Cross.svg"); $CancelAllButton->addSemanticClass("btn-danger"); $CancelAllButton->setLink("index.php?P=EditMetadataField&Id=" . $H_Field->Id()); # ----- DISPLAY -------------------------------------------------------------- /* CASES: - display error messages - import vocab and display result - preview vocab and confirm import - display list of available vocabs */ PageTitle("Populate Metadata Field"); ?>

Error Encountered

Field Populated

The GetDisplayName(); ?> field was populated with new terms.

TermList())) { ?>

TermList()) - $H_AddedItemCount; ?> terms were skipped because they were already present in the vocabulary for the field.

getHtml(); ?> setLink("index.php?P=PopulateField&ID=" . $H_Field->Id() . "&VH=" . $H_Vocabulary->Hash() . "&CP=Y"); $CancelLink = "index.php?P=PopulateField&ID=".$H_Field->Id(); $CancelSingleButton->setLink("index.php?P=PopulateField&ID=" . $H_Field->Id()); $Version = strlen($H_Vocabulary->Version()) ? $H_Vocabulary->Version() : "(no version specified)"; $Terms = $H_Vocabulary->TermList(); ?>

Confirm Populate

If some of the terms are already in use for this field, they will not be replaced or overwritten.

HasQualifier() && strlen($H_Vocabulary->QualifierUrl())) { ?> QualifierNamespace())) { ?>
Vocabulary ".$H_Vocabulary->Name()." (".count($Terms)." terms)"; ?>
Version
URL Url(); ?>
Owner/Maintainer OwnerName(); ?>
Description Description(); ?>
Qualifier QualifierName(); ?>
Namespace QualifierNamespace(); ?>
Terms

getHtml(); ?> getHtml(); ?>

Available Vocabularies

Controlled vocabularies available for populating the GetDisplayName(); ?> field:

setLink("index.php?P=PopulateField&ID=" . $H_Field->Id() . "&VH=" . $Vocab->Hash()); ?>
Name Version Owner Description
Name(); ?> Version(); ?> OwnerName(); ?> Description()." (".count($Vocab->TermList())." terms)"; ?> getHtml(); ?>

getHtml(); ?>