getPageName() == "P_EduLink_SelectPublisher") { return false; } # get list of public folders $FolderIds = EduLink::getInstance() ->getFolderList(); # if a user is logged in, add their folders as well $User = $User = User::getCurrentUser(); if ($User->isLoggedIn()) { $UserFolderIds = (new FolderFactory($User->id())) ->getResourceFolder() ->getItemIds(); $FolderIds = array_merge( $FolderIds, $UserFolderIds ); } # if no folders, nothing to show if (count($FolderIds) == 0) { return false; } # otherwise, see if any folders have a visible records in them $RFactory = new RecordFactory(MetadataSchema::SCHEMAID_DEFAULT); foreach ($FolderIds as $FolderId) { $Folder = new Folder($FolderId); $RecordIds = RecordFactory::buildMultiSchemaRecordList( $Folder->getItemIds() ); if (!isset($RecordIds[MetadataSchema::SCHEMAID_DEFAULT])) { continue; } $VisibleItemIds = $RFactory->filterOutUnviewableRecords( $RecordIds[MetadataSchema::SCHEMAID_DEFAULT], User::getAnonymousUser() ); # if so, show the folder list if (count($VisibleItemIds) > 0) { return true; } } # if no folders contained a visible record, nothing to show return false; } /** * Print the header of the page. * @param string $H_LaunchId LaunchId for the current page */ function printPageHeader($H_LaunchId) : void { $AF = ApplicationFramework::getInstance(); $Plugin = EduLink::getInstance(); $User = User::getCurrentUser(); $InterfaceFiles = [ "jQuery.js", "jquery.cookie.js", "bootstrap.js", "jquery-ui.js", "CW-Base.js", "P_EduLink.js", "ResourceSelectionUI.js", "bootstrap.css", "jquery-ui.css", "Metavus.css", "P_EduLink.css", ]; $LogoFileName = $Plugin->getConfigSetting("LogoFileName"); $ServiceName = $Plugin->getConfigSetting("ServiceName"); $AF->doNotUrlFingerprint('Meeple.svg'); $AF->doNotUrlFingerprint('OpenFolder.svg'); $AF->doNotUrlFingerprint('Plus.svg'); $SelectRecordsUrl = $AF->baseUrl() ."index.php?P=P_EduLink_LTIHome&L=".$H_LaunchId; $SelectFolderUrl = $AF->baseUrl() ."index.php?P=P_EduLink_SelectPublisher&L=".$H_LaunchId; // phpcs:disable Generic.Files.LineLength.MaxExceeded // phpcs:disable Generic.WhiteSpace.ScopeIndent.Incorrect // phpcs:disable Generic.WhiteSpace.ScopeIndent.IncorrectExact // phpcs:disable Squiz.WhiteSpace.ScopeClosingBrace.Indent ?>
includeUIFile($InterfaceFiles); ?>
The user name or password you entered was incorrect.
getConfigSetting("LoginPrompt") ?>

User name: |
Password: |

Loading...
inlineUIFile("OpenFolder.svg") ?> Collections isLoggedIn()) { ?> inlineUIFile("Meeple.svg") ?> Sign In inlineUIFile("Meeple.svg") ?> Sign Out