24 require_once(
"classes/class.ilObjectGUI.php");
25 require_once(
"./Modules/Glossary/classes/class.ilObjGlossary.php");
26 require_once(
"./Modules/Glossary/classes/class.ilGlossaryTermGUI.php");
27 require_once(
"./Modules/Glossary/classes/class.ilGlossaryDefinition.php");
28 require_once(
"./Modules/Glossary/classes/class.ilTermDefinitionEditorGUI.php");
29 require_once(
"./Services/COPage/classes/class.ilPCParagraph.php");
63 $this->offline =
false;
64 $this->ctrl->saveParameter($this, array(
"ref_id"));
67 include_once(
"./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
69 $this->glossary =& $this->glossary_gui->object;
79 $this->offline = $a_offline;
88 return $this->offline;
96 $this->offline_dir = $a_dir;
105 return $this->offline_dir;
116 $lng->loadLanguageModule(
"content");
118 $next_class = $this->ctrl->getNextClass($this);
119 $cmd = $this->ctrl->getCmd(
"listTerms");
122 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]) &&
123 !($ilAccess->checkAccess(
"visible",
"",
$_GET[
"ref_id"]) &&
124 (
$cmd ==
"infoScreen" || strtolower($next_class) ==
"ilinfoscreengui")))
126 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
129 if (
$cmd !=
"listDefinitions")
141 case "ilinfoscreengui":
155 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
156 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
157 $title = $this->glossary->getTitle();
159 $this->tpl->setTitle(
$title);
167 $_REQUEST[
"term"] =
"";
174 $term_list = $this->glossary->getTermList($_REQUEST[
"term"]);
184 global $ilNavigationHistory, $ilAccess,
$ilias,
$lng;
186 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
188 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
193 $ilNavigationHistory->addItem(
$_GET[
"ref_id"],
194 $this->ctrl->getLinkTarget($this,
"listTerms"),
"glo");
197 $term_list = $this->glossary->getTermList();
209 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
211 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
214 $this->lng->loadLanguageModule(
"meta");
215 include_once
"./Services/Table/classes/class.ilTableGUI.php";
222 $oldoffset = (is_numeric (
$_GET[
"oldoffset"]))?
$_GET[
"oldoffset"]:
$_GET[
"offset"];
224 $this->tpl->addBlockfile(
"ADM_CONTENT",
"adm_content",
"tpl.glossary_presentation.html",
"Modules/Glossary");
229 $this->tpl->setCurrentBlock(
"search_form");
230 $this->ctrl->setParameter($this,
"offset", 0);
231 $this->ctrl->setParameter($this,
"oldoffset", $oldoffset);
232 $this->tpl->setVariable(
"FORMACTION1",
233 $this->ctrl->getFormAction($this,
"searchTerms"));
234 $this->tpl->setVariable(
"TXT_TERM", $this->lng->txt(
"cont_term"));
235 $this->tpl->setVariable(
"TXT_SEARCH", $this->lng->txt(
"search"));
236 $this->tpl->setVariable(
"TXT_CLEAR", $this->lng->txt(
"clear"));
237 $this->tpl->setVariable(
"TERM",
$filter);
238 $this->tpl->parseCurrentBlock();
243 $this->tpl->addBlockfile(
"TERM_TABLE",
"term_table",
"tpl.table.html");
245 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.term_tbl_pres_row.html",
"Modules/Glossary");
253 $tbl->setTitle($this->lng->txt(
"cont_terms").(($filter==
"")?
"":
"*"));
254 $tbl->disable(
"sort");
258 if ($this->glossary->isVirtual())
260 $tbl->setHeaderNames(array($this->lng->txt(
"cont_term"),
261 $this->lng->txt(
"cont_definitions"),$this->lng->txt(
"obj_glo")));
263 $cols = array(
"term",
"definitions",
"glossary");
265 $tbl->setColumnWidth(array(
"30%",
"35%",
"35%"));
269 $tbl->setHeaderNames(array($this->lng->txt(
"cont_term"),
270 $this->lng->txt(
"cont_definitions")));
272 $cols = array(
"term",
"definitions");
274 $tbl->setColumnWidth(array(
"30%",
"70%"));
279 $header_params = $this->ctrl->getParameterArrayByClass(
"ilglossarypresentationgui",
"listTerms");
284 $header_params [
"cmd"] =
"searchTerms";
285 $header_params [
"term"] =
$filter;
286 $header_params [
"oldoffset"] =
$_GET[
"oldoffset"];
289 $tbl->setHeaderVars($cols, $header_params);
292 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
293 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
296 $_GET[
"limit"] = 99999;
298 $tbl->disable(
"sort");
299 $tbl->disable(
"footer");
301 $tbl->setOffset(
$_GET[
"offset"]);
302 $tbl->setLimit(
$_GET[
"limit"]);
305 $tbl->setFooter(
"tblfooter",$this->lng->txt(
"previous"),$this->lng->txt(
"next"));
308 $tbl->setMaxCount(count($term_list));
313 $term_list = array_slice($term_list,
$_GET[
"offset"],
$_GET[
"limit"]);
316 $tbl->setBase(
"ilias.php");
319 if (count($term_list) > 0)
322 foreach($term_list as
$key => $term)
327 for($j=0; $j<count($defs); $j++)
330 if (count($defs) > 1)
332 $this->tpl->setCurrentBlock(
"definition");
333 $this->tpl->setVariable(
"DEF_TEXT", $this->lng->txt(
"cont_definition").
" ".($j + 1));
334 $this->tpl->parseCurrentBlock();
338 $this->tpl->setCurrentBlock(
"definition");
339 $short_str = $def[
"short_text"];
342 $ltexs = strrpos($short_str,
"[tex]");
343 $ltexe = strrpos($short_str,
"[/tex]");
348 $short_str = $page->getFirstParagraphText();
349 $short_str = strip_tags($short_str,
"<br>");
350 $ltexe = strpos($short_str,
"[/tex]", $ltexs);
364 $this->tpl->setVariable(
"DEF_SHORT", $short_str);
365 $this->tpl->parseCurrentBlock();
367 $this->tpl->setCurrentBlock(
"definition_row");
368 $this->tpl->parseCurrentBlock();
372 if ($this->glossary->isVirtual())
374 $this->tpl->setCurrentBlock(
"glossary_row");
376 $this->tpl->setVariable(
"GLO_TITLE", $glo_title);
377 $this->tpl->parseCurrentBlock();
380 $this->tpl->setCurrentBlock(
"view_term");
381 $this->tpl->setVariable(
"TEXT_TERM", $term[
"term"]);
386 $this->ctrl->setParameter($this,
"term",
$filter);
387 $this->ctrl->setParameter($this,
"oldoffset",
$_GET[
"oldoffset"]);
389 $this->ctrl->setParameter($this,
"term_id", $term[
"id"]);
390 $this->ctrl->setParameter($this,
"offset",
$_GET[
"offset"]);
391 $this->tpl->setVariable(
"LINK_VIEW_TERM",
392 $this->ctrl->getLinkTarget($this,
"listDefinitions"));
393 $this->ctrl->clearParameters($this);
397 $this->tpl->setVariable(
"LINK_VIEW_TERM",
"term_".$term[
"id"].
".html");
399 $this->tpl->setVariable(
"ANCHOR_TERM",
"term_".$term[
"id"]);
400 $this->tpl->parseCurrentBlock();
402 $this->tpl->setVariable(
"CSS_ROW", $css_row);
403 $this->tpl->setVariable(
"TEXT_LANGUAGE", $this->lng->txt(
"meta_l_".$term[
"language"]));
404 $this->tpl->setCurrentBlock(
"tbl_content");
405 $this->tpl->parseCurrentBlock();
407 $this->ctrl->clearParameters($this);
412 $this->tpl->setCurrentBlock(
"notfound");
413 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
414 $this->tpl->setVariable(
"NUM_COLS", $num);
415 $this->tpl->parseCurrentBlock();
419 if (!$this->
offlineMode() && $ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
421 $this->tpl->setCurrentBlock(
"edit_glossary");
422 $this->tpl->setVariable(
"EDIT_TXT", $this->lng->txt(
"edit"));
423 $this->tpl->setVariable(
"EDIT_LINK",
424 "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".
$_GET[
"ref_id"]);
425 $this->tpl->setVariable(
"EDIT_TARGET",
"_top");
426 $this->tpl->parseCurrentBlock();
430 $this->tpl->setCurrentBlock(
"perma_link");
431 $this->tpl->setVariable(
"PERMA_LINK", ILIAS_HTTP_PATH.
432 "/goto.php?target=glo_".$_GET[
"ref_id"].
"&client_id=".CLIENT_ID);
433 $this->tpl->setVariable(
"TXT_PERMA_LINK", $this->lng->txt(
"perma_link"));
434 $this->tpl->setVariable(
"PERMA_TARGET",
"_top");
435 $this->tpl->parseCurrentBlock();
439 return $this->tpl->get();
450 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
452 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
455 require_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
456 $this->tpl->addBlockFile(
"CONTENT",
"content",
"tpl.adm_content.html");
457 $this->tpl->addBlockFile(
"STATUSLINE",
"statusline",
"tpl.statusline.html");
463 $style_name = $ilUser->prefs[
"style"].
".css";;
464 $this->tpl->setVariable(
"LOCATION_STYLESHEET",
"./".$style_name);
472 $this->tpl->setCurrentBlock(
"ContentStyle");
475 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
480 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
"content.css");
482 $this->tpl->parseCurrentBlock();
485 $this->tpl->setCurrentBlock(
"SyntaxStyle");
488 $this->tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
493 $this->tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
494 "syntaxhighlight.css");
496 $this->tpl->parseCurrentBlock();
500 $this->tpl->setTitle($this->lng->txt(
"cont_term").
": ".$term->getTerm());
503 $this->tpl->addBlockfile(
"ADM_CONTENT",
"def_list",
"tpl.glossary_definition_list.html",
"Modules/Glossary");
508 $this->tpl->setVariable(
"TXT_TERM", $term->getTerm());
509 $this->mobs = array();
511 for($j=0; $j<count($defs); $j++)
515 $page = $page_gui->getPageObject();
519 $int_links = $page->getInternalLinks();
521 $page_gui->setLinkXML($link_xml);
525 $page_gui->setOutputMode(
"offline");
528 $page_gui->setSourcecodeDownloadScript($this->
getLink(
$_GET[
"ref_id"]));
529 $page_gui->setFullscreenLink($this->
getLink(
$_GET[
"ref_id"],
"fullscreen",
$_GET[
"term_id"], $def[
"id"]));
531 $page_gui->setTemplateOutput(
false);
532 $page_gui->setRawPageContent(
true);
533 $page_gui->setFileDownloadLink($this->
getLink(
$_GET[
"ref_id"],
"downloadFile"));
536 $output = $page_gui->preview();
540 $output = $page_gui->presentation($page_gui->getOutputMode());
543 if (count($defs) > 1)
545 $this->tpl->setCurrentBlock(
"definition_header");
546 $this->tpl->setVariable(
"TXT_DEFINITION",
547 $this->lng->txt(
"cont_definition").
" ".($j+1));
548 $this->tpl->parseCurrentBlock();
551 $this->tpl->setCurrentBlock(
"definition");
552 $this->tpl->setVariable(
"PAGE_CONTENT", $output);
553 $this->tpl->parseCurrentBlock();
561 $backlist_shown =
false;
562 foreach ($sources as $src)
564 $type = explode(
':',$src[
'type']);
566 if (
$type[0] ==
'lm')
568 if (
$type[1] ==
'pg')
573 $this->tpl->setCurrentBlock(
'backlink_item');
576 foreach($ref_ids as $rid)
578 if ($ilAccess->checkAccess(
"read",
"", $rid))
585 $this->tpl->setCurrentBlock(
"backlink_item");
586 $this->tpl->setVariable(
"BACKLINK_LINK",ILIAS_HTTP_PATH.
"/goto.php?target=".
$type[1].
"_".$src[
'id']);
587 $this->tpl->setVariable(
"BACKLINK_ITEM",$lm_title.
": ".
$title);
588 $this->tpl->parseCurrentBlock();
589 $backlist_shown =
true;
596 $this->tpl->setCurrentBlock(
"backlink_list");
597 $this->tpl->setVariable(
"BACKLINK_TITLE",$this->lng->txt(
'glo_term_used_in'));
598 $this->tpl->parseCurrentBlock();
602 $this->tpl->setCurrentBlock(
"perma_link");
603 $this->tpl->setVariable(
"PERMA_LINK", ILIAS_HTTP_PATH.
606 "_".$_GET[
"term_id"].
"_".
$_GET[
"ref_id"].
"&client_id=".CLIENT_ID);
607 $this->tpl->setVariable(
"TXT_PERMA_LINK", $this->lng->txt(
"perma_link"));
608 $this->tpl->setVariable(
"PERMA_TARGET",
"_top");
609 $this->tpl->parseCurrentBlock();
615 return $this->tpl->get();
625 $html = $this->
media(
"fullscreen");
634 $this->tpl =&
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
635 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
637 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
648 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
659 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
660 $args = array(
'/_xml' => $xml,
'/_xsl' => $xsl );
670 $enlarge_path =
"images/enlarge.gif";
676 $this->ctrl->setParameter($this,
"obj_type",
"MediaObject");
679 $this->ctrl->clearParameters($this);
681 $params = array (
'mode' => $mode,
'enlarge_path' => $enlarge_path,
682 'link_params' =>
"ref_id=".
$_GET[
"ref_id"],
'fullscreen_link' => $fullscreen_link,
683 'ref_id' =>
$_GET[
"ref_id"],
'pg_frame' => $pg_frame,
'webspace_path' => $wb_path);
689 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
691 $this->tpl->parseCurrentBlock();
694 $html = $this->tpl->get();
707 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
709 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
712 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.glo_download_list.html",
"Modules/Glossary");
717 $this->tpl->setTitle($this->glossary->getTitle());
722 require_once(
"./Services/Table/classes/class.ilTableGUI.php");
726 $this->tpl->addBlockfile(
"DOWNLOAD_TABLE",
"download_table",
"tpl.table.html");
729 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/Glossary");
731 $export_files = array();
732 $types = array(
"xml",
"html");
733 foreach($types as
$type)
735 if ($this->glossary->getPublicExportFile($type) !=
"")
737 $dir = $this->glossary->getExportDirectory($type);
738 if (is_file($this->glossary->getExportDirectory($type).
"/".
739 $this->glossary->getPublicExportFile($type)))
741 $size = filesize($this->glossary->getExportDirectory($type).
"/".
742 $this->glossary->getPublicExportFile($type));
743 $export_files[] = array(
"type" => $type,
744 "file" => $this->glossary->getPublicExportFile($type),
752 $tbl->setTitle($this->lng->txt(
"download"));
754 $tbl->setHeaderNames(array($this->lng->txt(
"cont_format"),
755 $this->lng->txt(
"cont_file"),
756 $this->lng->txt(
"size"), $this->lng->txt(
"date"),
759 $cols = array(
"format",
"file",
"size",
"date",
"download");
760 $header_params = array(
"ref_id" =>
$_GET[
"ref_id"],
"obj_id" =>
$_GET[
"obj_id"],
761 "cmd" =>
"showDownloadList",
"cmdClass" => strtolower(get_class($this)));
762 $tbl->setHeaderVars($cols, $header_params);
763 $tbl->setColumnWidth(array(
"10%",
"30%",
"20%",
"20%",
"20%"));
764 $tbl->disable(
"sort");
767 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
768 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
769 $tbl->setLimit(
$_GET[
"limit"]);
770 $tbl->setOffset(
$_GET[
"offset"]);
771 $tbl->setMaxCount($this->maxcount);
773 $this->tpl->setVariable(
"COLUMN_COUNTS", 5);
777 $tbl->disable(
"footer");
779 $tbl->setMaxCount(count($export_files));
780 $export_files = array_slice($export_files,
$_GET[
"offset"],
$_GET[
"limit"]);
783 if(count($export_files) > 0)
786 foreach($export_files as $exp_file)
788 $this->tpl->setCurrentBlock(
"tbl_content");
789 $this->tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
792 $this->tpl->setVariable(
"CSS_ROW", $css_row);
794 $this->tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
795 $this->tpl->setVariable(
"TXT_FORMAT", strtoupper($exp_file[
"type"]));
796 $this->tpl->setVariable(
"CHECKBOX_ID", $exp_file[
"type"].
":".$exp_file[
"file"]);
798 $file_arr = explode(
"__", $exp_file[
"file"]);
799 $this->tpl->setVariable(
"TXT_DATE", date(
"Y-m-d H:i:s",$file_arr[0]));
801 $this->tpl->setVariable(
"TXT_DOWNLOAD", $this->lng->txt(
"download"));
802 $this->ctrl->setParameter($this,
"type", $exp_file[
"type"]);
803 $this->tpl->setVariable(
"LINK_DOWNLOAD",
804 $this->ctrl->getLinkTarget($this,
"downloadExportFile"));
806 $this->tpl->parseCurrentBlock();
811 $this->tpl->setCurrentBlock(
"notfound");
812 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
813 $this->tpl->setVariable(
"NUM_COLS", 5);
814 $this->tpl->parseCurrentBlock();
827 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
829 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
832 $file = $this->glossary->getPublicExportFile(
$_GET[
"type"]);
833 if ($this->glossary->getPublicExportFile(
$_GET[
"type"]) !=
"")
835 $dir = $this->glossary->getExportDirectory(
$_GET[
"type"]);
842 $this->ilias->raiseError($this->lng->txt(
"file_not_found"),$this->ilias->error_obj->MESSAGE);
854 global $ilias_locator;
857 require_once (
"./Modules/Glossary/classes/class.ilGlossaryLocatorGUI.php");
859 $gloss_loc->setMode(
"presentation");
860 if (!empty(
$_GET[
"term_id"]))
863 $gloss_loc->setTerm($term);
865 $gloss_loc->setGlossary($this->glossary);
867 $gloss_loc->display();
877 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
879 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
883 include_once(
"./Modules/File/classes/class.ilObjFile.php");
885 $fileObj->sendFile();
896 #include_once("classes/class.ilTabsGUI.php");
897 #$tabs_gui =& new ilTabsGUI();
900 #$this->tpl->setVariable("TABS", $tabs_gui->getHTML());
910 if ($a_layoutframes ==
"")
912 $a_layoutframes = array();
914 $link_info =
"<IntLinkInfos>";
915 foreach ($a_int_links as $int_link)
918 $target = $int_link[
"Target"];
919 if (substr($target, 0, 4) ==
"il__")
923 $type = $int_link[
"Type"];
924 $targetframe = ($int_link[
"TargetFrame"] !=
"")
925 ? $int_link[
"TargetFrame"]
929 $anc = $anc_add =
"";
930 if ($int_link[
"Anchor"] !=
"")
932 $anc = $int_link[
"Anchor"];
933 $anc_add =
"_".rawurlencode($int_link[
"Anchor"]);
936 if ($targetframe ==
"New")
948 case "StructureObject":
950 $cont_obj =& $this->content_object;
951 if (
$type ==
"PageObject")
953 $href =
"./goto.php?target=pg_".$target_id.$anc_add;
957 $href =
"./goto.php?target=st_".$target_id;
967 $href =
"term_".$target_id.
".html";
971 $this->ctrl->setParameter($this,
"term_id",
$target_id);
972 $href = $this->ctrl->getLinkTarget($this,
"listDefinitions");
973 $href = str_replace(
"&",
"&", $href);
978 $href =
"./goto.php?target=git_".$target_id;
985 $href =
"media_".$target_id.
".html";
989 $this->ctrl->setParameter($this,
"obj_type",
$type);
990 $this->ctrl->setParameter($this,
"mob_id",
$target_id);
991 $href = $this->ctrl->getLinkTarget($this,
"media");
992 $href = str_replace(
"&",
"&", $href);
996 case "RepositoryItem":
999 $href =
"./goto.php?target=".$obj_type.
"_".
$target_id;
1001 $ltarget = $t_frame;
1006 $anc_par =
'Anchor="'.$anc.
'"';
1008 $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" ".
1009 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" $anc_par/>";
1011 $this->ctrl->clearParameters($this);
1014 $link_info.=
"</IntLinkInfos>";
1023 function getLink($a_ref_id, $a_cmd =
"", $a_term_id =
"", $a_def_id =
"",
1024 $a_frame =
"", $a_type =
"")
1039 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1040 $link = $this->ctrl->getLinkTarget($this,
"fullscreen");
1041 $link = str_replace(
"&",
"&", $link);
1045 $link.=
"&cmd=".$a_cmd;
1048 $this->ctrl->setParameter($this,
"frame", $a_frame);
1050 if ($a_obj_id !=
"")
1055 $this->ctrl->setParameter($this,
"mob_id", $a_obj_id);
1059 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1065 $this->ctrl->setParameter($this,
"obj_type", $a_type);
1067 $link = $this->ctrl->getLinkTarget($this, $a_cmd);
1068 $link = str_replace(
"&",
"&", $link);
1076 case "downloadFile":
1080 $link =
"fullscreen.html";
1087 $link =
"term_".$a_obj_id.
".html";
1091 $link =
"media_".$a_obj_id.
".html";
1098 $this->ctrl->clearParameters($this);
1110 $oldoffset = (is_numeric (
$_GET[
"oldoffset"]))?
$_GET[
"oldoffset"]:
$_GET[
"offset"];
1114 if ($this->ctrl->getCmd() !=
"listDefinitions")
1116 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1118 $tabs_gui->addTarget(
"cont_terms",
1119 $this->ctrl->getLinkTarget($this,
"listTerms"),
1120 array(
"listTerms",
"searchTerms",
"clearTerms",
""),
1124 $force_active =
false;
1125 if ($this->ctrl->getCmd() ==
"showSummary" ||
1126 strtolower($this->ctrl->getNextClass()) ==
"ilinfoscreengui")
1128 $force_active =
true;
1130 $tabs_gui->addTarget(
"information_abbr",
1131 $this->ctrl->getLinkTarget($this,
"infoScreen"), array(
"infoScreen"),
1132 "ilInfoScreenGUI",
"", $force_active);
1135 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1137 if ($this->glossary->isActiveGlossaryMenu())
1140 if ($this->glossary->isActiveDownloads())
1142 $tabs_gui->addTarget(
"download",
1143 $this->ctrl->getLinkTarget($this,
"showDownloadList"),
"showDownloadList",
1151 $this->ctrl->setParameter($this,
"offset",
$_GET[
"offset"]);
1152 if (!empty ($_REQUEST[
"term"]))
1154 $this->ctrl->setParameter($this,
"term", $_REQUEST[
"term"]);
1155 $this->ctrl->setParameter($this,
"oldoffset",
$_GET[
"oldoffset"]);
1156 $back = $this->ctrl->getLinkTarget($this,
"searchTerms");
1160 $back = $this->ctrl->getLinkTarget($this,
"listTerms");
1162 $tabs_gui->setBackTarget($this->lng->txt(
"obj_glo"),
1169 $tabs_gui->addTarget(
"cont_back",
1170 "index.html#term_".
$_GET[
"term_id"],
"",
1176 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
1178 $pg_obj->send_paragraph (
$_GET[
"par_id"],
$_GET[
"downloadtitle"]);
1189 $this->ctrl->setCmd(
"showSummary");
1190 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1211 $this->lng->loadLanguageModule(
"meta");
1213 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1216 $info->enablePrivateNotes();
1219 $info->enableNews();
1220 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
1222 $info->enableNewsEditing();
1224 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1225 if ($enable_internal_rss)
1227 $info->setBlockProperty(
"news",
"settings",
true);
1232 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1249 $info->addMetaDataSections($this->glossary->getId(),0, $this->glossary->getType());
1253 $this->tpl->setContent($info->getHTML());
1254 return $this->tpl->get();
1259 $this->ctrl->forwardCommand($info);