"No", 1 => "Yes"); } /** * Get an array of options available for a privilege value. The array keys are * values for the form and the values are the labels for the form. * @return array array of privilege options */ function GetPrivilegeOptions() { $PrivilegeFactory = new PrivilegeFactory(); return array("--" => "--") + $PrivilegeFactory->GetPrivileges(TRUE, FALSE); } /** * Get the escaped option text and value for a flag value. * @param int $State TRUE if the flag is on and FALSE if the flag is OFF * @return array the first value is the text, the second is the value */ function GetSafeFlagOption($State) { return array( defaulthtmlentities(GetArrayValue(GetFlagOptions(), $State ? 1 : 0)), defaulthtmlentities($State ? 1 : 0)); } /** * Get an array of options available for the user value value. The array keys * are values for the form and the values are the labels for the form. * @return array array of user value options */ function GetUserValueOptions() { $Schema = new MetadataSchema(); $UserFields = $Schema->GetFields(MetadataSchema::MDFTYPE_USER); $Options = array(); foreach ($UserFields as $Id => $UserField) { $Options[$Id] = $UserField->GetDisplayName(); } return $Options; } /** * Print the type field for the given metadata field data. * @param array $Data metadata field data * @param string|null $Error field error, if one exists * @return void */ function PrintTypeField(array $Data, $Error) { $AllowedTypes = MakeTypesHumanReadable($Data["AllowedTypes"]); $HasNoAllowedTypes = !count($AllowedTypes); $SafeType = defaulthtmlentities($Data["Type"]); $SafeTypeName = defaulthtmlentities(MetadataField::$FieldTypeHumanEnums[$Data["Type"]]); ?>
class="cw-form-error" for="F_Type">Type All fields.
Name All fields.
class="cw-form-error" for="F_Name">Name All fields.
class="cw-form-error" for="F_Label">Display Name All fields.
Definition <?PHP print $SafeValue; ?> All fields.
class="cw-form-error" for="F_Instructions">Instructions <?PHP print $SafeValue; ?> All fields.
class="cw-form-error" for="F_Enabled">Enabled All fields.
class="cw-form-error" for="F_Editable">Editable All fields.
class="cw-form-error" for="F_Optional">Optional Text, Paragraph, Number, Date, Timestamp, Flag, Tree, Controlled Name, Option, User, Image, File, URL, and Point fields.
class="cw-form-error" for="F_UsesQualifiers">Uses Qualifiers Text, Paragraph, Number, Date, Timestamp, Flag, Tree, Controlled Name, Option, Image, File, URL, and Point fields.
class="cw-form-error" for="F_HasItemLevelQualifiers">Has Item Level Qualifiers Text, Paragraph, Number, Date, Timestamp, Flag, Tree, Controlled Name, Option, Image, File, URL, and Point fields.
"--") + $Options; ?>
class="cw-form-error" for="F_DefaultQualifier">Default Qualifier Text, Paragraph, Number, Date, Timestamp, Flag, Tree, Controlled Name, Option, Image, File, URL, and Point fields.
class="cw-form-error" for="F_AssociatedQualifierList">Allowed Qualifiers Text, Paragraph, Number, Date, Timestamp, Flag, Tree, Controlled Name, Option, Image, File, URL, and Point fields.
class="cw-form-error" for="F_ShowQualifiers">Show Qualifiers (on the full record page) Text, Paragraph, Number, Date, Timestamp, Flag, Tree, Controlled Name, Option, Image, File, URL, and Point fields.
class="cw-form-error" for="F_IncludeInKeywordSearch">Include in Keyword Search Text, Paragraph, Number, Tree, Controlled Name, Option, User, Image, File, and URL fields.
class="cw-form-error" for="F_IncludeInAdvancedSearch">Include in Advanced Search Text, Paragraph, Number, Date, Timestamp, Flag, Tree, Controlled Name, Option, User, Image, File, and URL fields.
class="cw-form-error" for="F_IncludeInSortOptions">Include in Sort Options Text, Number, Date, Timestamp, and URL fields.
Search Weight (1-20) Text, Paragraph, Number, Date, Timestamp, Tree, Controlled Name, Option, User, Image, File, URL fields.
Max Number of Search Results (10 or more) Tree and Controlled Name fields.
class="cw-form-error" for="F_UseForOaiSets">Use for OAI Sets Tree, Controlled Name, and Option fields.
Field Size characters Text, Number, Date, and Point fields.
cw-form-required" for="F_MaxLength">Max Length characters characters
(Note: making this value smaller will not truncate any existing field values) Text and URL fields.
None"; } ?>
class="cw-form-error" for="F_DefaultValue[Generic]">Default Value Text and Paragraph fields.
None"; } ?>
class="cw-form-error" for="F_DefaultValue[Numeric]">Default Value Number fields.
$Data["FlagOffLabel"], 1 => $Data["FlagOnLabel"]); $SafeText = defaulthtmlentities($Value ? $Options[1] : $Options[0]); $SafeValue = defaulthtmlentities($Value ? 1 : 0); ?>
class="cw-form-error" for="F_DefaultValue[Flag]">Default Value Flag fields.
NULL, "Y" => NULL); $SafeValue = defaulthtmlentities($DefaultValue["X"]); $SafeValue2 = defaulthtmlentities($DefaultValue["Y"]); if ($Data["HasOwner"]) { if (!strlen($SafeValue)) { $SafeValue = "None"; } if (!strlen($SafeValue2)) { $SafeValue2 = "None"; } } ?>
class="cw-form-error" for="F_DefaultValue[Point1]">Default Value X: , Y: X: Y: Point fields.
class="cw-form-error" for="F_AllowHTML">Allow HTML in Text Tree and Paragraph fields.
Min Value Number fields.
Max Value Number fields.
class="cw-form-required" for="F_PointPrecision">Point Precision digits to the left of the decimal point digits to the left of the decimal point Point fields.
cw-form-required" for="F_PointDecimalDigits">Decimal Digits in Point digits to the right of the decimal point digits to the right of the decimal point Point fields.
class="cw-form-error" for="F_UpdateMethod">Update Method Timestamp fields.
Paragraph Rows Paragraph fields.
Paragraph Cols Paragraph fields.
class="cw-form-error" for="F_UseWysiwygEditor">Use WYSIWYG Editor Paragraph fields.
Flag On Label Flag fields.
Flag Off Label Flag fields.
class="cw-form-error" for="F_AllowMultiple">Allow Multiple Option fields.
Default Alt Text Image fields.
Max Height Image fields.
Max Width Image fields.
Max Preview Height Image fields.
Max Preview Width Image fields.
Max Thumbnail Height Image fields.
Max Thumbnail Width Image fields.
GetPrivileges(TRUE, FALSE); $Selected = $Data["UserPrivilegeRestrictions"]; ?>
class="cw-form-error" for="F_UserPrivilegeRestrictions">Restrict to Users With One of the Following User fields.
"Metadata Tool Only", 1 => "Public and Metadata Tool"); ?>
class="cw-form-error" for="F_Viewable">Viewable All fields.
class="cw-form-error" for="F_TreeBrowsingPrivilege">Privilege Required for Browsing Tree fields.
class="cw-form-error" for="F_ImagePreviewPrivilege">Privilege Required to View Full Image Image fields.
"--", 1 => "and user is value of", -1 => "or user is value of"); $UserValueOptions = GetUserValueOptions(); ?>
class="cw-form-error" for="F_ViewingPrivilege">Privilege Required for Viewing
All fields. "--", 1 => "and user is value of", -1 => "or user is value of"); $UserValueOptions = GetUserValueOptions(); ?>
class="cw-form-error" for="F_AuthoringPrivilege">Privilege Required for Authoring
All fields. "--", 1 => "and user is value of", -1 => "or user is value of"); $UserValueOptions = GetUserValueOptions(); ?>
class="cw-form-error" for="F_EditingPrivilege">Privilege Required for Editing
All fields.

# Metadata Field

(required fields are circled)

Export Field
1) { ?>

Please Note: This field is currently designated the Resource Field. Some field attributes cannot be modified and the field cannot be deleted until another metadata field is selected for Resource Field. HasPriv(PRIV_SYSADMIN)) { ?> This can be changed on the System Configuration page. This field was created by CWIS. Some field attributes cannot be modified and the field cannot be deleted. This field was created by the plugin. Some field attributes cannot be modified and the field cannot be deleted. This field cannot be deleted because at least one enabled tree field must exist to provide resource browsing functionality. To delete this field, create a new tree field or enable one that is currently disabled.

Basic Information | Applies To
--- | ---
Qualifiers | Applies To
For Dublin Core compliant schemas, Qualifiers are equivalent to DC Encoding Schemes. Please see the Metadata Tool Help for further clarification. |
Search | Applies To
Resource Editing | Applies To
OAI | Applies To
Type-Specific Information | Applies To
Note | Existing images will be resized automatically when the dimension values above are changed. | Image fields.
Privileges | Applies To
The Viewable attribute is deprecated. It is supported in legacy interfaces only. | All fields.