<? include("config.php"); $collection = Collection::from_alias($_GET['CISOROOT']); $current_item = ItemFactory::create($_GET['CISOROOT'], $_GET['CISOPTR'], $_GET['CISOSHOW']); $show_all = (isset($_GET["show_all"])) ? $_GET["show_all"] : false; if(isset($_GET['search'])) { $search_status = new SearchStatus($_GET['search']); } $css_includes = array('screen/viewer'); if(get_class($current_item) == 'Image') { $js_includes = array('jquery-ui-1.7.1.custom.min', 'jquery.event.drag-1.5.min', 'dmmonocle.min', 'compound_object_browser'); $css_includes = array_merge($css_includes, array('dmmonocle','smoothness/jquery-ui-1.7.custom')); } define("FACEBOX",'display'); $breadcrumbs = array( 'Home' => SEEKING_MICHIGAN_HOST, 'Discover' => SEEKING_MICHIGAN_HOST.'/discover', 'Collections' => SEEKING_MICHIGAN_HOST.'/discover', $collection->name => $collection->url(), 'Item Viewer' => ''); app()->partial('header', array('body_class' => 'discover', 'breadcrumbs' => $breadcrumbs,
} private static $initialized = false; public static function initialize() { if (!self::$initialized) { self::$noQuery = new SearchStatus(); self::$noResult = new SearchStatus(); self::$emptyResult = new SearchStatus(); self::$recordsFound = new SearchStatus(); self::$initialized = true; } } public static function NoQuery() { return self::$noQuery; } public static function NoResult() { return self::$noResult; } public static function EmptyResult() { return self::$emptyResult; } public static function RecordsFound() { return self::$recordsFound; } } SearchStatus::initialize();