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)) { ?> IncludeUIFile(array( "jQuery.js", "jquery-migrate-1.2.1.js", "SPT--jQueryPlugins.js", )); ?> IncludeUIFile(array( # NOTES: # * this will also pull in -Override versions of any of the # listed files (e.g. CW-Theme-Override.css) if available # * normally -Override files should be used for modifications in # custom interfaces # * for .css files, a .scss file will also be searched for, and # compiled and loaded instead of the .css if available "CW-Theme.css", "CW-Theme.js", "CW-Generic.css", "CW-Generic.js", "CW-Legacy.css", "CW-Legacy.js", )); ?>
IncludeUIFile(array( "CW-Base.js", "CW-Helpers.js", "SPT-EmailMunge.js", "SPT-FastRating.js", )); ?> AddAWStatsScript()) { $AF->IncludeUIFile("awstats_misc_tracker.js"); } ?> SignalEvent("EVENT_IN_HTML_HEADER"); ?>
Skip Navigation

# PortalName()); ?>

Keyword Search: IncrementalKeywordSearchEnabled()) { $AF->RequireUIFile("jquery-ui.js"); $AF->RequireUIFile("CW-QuickSearch.js"); ?>
" alt="Go" />
Advanced Search
$Link) { if (isset($PossibleExclusions[$Link]) && !$PossibleExclusions[$Link]) { unset($Items[$Label]); } } # signal event to give plugins etc a chance to modify nav item list if ($Event !== NULL) { $SignalResult = $GLOBALS["AF"]->SignalEvent($Event, array( "NavItems" => $Items)); $Items = $SignalResult["NavItems"]; } # display nav items foreach ($Items as $Label => $Link) { if (preg_match("/^[a-zA-Z0-9_]+$/", $Link)) { $Link = "index.php?P=".$Link; } $DisplayFunc($Link, $Label); } } function DisplayPrimaryNavItem($Link, $Label) { ?>
" class="cw-go-link" alt="" height="12" width="12">
GetFields(MetadataSchema::MDFTYPE_TREE) as $Field) { # do not display fields with a bad status if ($Field->Status() != MetadataSchema::MDFSTAT_OK) { continue; } # do not display disabled fields if (!$Field->Enabled()) { continue; } # field that the user shouldn't view if (!$Field->ViewingPrivileges()->MeetsRequirements($GLOBALS["G_User"])) { continue; } return TRUE; } return FALSE; }