Nav Item Link "Home" => "Home", "Browse Resources" => "BrowseResources", "Get Recommendations" => "RecommendResources", "Forums" => "Forums", "About" => "About", "Help" => "Help"); # whether to display specific items in the primary navigation # (if right side is TRUE, item will be displayed) $PrimaryNavExclusions = array( # Nav Item Link => Whether to Display (boolean) "BrowseResources" => BrowseableTreeFieldExists(), "RecommendResources" => $GLOBALS["G_SysConfig"]->ResourceRatingsEnabled(), "Forums" => $GLOBALS["G_SysConfig"]->ForumsEnabled()); # secondary navigation menu items (in display order) $SecondaryNavItems = array( # Nav Item Label => Nav Item Link "Register" => "RegisterPortal", "Preferences" => "Preferences", "Metadata Tool" => "MDHome", "Administration" => "SysAdmin", "Edit Users" => "UserList", "Log Out" => "UserLogout"); # whether to display specific items in the secondary navigation # (if right side is TRUE, item will be displayed) $SecondaryNavExclusions = array( # Nav Item Link => Whether to Display (boolean) "RegisterPortal" => ($GLOBALS["G_User"]->HasPriv(PRIV_SYSADMIN) && !$GLOBALS["G_SysConfig"]->HasRegistered()), "MDHome" => $GLOBALS["G_User"]->HasPriv(PRIV_RESOURCEADMIN, PRIV_CLASSADMIN, PRIV_NAMEADMIN, PRIV_RELEASEADMIN), "SysAdmin" => $GLOBALS["G_User"]->HasPriv(PRIV_SYSADMIN, PRIV_COLLECTIONADMIN, PRIV_USERADMIN), "UserList" => $GLOBALS["G_User"]->HasPriv(PRIV_SYSADMIN, PRIV_USERADMIN)); # Metadata Tool menu items (in display order) $MDTNavItems = array( # Nav Item Label => Nav Item Link "Add New Resource" => "index.php?P=EditResource&ID=NEW", "Add New Controlled Name" => "index.php?P=AddControlledName", "Edit Controlled Names" => "index.php?P=EditControlledName&FieldId=0", "Edit Option Lists" => "index.php?P=EditOptionList", "Add/Edit Classifications" => "index.php?P=EditClassifications", "Metadata Field Editor" => "index.php?P=DBEditor", "Metadata Tool Help" => "index.php?P=MetadataToolIntroductionHelp"); # whether to display specific items in the MetadataTool navigation # (if right side is TRUE, item will be displayed) $Schema = new MetadataSchema(MetadataSchema::SCHEMAID_DEFAULT); $MDTNavExclusions = array( # Nav Item Link => Whether to Display (boolean) "index.php?P=EditResource&ID=NEW" => $Schema->AuthoringPrivileges()->MeetsRequirements($GLOBALS["G_User"]), "index.php?P=AddControlledName" => $GLOBALS["G_User"]->HasPriv(PRIV_NAMEADMIN), "index.php?P=EditControlledName&FieldId=0" => $GLOBALS["G_User"]->HasPriv(PRIV_NAMEADMIN), "index.php?P=EditOptionList" => $GLOBALS["G_User"]->HasPriv(PRIV_NAMEADMIN), "index.php?P=EditClassifications" => $GLOBALS["G_User"]->HasPriv(PRIV_CLASSADMIN), "index.php?P=DBEditor" => $GLOBALS["G_User"]->HasPriv(PRIV_SYSADMIN, PRIV_COLLECTIONADMIN), "index.php?P=MetadataToolIntroductionHelp" => $GLOBALS["G_User"]->HasPriv(PRIV_SYSADMIN, PRIV_COLLECTIONADMIN, PRIV_NAMEADMIN, PRIV_CLASSADMIN)); # pages that should not be indexed by search engines $NoIndexPages = array( "AdvancedSearch", "ForgottenPassword", "LeaveFeedback", "Login", "RequestAccount", "SearchResults", ); # ----- MAIN ----------------------------------------------------------------- $SiteKeywords = htmlspecialchars(trim( $GLOBALS["G_SysConfig"]->SiteKeywords()), ENT_QUOTES); # (NOTE: there must not be any whitespace in HTML output before the DOCTYPE) ?>
DefaultCharacterSet(); ?>" /> GetPageName(), $NoIndexPages)) { ?>