Enabled(); ?> Editable(); ?> Optional(); ?> DefaultValue(); ?> N/A N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> N/A TextFieldSize(); ?> MaxLength(); ?> AllowHTML(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> IncludeInKeywordSearch(); ?> IncludeInAdvancedSearch(); ?> IncludeInSortOptions(); ?> SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> N/A N/A N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> N/A TextFieldSize(); ?> MaxLength(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> IncludeInKeywordSearch(); ?> IncludeInAdvancedSearch(); ?> IncludeInSortOptions(); ?> SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> DefaultValue(); ?> N/A N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> N/A N/A N/A AllowHTML(); ?> ParagraphRows(); ?> ParagraphCols(); ?> UseWysiwygEditor(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> IncludeInKeywordSearch(); ?> IncludeInAdvancedSearch(); ?> N/A SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> DefaultValue(); ?> N/A N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> N/A TextFieldSize(); ?> N/A N/A N/A N/A N/A MinValue(); ?> MaxValue(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> IncludeInKeywordSearch(); ?> IncludeInAdvancedSearch(); ?> IncludeInSortOptions(); ?> SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> N/A N/A N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> N/A TextFieldSize(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> N/A IncludeInAdvancedSearch(); ?> IncludeInSortOptions(); ?> SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> N/A N/A N/A UpdateMethod(); ?> UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> N/A IncludeInAdvancedSearch(); ?> IncludeInSortOptions(); ?> SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> DefaultValue(); ?> N/A N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A FlagOnLabel(); ?> FlagOffLabel(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> N/A IncludeInAdvancedSearch(); ?> N/A N/A
Enabled(); ?> Editable(); ?> Optional(); ?> N/A N/A N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> UseForOaiSets(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A NumAjaxResults(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A TreeBrowsingPrivilege(); ?> GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> IncludeInKeywordSearch(); ?> IncludeInAdvancedSearch(); ?> N/A SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> N/A N/A N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> UseForOaiSets(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A NumAjaxResults(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> IncludeInKeywordSearch(); ?> IncludeInAdvancedSearch(); ?> N/A SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> N/A AllowMultiple(); ?> N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> UseForOaiSets(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> IncludeInKeywordSearch(); ?> IncludeInAdvancedSearch(); ?> N/A SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> N/A N/A UserPrivilegeRestrictions(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> IncludeInKeywordSearch(); ?> IncludeInAdvancedSearch(); ?> N/A SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> N/A N/A N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> IncludeInKeywordSearch(); ?> IncludeInAdvancedSearch(); ?> N/A SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> N/A N/A N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A DefaultAltText(); ?> MaxHeight(); ?> MaxWidth(); ?> MaxPreviewHeight(); ?> MaxPreviewWidth(); ?> MaxThumbnailHeight(); ?> MaxThumbnailWidth(); ?> N/A N/A ImagePreviewPrivilege(); ?> N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> IncludeInKeywordSearch(); ?> IncludeInAdvancedSearch(); ?> N/A SearchWeight(); ?>
Enabled(); ?> Editable(); ?> Optional(); ?> DefaultValue(); ?> N/A N/A N/A UsesQualifiers(); ?> HasItemLevelQualifiers(); ?> DefaultQualifier(); ?> AssociatedQualifierList(); ?> ShowQualifiers(); ?> N/A TextFieldSize(); ?> N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A N/A PointPrecision(); ?> PointDecimalDigits(); ?> N/A N/A GetViewingPrivilegeString(); ?> GetAuthoringPrivilegeString(); ?> GetEditingPrivilegeString(); ?> N/A IncludeInAdvancedSearch(); ?> N/A SearchWeight(); ?>
MetadataField = $MetadataField; $this->HumanField = new HumanMetadataField($MetadataField); $this->HumanField->SetNotSetText("—"); } /** * Escape for HTML and print the value returned from * $this->HumanField->$Method($Arguments). * @param string $Method method name * @param array $Arguments method arguments */ public function __call($Method, $Arguments) { $Callback = array($this->HumanField, $Method); $Value = call_user_func_array($Callback, $Arguments); print defaulthtmlentities($Value); } /** * Print a 1 if the metadata field can be toggled (enabled/disabled) or a 0 * if it can't be. */ public function FieldIsTogglable() { if (!isset(self::$ActivePlugins)) { global $G_PluginManager; self::$ActivePlugins = $G_PluginManager->GetActivePluginList(); } $Id = $this->MetadataField->Id(); $Owner = $this->MetadataField->Owner(); $OwnerIsActive = in_array($Owner, self::$ActivePlugins); $IsTogglable = !MetadataSchema::FieldToStdNameMapping($Id); $IsTogglable = $IsTogglable && (!$Owner || $OwnerIsActive); print defaulthtmlentities($IsTogglable ? "1" : "0"); } /** * @var array $ActivePlugins static array of active (enabled) plugins */ static protected $ActivePlugins; /** * @var MetadataField $MetadataField metadata field */ protected $MetadataField; /** * @var HumanMetadataField $HumanField $this->MetadataField wrapped in a * HumanMetadataField object */ protected $HumanField; } /** * Get the display text for the field, which includes the display name and the * name in parentheses if a label is set. The text will be properly escaped * HTML. * @param MetadataField $Field metadata field * @return the display text for the field as escaped HTML */ function GetFieldInfoDisplayText(MetadataField $Field) { $DisplayName = defaulthtmlentities($Field->GetDisplayName()); $Name = defaulthtmlentities($Field->Name()); return $DisplayName . (strlen($Field->Label()) ? " (".$Name.")" : ""); } /** * Print "enabled" or "disabled" if the field is enabled or disabled, * respectively. * @param MetadataField $Field metadata field */ function PrintEnabledText(MetadataField $Field) { print $Field->Enabled() ? "enabled" : "disabled"; } /** * Print the escaped metadata field ID. * @param MetadataField $Field metadata field */ function PrintFieldIdText(MetadataField $Field) { print defaulthtmlentities($Field->Id()); } /** * Print the metadata field name text, which includes a link to the field * editing page, the name of the field, the label of the field, and a help * tooltip containing the field description. * @param MetadataField $Field metadata field */ function PrintFieldNameText(MetadataField $Field) { global $AF; $SafeFieldId = defaulthtmlentities($Field->Id()); $SafeFieldName = defaulthtmlentities(GetFieldInfoDisplayText($Field)); $SafeTitle = defaulthtmlentities(strip_tags($Field->Description())); $SafeTooltip = defaulthtmlentities($Field->Description()); $HelpImage = $Field->Enabled() ? "help.png" : "help_disabled.png"; ?> Id()); ?> Edit ".mfe-group-metadata", "Display" => ".mfe-group-display", "Access" => ".mfe-group-access", "Search" => ".mfe-group-search"); # remove the chosen view unset($Views[$ChosenView]); # settings that should not be displayed or otherwise used $DisabledSettings = array( ".mfe-field-userprivilegerestrictions", ".mfe-field-updatemethod", ".mfe-field-showqualifiers", ".mfe-field-associatedqualifierlist", ".mfe-field-useforoaisets", ".mfe-field-paragraphrows", ".mfe-field-paragraphcols", ".mfe-field-usewysiwygeditor", ".mfe-field-minvalue", ".mfe-field-maxvalue", ".mfe-field-flagonlabel", ".mfe-field-flagofflabel", ".mfe-field-defaultalttext", ".mfe-field-maxheight", ".mfe-field-maxwidth", ".mfe-field-maxpreviewheight", ".mfe-field-maxpreviewwidth", ".mfe-field-maxthumbnailheight", ".mfe-field-maxthumbnailwidth", ".mfe-field-pointprecision", ".mfe-field-pointdecimaldigits"); ?>

# Metadata Field Editor

Add New Field

- " id="displayMetadataOnly" href="index.php?P=DBEditor&View=Metadata">Metadata
- " id="displayDisplayOnly" href="index.php?P=DBEditor&View=Display">Display
- " id="displayAccessOnly" href="index.php?P=DBEditor&View=Access">Access
- " id="displaySearchOnly" href="index.php?P=DBEditor&View=Search">Search

Hide Disabled Fields

Enabled | Field Name | Editable | Optional | Default Value | Allow Multiple | Restrict to | Update Method | Uses Qualifiers | Item-Level Qualifiers | Default Qualifier | Allowed Qualifiers | Show Qualifiers | Use for OAI Sets | Field Size | Max Length | Allow HTML | Rows | Columns | WYSIWYG | Min Value | Max Value | Flag On Label | Flag Off Label | Max Number of Search Results | Default alt Text | Max Height | Max Width | Max Preview Height | Max Preview Width | Max Thumbnail Height | Max Thumbnail Width | Precision | Decimal Digits | Full Image Privilege | Browsing Privilege | Viewing Privilege | Authoring Privilege | Editing Privilege | Include in Keyword Search | Include in Advanced Search | Include in Sort Options | Search Weight | Edit
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
Enabled | Field Name | Editable | Optional | Default Value | Allow Multiple | Restrict to | Update Method | Uses Qualifiers | Item-Level Qualifiers | Default Qualifier | Allowed Qualifiers | Show Qualifiers | Use for OAI Sets | Field Size | Max Length | Allow HTML | Rows | Columns | WYSIWYG | Min Value | Max Value | Flag On Label | Flag Off Label | Max Number of Search Results | Default alt Text | Max Height | Max Width | Max Preview Height | Max Preview Width | Max Thumbnail Height | Max Thumbnail Width | Precision | Decimal Digits | Full Image Privilege | Browsing Privilege | Viewing Privilege | Authoring Privilege | Editing Privilege | Include in Keyword Search | Include in Advanced Search | Include in Sort Options | Search Weight | Edit
Text Fields
Url Fields
Paragraph Fields
Number Fields
Date Fields
Timestamp Fields
Flag Fields
Tree Fields
Controlled Name Fields
Option Fields
User Fields
File Fields
Image Fields
Point Fields

Add New Field