getString("DefaultCharacterSet"); $Resource = $InvalidUrl->GetAssociatedResource(); $Field = $InvalidUrl->GetAssociatedField(); $Schema = new MetadataSchema($Resource->getSchemaId()); $TitleField = $Schema->GetFieldByMappedName("Title"); # get the resource name and RFC anchor name $Name = defaulthtmlentities( StdLib::NeatlyTruncateString($Resource->Get($TitleField), 22), ENT_QUOTES, $DefaultCharSet, false ); $Title = defaulthtmlentities( $Resource->Get($TitleField), ENT_QUOTES, $DefaultCharSet, false ); $Url = defaulthtmlentities( $InvalidUrl->Url, ENT_QUOTES, $DefaultCharSet, false ); $FinalUrl = defaulthtmlentities( $InvalidUrl->FinalUrl, ENT_QUOTES, $DefaultCharSet, false ); $FieldName = defaulthtmlentities( $Field->GetDisplayName(), ENT_QUOTES, $DefaultCharSet, false ); $StatusText = $InvalidUrl->ReasonPhrase; $TitleWithSpaces = defaulthtmlentities( $Resource->Get($TitleField), ENT_QUOTES, $DefaultCharSet, false ); # basic url href sanitization (mainly to reject javascript) $UrlHref = "#"; if (preg_match("/^(mailto|ftps?|https?):\/\//", $InvalidUrl->Url)) { $UrlHref = $InvalidUrl->Url; } $FinalUrlHref = "#"; if (preg_match("/^(mailto|ftps?|https?):\/\//", $InvalidUrl->FinalUrl)) { $FinalUrlHref = $InvalidUrl->FinalUrl; } $CodeString = strval($InvalidUrl->StatusCode); # construct a search query string $Search = $Resource->Get($TitleField); # add the publisher value if the field exists $Publisher = $Schema->fieldExists("Publisher") ? $Schema->getField("Publisher") : null; if (!is_null($Publisher) && $Publisher->Status() == MetadataSchema::MDFSTAT_OK && $Publisher->Type() == MetadataSchema::MDFTYPE_CONTROLLEDNAME) { foreach ($Resource->Get($Publisher) as $PublisherName) { $Search .= " ".$PublisherName; } } $Search = urlencode($Search); $MyPlugin = PluginManager::getInstance()->getPluginForCurrentPage(); # determine if we should display the release/withhold buttons $DisplayReleaseActions = ($MyPlugin->ConfigSetting("ReleaseConfiguration") !== null) ? true : false; $UrlId = $MyPlugin->encodeUrlIdentifier( $Resource->id(), $Field->id(), $InvalidUrl->Url ); ?> " >StatusCode) ?> 1) { ?> userCanView(User::getAnonymousUser()) ? "Yes" : "No" ?> 65) { ?> FinalStatusCode == 200) { ?> [Redirect Page] Edit IsResourceReleased($Resource)) { ?> Withold Release FinalStatusCode == 200 && !$InvalidUrl->IsFinalUrlInvalid) { ?> Auto-fix Auto-fix Check Search Hide ".$StatusCode ." (".number_format($Count).")"; } # ----- MAIN ----------------------------------------------------------------- ?>

Invalid URLs

1) { ?> 1) { $Percent = ceil($NumPages / 5); ?> 1) { ?>
Type Field Resource Pub URL Actions
= 1 && $PageNumber > 1) { ?> |< 1 && $PageNumber - $Percent > 0) { ?> << 0) { ?> < > 1 && $PageNumber + $Percent < $NumPages) { ?> >> = 1 && $PageNumber < $NumPages) { ?> >|
(no invalid URLs to display)
(no invalid URLs to display)
0) { ?> 0) { ?> 0) { ?> 0) { ?> 0) { ?> 0) { ?>
Last Resource Checked Next Check Checked Resources Enqueued Resources Invalid URLs Possibly Invalid URLs