setIcon("Disk.svg"); $SaveButton->setName("F_Submit"); $SaveButton->makeSubmitButton(); $CancelButton = new HtmlButton("Cancel"); $CancelButton->setIcon("Cross.svg"); $CancelButton->addSemanticClass("btn-danger"); $CancelButton->setName("F_Submit"); $CancelButton->makeSubmitButton(); # escaped values $SafeSchemaId = defaulthtmlentities($H_Schema->Id()); $SafeSchemaName = defaulthtmlentities($H_Schema->Name()); $SafeSchemaResourceName = defaulthtmlentities($H_Schema->ResourceName()); $SafeSchemaViewPage = defaulthtmlentities($H_Schema->getViewPage()); $SafePrivilegesError = defaulthtmlentities($H_PrivilegesError); # variable holding available schema field names with their ids # add a new local default sort field option (Relevance) to the list of available sort fields # this option can be used to clear the DefaultSortField. $SchemaFieldNames = ["R" => "(Relevance)"] + $H_Schema->getSortFields(); $DefaultSortField = $H_Schema->defaultSortField(); $DefaultSortFieldOptList = new HtmlOptionList( "F_DefaultSortField", $SchemaFieldNames, ($DefaultSortField == false ? "R" : $DefaultSortField) ); # ----- DISPLAY -------------------------------------------------------------- ?>

Edit Metadata Schema

There was an issue with the viewing privileges and they were not saved:

$Params) { $TableData = count($H_Schema->getFieldNames($Params["FieldTypes"])) == 0 ? "

No fields can be mapped to ".$Params["MFieldName"]." field.

" : $H_Schema->getFieldsAsOptionList( $FieldId, $Params["FieldTypes"], $Params["Value"], !$Params["Required"] ); ?>
Name
Resource Name
View Page
Default Sort Field getHTML(); ?>
Viewing Permissions DisplaySet("ViewingPrivileges", $H_Schema->ViewingPrivileges()); ?>
Authoring Permissions DisplaySet("AuthoringPrivileges", $H_Schema->AuthoringPrivileges()); ?>
Editing Permissions DisplaySet("EditingPrivileges", $H_Schema->EditingPrivileges()); ?>
Allow Comments commentsEnabled() ? "checked" : "" ?> />
getHtml() ?> getHtml() ?>