fileSystemRoot/lib/documentmanagement/DocumentField.inc"); $oDocField = DocumentField::get($fDocFieldID); if ($oDocField) { // if we're setting lookup to be true, then prompt for an initial lookup value?? if ($oDocField->getHasLookup()) { // and there are no metadata values for this lookup // there shouldn't be since this has just been added- but lets be paranoid shall we? if (DocumentField::getLookupCount($fDocFieldID) == 0) { // then redirect to the edit metadata page controllerRedirect("addMetaDataForField", "fDocFieldID=$fDocFieldID"); } } } // include the page template (with navbar) require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); global $default; $Center .= renderHeading(_("Add Document Field")); $Center .= "
| " . _("Document Field addition Unsuccessful!") . " | \n"; $Center .= "
| " . _("Document Field added Successfully!") . " | \n"; $Center .= "\n"; } $Center .= "
| rootUrl/control.php?action=addDocField\"> | \n";
$Center .= "