setPageTitle("Full Image: Error"); print "

# Error

"; print "

".$H_Error."

"; return; } # check for required (if no error) variables if (!isset($H_Image)) { throw new Exception("Variable \$H_Image not set."); } if (!isset($H_Resource)) { throw new Exception("Variable \$H_Resource not set."); } if (!isset($H_Field)) { throw new Exception("Variable \$H_Field not set."); } # retrieve resource title $ResourceTitle = $H_Resource->userCanViewMappedField(User::getCurrentUser(), "Title") ? $H_Resource->getMapped("Title") : null; # construct return link and text if (isset($_SERVER["HTTP_REFERER"]) && strpos("EditResource", $_SERVER["HTTP_REFERER"])) { $ReturnLink = $H_Resource->getEditPageUrl(); $ReturnPrompt = "Return to editing "; } else { $ReturnLink = "index.php?P=FullRecord&ID=".$H_Resource->Id(); $ReturnPrompt = "Return to full record for "; } # construct download button $DownloadButton = new HtmlButton("Download Original Image"); $DownloadButton->setLink( "index.php?P=FullImage&ID=".$H_Image->id() ."&RI=".$H_Resource->id()."&FI=".$H_Field->id()."&DL=1" ); $DownloadButton->setIcon("Download.svg"); $UseIIIF = PluginManager::getInstance()->pluginReady("IIIFImageViewer"); $ImageHtml = $UseIIIF ? \Metavus\Plugins\IIIFImageViewer::getInstance() ->getHtmlForImageViewer($H_Image->id(), "mv-image-large") : "
".$H_Image->getHtml("mv-image-large")."
"; # ----- DISPLAY -------------------------------------------------------------- $AF->setPageTitle($H_Field->Name()." Display"); ?>

# Name() ?>".$ResourceTitle.""; } ?>

".$ResourceTitle."" : "the Resource" ?>

getHtml() ?>

".$ResourceTitle."" : "the Resource" ?>