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"); ?>
The = $H_Field->GetDisplayName(); ?> field was populated with = $H_AddedItemCount; ?> new terms.
TermList())) { ?>= count($H_Vocabulary->TermList()) - $H_AddedItemCount; ?> terms were skipped because they were already present in the vocabulary for the field.
= $ReturnButton->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(); ?>If some of the terms are already in use for this field, they will not be replaced or overwritten.
Vocabulary | = "".$H_Vocabulary->Name()." (".count($Terms)." terms)"; ?> |
---|---|
Version | = $Version; ?> |
URL | = $H_Vocabulary->Url(); ?> |
Owner/Maintainer | = $H_Vocabulary->OwnerName(); ?> |
Description | = $H_Vocabulary->Description(); ?> |
Qualifier | = $H_Vocabulary->QualifierName(); ?> |
Namespace | = $H_Vocabulary->QualifierNamespace(); ?> |
Terms |
|
= $PopulateButton->getHtml(); ?> = $CancelSingleButton->getHtml(); ?>
Controlled vocabularies available for populating the = $H_Field->GetDisplayName(); ?> field:
Name | Version | Owner | Description | |
---|---|---|---|---|
= $Vocab->Name(); ?> | = $Vocab->Version(); ?> | = $Vocab->OwnerName(); ?> | = $Vocab->Description()." (".count($Vocab->TermList())." terms)"; ?> | = $PreviewButton->getHtml(); ?> |
= $CancelAllButton->getHtml(); ?>