pid = $pid; } /** * Show JPEG * @global type $base_url * @global type $user * @return type */ function showJPG() { module_load_include('inc', 'fedora_repository', 'plugins/tagging_form'); module_load_include('inc', 'fedora_repository', 'plugins/ShowStreamsInFieldSets'); global $user; $tabset = array(); $qs = ''; if ($user->uid != 0) { $qs = '?uid=' . base64_encode($user->name . ':' . $user->pass); //XXX: Base64 encoding is not encryption; SSL would be nice... } $viewer_url = variable_get('fedora_base_url', 'http://localhost:8080/fedora') . '/get/' . $this->pid . '/ilives:viewerSdef/getViewer' . $qs; $html = ''; drupal_add_css(path_to_theme() . '/header-viewer.css', 'theme'); $tabset['second_tab'] = array( '#type' => 'tabpage', '#title' => t('Full-size'), '#content' => $html); $tabset['first_tab'] = array( // #type and #title are the minimum requirements. '#type' => 'tabpage', '#title' => t('View'), // This will be the content of the tab. '#content' => theme('image', "fedora/imageapi/{$this->pid}/JPG/JPG.jpg", '', '', NULL, FALSE) . '
' . drupal_get_form('fedora_repository_image_tagging_form', $this->pid) . '
', ); return $tabset; } }