Nav Item Link "Home" => "Home", "Browse Resources" => "BrowseResources", "Get Recommendations" => "RecommendResources", "Forums" => "Forums", "About" => "About", "Help" => "help/collections"); # 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()); # tooltips to be displayed on primary navigation items $PrimaryNavTooltips = array( # Nav Item Label => Nav Item Tooltip "Get Recommendations" => "What is a recommendation? A recommendation is the suggestion of a resource or resources that you may find interesting and useful. These suggestions are based on the ratings you have given to other resources. If you have not rated any resources, the system will not be able to provide any recommendations. You must be logged in in order to receive recommendations. Why don't I get any recommendations? In order for the portal to provide recommendations, you need to rate some resources first (roughly three to five, depending on the number of ratings that the resource record has from other users). Once you rate these resources, the portal will provide you with recommendations. How can I make the recommendations feature work better for me? To maximize the usefulness of these recommendations, you should rate all the resources you use in a thoughtful manner. Random ratings will skew recommendations and diminish usefulness. The more resources you rate, the more tailored to your needs the recommendations will become. Why can't I see any recommendations? In order to see your preferences and recommendations, you need to log in to the portal using your username and password and have rated some resources." ); # 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"); # 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)); # pages that should not be indexed by search engines $NoIndexPages = array( "AdvancedSearch", "ForgottenPassword", "LeaveFeedback", "Login", "RequestAccount", "SearchResults", ); # ----- MAIN ----------------------------------------------------------------- # (NOTE: there must not be any whitespace in HTML output before the DOCTYPE) ?>
DefaultCharacterSet(); ?>" /> GetPageName(), $NoIndexPages)) { ?> IncludeUIFile(array( "jQuery.js", "jquery-migrate.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", "CW-Confirm.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; } if (isset($Tooltips[$Label])) { $DisplayFunc($Link, $Label, $Tooltips[$Label]); } else { $DisplayFunc($Link, $Label); } } } function DisplayPrimaryNavItem($Link, $Label, $Tooltip = NULL) { ?>
" 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; }