5 require_once(
"./Services/Object/classes/class.ilObjectGUI.php");
6 require_once(
"./Modules/Glossary/classes/class.ilObjGlossary.php");
7 require_once(
"./Modules/Glossary/classes/class.ilGlossaryTermGUI.php");
8 require_once(
"./Modules/Glossary/classes/class.ilGlossaryDefinition.php");
9 require_once(
"./Modules/Glossary/classes/class.ilTermDefinitionEditorGUI.php");
10 require_once(
"./Services/COPage/classes/class.ilPCParagraph.php");
44 $this->offline =
false;
45 $this->ctrl->saveParameter($this, array(
"ref_id",
"letter",
"tax_node"));
48 include_once(
"./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
50 $this->glossary =& $this->glossary_gui->object;
54 $this->term_id = (int)
$_GET[
"term_id"];
55 $glo_ids = $this->glossary->getAllGlossaryIds();
56 if (!is_array($glo_ids))
58 $glo_ids = array($glo_ids);
61 if (!in_array($term_glo_id, $glo_ids))
67 $this->tax_id = $this->glossary->getTaxonomyId();
68 if ($this->tax_id > 0 && $this->glossary->getShowTaxonomy())
70 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
73 if ((
int)
$_GET[
"tax_node"] > 1 && $this->tax->getTree()->readRootId() !=
$_GET[
"tax_node"])
75 $this->tax_node = (int)
$_GET[
"tax_node"];
85 $this->offline = $a_offline;
93 return $this->offline;
101 $this->offline_dir = $a_dir;
110 return $this->offline_dir;
121 $lng->loadLanguageModule(
"content");
123 $next_class = $this->ctrl->getNextClass($this);
124 $cmd = $this->ctrl->getCmd(
"listTerms");
127 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]) &&
128 !($ilAccess->checkAccess(
"visible",
"",
$_GET[
"ref_id"]) &&
129 (
$cmd ==
"infoScreen" || strtolower($next_class) ==
"ilinfoscreengui")))
131 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
134 if (
$cmd !=
"listDefinitions")
139 include_once
'Services/Payment/classes/class.ilPaymentObject.php';
140 if(IS_PAYMENT_ENABLED ==
true
143 $this->tpl->getStandardTemplate();
145 include_once
'Services/Payment/classes/class.ilShopPurchaseGUI.php';
147 $ret = $this->ctrl->forwardCommand($pp);
158 case "ilinfoscreengui":
172 $this->tpl->getStandardTemplate();
173 $title = $this->glossary->getTitle();
175 $this->tpl->setTitle(
$title);
187 global $ilNavigationHistory, $ilAccess,
$ilias,
$lng, $ilToolbar,
$ilCtrl, $ilTabs;
190 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
192 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
197 $ilNavigationHistory->addItem(
$_GET[
"ref_id"],
198 $this->ctrl->getLinkTarget($this,
"listTerms"),
"glo");
201 include_once(
"./Services/Form/classes/class.ilAlphabetInputGUI.php");
203 $ai->
setLetters($this->glossary->getFirstLetters($this->tax_node));
204 $ai->setParentCommand($this,
"chooseLetter");
205 $ai->setHighlighted(
$_GET[
"letter"]);
206 $ilToolbar->addInputItem($ai,
true);
213 $ilCtrl->setParameter($this,
"term_id",
"");
215 $ilTabs->activateTab(
"terms");
230 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
232 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
235 $this->lng->loadLanguageModule(
"meta");
242 $oldoffset = (is_numeric (
$_GET[
"oldoffset"]))?
$_GET[
"oldoffset"]:
$_GET[
"offset"];
244 include_once(
"./Modules/Glossary/classes/class.ilPresentationListTableGUI.php");
250 $tpl->setContent($table->getHTML());
254 $this->tpl->setVariable(
"ADM_CONTENT", $table->getHTML());
255 return $this->tpl->get();
266 include_once(
"./Modules/Glossary/classes/class.ilPresentationListTableGUI.php");
269 $prtab->resetOffset();
270 $prtab->writeFilterToSession();
281 include_once(
"./Modules/Glossary/classes/class.ilPresentationListTableGUI.php");
284 $prtab->resetOffset();
285 $prtab->resetFilter();
306 $term_id = $this->term_id;
310 $term_id = $a_term_id;
313 if (!$ilAccess->checkAccess(
"read",
"",
$ref_id))
315 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
319 if ($this->glossary->getPresentationMode() !=
"full_def")
330 require_once(
"./Services/COPage/classes/class.ilPageObjectGUI.php");
331 $tpl->getStandardTemplate();
336 $style_name = $ilUser->prefs[
"style"].
".css";;
337 $tpl->setVariable(
"LOCATION_STYLESHEET",
"./".$style_name);
345 $tpl->setCurrentBlock(
"ContentStyle");
348 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
353 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
"content.css");
355 $tpl->parseCurrentBlock();
358 $tpl->setCurrentBlock(
"SyntaxStyle");
361 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
366 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
367 "syntaxhighlight.css");
369 $tpl->parseCurrentBlock();
372 $tpl->setTitle($this->lng->txt(
"cont_term").
": ".$term->getTerm());
375 $tpl->addBlockfile(
"ADM_CONTENT",
"def_list",
"tpl.glossary_definition_list.html",
"Modules/Glossary");
380 $this->tpl->setCurrentBlock(
"ContentStyle");
383 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
388 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
"content.css");
390 $this->tpl->parseCurrentBlock();
393 $this->tpl->setCurrentBlock(
"SyntaxStyle");
396 $this->tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
401 $this->tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
402 "syntaxhighlight.css");
404 $this->tpl->parseCurrentBlock();
406 $tpl =
new ilTemplate(
"tpl.glossary_definition_list.html",
true,
true,
"Modules/Glossary");
411 $tpl->setVariable(
"TXT_TERM", $term->getTerm());
412 $this->mobs = array();
414 for($j=0; $j<count($defs); $j++)
418 $page_gui->setStyleId($this->glossary->getStyleSheetId());
419 $page = $page_gui->getPageObject();
423 $int_links = $page->getInternalLinks();
425 $page_gui->setLinkXML($link_xml);
429 $page_gui->setOutputMode(
"offline");
433 $page_gui->setFullscreenLink($this->
getLink(
$ref_id,
"fullscreen", $term_id, $def[
"id"]));
435 $page_gui->setTemplateOutput(
false);
436 $page_gui->setRawPageContent(
true);
437 $page_gui->setFileDownloadLink($this->
getLink(
$ref_id,
"downloadFile"));
440 $output = $page_gui->preview();
444 $output = $page_gui->presentation($page_gui->getOutputMode());
447 if (count($defs) > 1)
449 $tpl->setCurrentBlock(
"definition_header");
450 $tpl->setVariable(
"TXT_DEFINITION",
451 $this->lng->txt(
"cont_definition").
" ".($j+1));
452 $tpl->parseCurrentBlock();
455 $tpl->setCurrentBlock(
"definition");
456 $tpl->setVariable(
"PAGE_CONTENT", $output);
457 $tpl->parseCurrentBlock();
465 $backlist_shown =
false;
466 foreach ($sources as $src)
468 $type = explode(
':',$src[
'type']);
470 if ($type[0] ==
'lm')
472 if ($type[1] ==
'pg')
477 $tpl->setCurrentBlock(
'backlink_item');
480 foreach($ref_ids as $rid)
482 if ($ilAccess->checkAccess(
"read",
"", $rid))
489 $tpl->setCurrentBlock(
"backlink_item");
490 $tpl->setVariable(
"BACKLINK_LINK",ILIAS_HTTP_PATH.
"/goto.php?target=".$type[1].
"_".$src[
'id']);
491 $tpl->setVariable(
"BACKLINK_ITEM",$lm_title.
": ".
$title);
492 $tpl->parseCurrentBlock();
493 $backlist_shown =
true;
500 $tpl->setCurrentBlock(
"backlink_list");
501 $tpl->setVariable(
"BACKLINK_TITLE",$this->lng->txt(
'glo_term_used_in'));
502 $tpl->parseCurrentBlock();
508 $tpl->setCurrentBlock(
"perma_link");
509 $tpl->setVariable(
"PERMA_LINK", ILIAS_HTTP_PATH.
512 "_".$term_id.
"_".
$ref_id.
"&client_id=".CLIENT_ID);
513 $tpl->setVariable(
"TXT_PERMA_LINK", $this->lng->txt(
"perma_link"));
514 $tpl->setVariable(
"PERMA_TARGET",
"_top");
515 $tpl->parseCurrentBlock();
521 include_once
'./Services/Search/classes/class.ilUserSearchCache.php';
524 $search_string = $cache->getQuery();
526 include_once(
"./Services/UIComponent/TextHighlighter/classes/class.ilTextHighlighterGUI.php");
527 include_once(
"./Services/Search/classes/class.ilQueryParser.php");
531 $words = $p->getQuotedWords();
532 if (is_array($words))
534 foreach ($words as $w)
539 $this->fill_on_load_code =
true;
560 $ilCtrl->setParameter($this,
"term_id",
"");
561 $this->ctrl->setParameter($this,
"offset",
$_GET[
"offset"]);
564 $this->ctrl->setParameter($this,
"term",
$_REQUEST[
"term"]);
565 $this->ctrl->setParameter($this,
"oldoffset",
$_GET[
"oldoffset"]);
566 $back = $ilCtrl->getLinkTarget($this,
"searchTerms");
570 $back = $ilCtrl->getLinkTarget($this,
"listTerms");
572 $ilCtrl->setParameter($this,
"term_id", $this->term_id);
573 $ilCtrl->saveParameter($this,
"term_id");
575 $ilTabs->setBackTarget($this->lng->txt(
"obj_glo"), $back);
577 $ilTabs->addTab(
"content",
578 $lng->txt(
"content"),
579 $ilCtrl->getLinkTarget($this,
"listDefinitions"));
581 $ilTabs->addTab(
"print_view",
582 $lng->txt(
"print_view"),
583 $ilCtrl->getLinkTarget($this,
"printViewSelection"));
585 $ilCtrl->setParameterByClass(
"ilglossarytermgui",
"term_id", $this->term_id);
586 $ilTabs->addNonTabbedLink(
"editing_view",
587 $lng->txt(
"glo_editing_view"),
588 $ilCtrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
"ilobjglossarygui",
"ilglossarytermgui"),
"listDefinitions"));
591 $ilTabs->activateTab($a_act);
601 $html = $this->
media(
"fullscreen");
610 $this->tpl =&
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
611 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
613 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
624 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
635 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
636 $args = array(
'/_xml' => $xml,
'/_xsl' => $xsl );
646 $enlarge_path =
"images/enlarge.png";
652 $this->ctrl->setParameter($this,
"obj_type",
"MediaObject");
655 $this->ctrl->clearParameters($this);
657 $params = array (
'mode' => $mode,
'enlarge_path' => $enlarge_path,
658 'link_params' =>
"ref_id=".
$_GET[
"ref_id"],
'fullscreen_link' => $fullscreen_link,
659 'ref_id' =>
$_GET[
"ref_id"],
'pg_frame' => $pg_frame,
'webspace_path' => $wb_path);
660 $output =
xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args, $params);
665 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
667 $this->tpl->parseCurrentBlock();
670 $html = $this->tpl->get();
683 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
685 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
688 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.glo_download_list.html",
"Modules/Glossary");
691 $ilTabs->activateTab(
"download");
694 $this->tpl->setTitle($this->glossary->getTitle());
699 require_once(
"./Services/Table/classes/class.ilTableGUI.php");
703 $this->tpl->addBlockfile(
"DOWNLOAD_TABLE",
"download_table",
"tpl.table.html");
706 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/Glossary");
708 $export_files = array();
709 $types = array(
"xml",
"html");
710 foreach($types as $type)
712 if ($this->glossary->getPublicExportFile($type) !=
"")
714 $dir = $this->glossary->getExportDirectory($type);
715 if (is_file($this->glossary->getExportDirectory($type).
"/".
716 $this->glossary->getPublicExportFile($type)))
718 $size = filesize($this->glossary->getExportDirectory($type).
"/".
719 $this->glossary->getPublicExportFile($type));
720 $export_files[] = array(
"type" => $type,
721 "file" => $this->glossary->getPublicExportFile($type),
729 $tbl->setTitle($this->lng->txt(
"download"));
731 $tbl->setHeaderNames(array($this->lng->txt(
"cont_format"),
732 $this->lng->txt(
"cont_file"),
733 $this->lng->txt(
"size"), $this->lng->txt(
"date"),
736 $cols = array(
"format",
"file",
"size",
"date",
"download");
737 $header_params = array(
"ref_id" =>
$_GET[
"ref_id"],
"obj_id" =>
$_GET[
"obj_id"],
738 "cmd" =>
"showDownloadList",
"cmdClass" => strtolower(get_class($this)));
739 $tbl->setHeaderVars($cols, $header_params);
740 $tbl->setColumnWidth(array(
"10%",
"30%",
"20%",
"20%",
"20%"));
741 $tbl->disable(
"sort");
744 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
745 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
746 $tbl->setLimit(
$_GET[
"limit"]);
747 $tbl->setOffset(
$_GET[
"offset"]);
748 $tbl->setMaxCount($this->maxcount);
750 $this->tpl->setVariable(
"COLUMN_COUNTS", 5);
754 $tbl->disable(
"footer");
756 $tbl->setMaxCount(count($export_files));
757 $export_files = array_slice($export_files,
$_GET[
"offset"],
$_GET[
"limit"]);
760 if(count($export_files) > 0)
763 foreach($export_files as $exp_file)
765 $this->tpl->setCurrentBlock(
"tbl_content");
766 $this->tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
769 $this->tpl->setVariable(
"CSS_ROW", $css_row);
771 $this->tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
772 $this->tpl->setVariable(
"TXT_FORMAT", strtoupper($exp_file[
"type"]));
773 $this->tpl->setVariable(
"CHECKBOX_ID", $exp_file[
"type"].
":".$exp_file[
"file"]);
775 $file_arr = explode(
"__", $exp_file[
"file"]);
776 $this->tpl->setVariable(
"TXT_DATE", date(
"Y-m-d H:i:s",$file_arr[0]));
778 $this->tpl->setVariable(
"TXT_DOWNLOAD", $this->lng->txt(
"download"));
779 $this->ctrl->setParameter($this,
"type", $exp_file[
"type"]);
780 $this->tpl->setVariable(
"LINK_DOWNLOAD",
781 $this->ctrl->getLinkTarget($this,
"downloadExportFile"));
783 $this->tpl->parseCurrentBlock();
788 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
789 $this->tpl->setVariable(
"NUM_COLS", 5);
790 $this->tpl->parseCurrentBlock();
803 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
805 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
808 $file = $this->glossary->getPublicExportFile(
$_GET[
"type"]);
809 if ($this->glossary->getPublicExportFile(
$_GET[
"type"]) !=
"")
811 $dir = $this->glossary->getExportDirectory(
$_GET[
"type"]);
812 if (is_file($dir.
"/".
$file))
818 $this->ilias->raiseError($this->lng->txt(
"file_not_found"),$this->ilias->error_obj->MESSAGE);
831 require_once (
"./Modules/Glossary/classes/class.ilGlossaryLocatorGUI.php");
833 $gloss_loc->setMode(
"presentation");
834 if (!empty($this->term_id))
837 $gloss_loc->setTerm($term);
839 $gloss_loc->setGlossary($this->glossary);
841 $gloss_loc->display();
851 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
853 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
857 include_once(
"./Modules/File/classes/class.ilObjFile.php");
859 $fileObj->sendFile();
878 if ($a_layoutframes ==
"")
880 $a_layoutframes = array();
882 $link_info =
"<IntLinkInfos>";
883 foreach ($a_int_links as $int_link)
886 $target = $int_link[
"Target"];
887 if (substr($target, 0, 4) ==
"il__")
891 $type = $int_link[
"Type"];
892 $targetframe = ($int_link[
"TargetFrame"] !=
"")
893 ? $int_link[
"TargetFrame"]
897 $anc = $anc_add =
"";
898 if ($int_link[
"Anchor"] !=
"")
900 $anc = $int_link[
"Anchor"];
901 $anc_add =
"_".rawurlencode($int_link[
"Anchor"]);
904 if ($targetframe ==
"New")
916 case "StructureObject":
918 $cont_obj =& $this->content_object;
919 if ($type ==
"PageObject")
921 $href =
"./goto.php?target=pg_".$target_id.$anc_add;
925 $href =
"./goto.php?target=st_".$target_id;
935 $href =
"term_".$target_id.
".html";
939 $this->ctrl->setParameter($this,
"term_id",
$target_id);
940 $href = $this->ctrl->getLinkTarget($this,
"listDefinitions");
941 $href = str_replace(
"&",
"&", $href);
946 $href =
"./goto.php?target=git_".$target_id;
953 $href =
"media_".$target_id.
".html";
957 $this->ctrl->setParameter($this,
"obj_type", $type);
958 $this->ctrl->setParameter($this,
"mob_id",
$target_id);
959 $href = $this->ctrl->getLinkTarget($this,
"media");
960 $href = str_replace(
"&",
"&", $href);
964 case "RepositoryItem":
967 $href =
"./goto.php?target=".$obj_type.
"_".
$target_id;
974 $anc_par =
'Anchor="'.$anc.
'"';
976 $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" ".
977 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" $anc_par/>";
979 $this->ctrl->clearParameters($this);
982 $link_info.=
"</IntLinkInfos>";
991 function getLink($a_ref_id, $a_cmd =
"", $a_term_id =
"", $a_def_id =
"",
992 $a_frame =
"", $a_type =
"")
1007 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1008 $link = $this->ctrl->getLinkTarget($this,
"fullscreen");
1012 $link.=
"&cmd=".$a_cmd;
1015 $this->ctrl->setParameter($this,
"frame", $a_frame);
1017 if ($a_obj_id !=
"")
1022 $this->ctrl->setParameter($this,
"mob_id", $a_obj_id);
1026 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1032 $this->ctrl->setParameter($this,
"obj_type", $a_type);
1034 $link = $this->ctrl->getLinkTarget($this, $a_cmd);
1043 case "downloadFile":
1047 $link =
"fullscreen.html";
1054 $link =
"term_".$a_obj_id.
".html";
1058 $link =
"media_".$a_obj_id.
".html";
1065 $this->ctrl->clearParameters($this);
1079 $ilCtrl->saveParameter($this,
"term_id");
1081 if ((
int) $this->term_id == 0)
1084 $ilTabs->activateTab(
"print_view");
1090 $tpl->setTitle($this->lng->txt(
"cont_term").
": ".$term->getTerm());
1096 $tpl->setContent($this->form->getHTML());
1106 $terms = $this->glossary->getTermList();
1108 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1110 $this->form->setTarget(
"print_view");
1111 $this->form->setFormAction($ilCtrl->getFormAction($this));
1118 if ((
int) $this->term_id > 0)
1120 $op1 =
new ilRadioOption($lng->txt(
"cont_current_term"),
"term");
1121 $radg->addOption($op1);
1127 .
" (".$lng->txt(
"cont_terms").
": ".count($terms).
")",
"glossary");
1128 $radg->addOption($op2);
1131 if (($t_id = $this->glossary->getTaxonomyId()) > 0 && $this->glossary->getShowTaxonomy())
1133 $op4 =
new ilRadioOption($lng->txt(
"cont_selected_topic"),
"sel_topic");
1134 $radg->addOption($op4);
1137 include_once(
"./Services/Taxonomy/classes/class.ilTaxAssignInputGUI.php");
1140 if ($this->tax_node > 0)
1142 $si->setValue((
int) $this->tax_node);
1144 $op4->addSubItem(
$si);
1149 $op3=
new ilRadioOption($lng->txt(
"cont_selected_terms"),
"selection");
1150 $radg->addOption($op3);
1152 include_once(
"./Services/Form/classes/class.ilNestedListInputGUI.php");
1154 $op3->addSubItem($nl);
1156 foreach ($terms as
$t)
1158 $nl->addListNode($t[
"id"], $t[
"term"], 0,
false,
false);
1161 $this->form->addItem($radg);
1163 $this->form->addCommandButton(
"printView", $lng->txt(
"cont_show_print_view"));
1165 $this->form->setTitle($lng->txt(
"cont_print_selection"));
1176 global $ilAccess,
$tpl;
1178 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1184 switch (
$_POST[
"sel_type"])
1187 $ts = $this->glossary->getTermList();
1190 $terms[] = $t[
"id"];
1195 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
1196 $t_id = $this->glossary->getTaxonomyId();
1198 foreach ($items as $i)
1200 if ($i[
"item_type"] ==
"term")
1202 $terms[] = $i[
"item_id"];
1208 if (is_array($_POST[
"obj_id"]))
1210 $terms = $_POST[
"obj_id"];
1219 $terms = array($this->term_id);
1223 $tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
1239 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
1244 foreach ($terms as $t_id)
1248 $tpl->setVariable(
"CONTENT", $page_content.
1249 '<script type="text/javascript" language="javascript1.2">
1251 il.Util.addOnLoad(function () {
1267 $ilHelp->setScreenIdComponent(
"glo");
1269 $oldoffset = (is_numeric (
$_GET[
"oldoffset"]))?
$_GET[
"oldoffset"]:
$_GET[
"offset"];
1273 if ($this->ctrl->getCmd() !=
"listDefinitions")
1275 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1277 $tabs_gui->addTab(
"terms",
1278 $lng->txt(
"cont_terms"),
1279 $ilCtrl->getLinkTarget($this,
"listTerms"));
1282 $tabs_gui->addTab(
"info",
1283 $lng->txt(
"info_short"),
1284 $ilCtrl->getLinkTarget($this,
"infoScreen"));
1286 $tabs_gui->addTab(
"print_view",
1287 $lng->txt(
"cont_print_view"),
1288 $ilCtrl->getLinkTarget($this,
"printViewSelection"));
1291 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1296 if ($this->glossary->isActiveDownloads())
1298 $tabs_gui->addTab(
"download",
1299 $lng->txt(
"download"),
1300 $ilCtrl->getLinkTarget($this,
"showDownloadList"));
1305 if ($ilAccess->checkAccess(
"write",
"", (
int)
$_GET[
"ref_id"]))
1307 $tabs_gui->addNonTabbedLink(
"editing_view",
1308 $lng->txt(
"glo_editing_view"),
1309 "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".(int) $_GET[
"ref_id"],
1317 $tabs_gui->addTarget(
"cont_back",
1318 "index.html#term_".$this->term_id,
"",
1324 include_once(
"./Services/COPage/classes/class.ilPageObject.php");
1326 $pg_obj->send_paragraph (
$_GET[
"par_id"],
$_GET[
"downloadtitle"]);
1337 $this->ctrl->setCmd(
"showSummary");
1338 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1356 global
$ilBench, $ilAccess, $ilTabs;
1359 $ilTabs->activateTab(
"info");
1360 $this->lng->loadLanguageModule(
"meta");
1362 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1365 $info->enablePrivateNotes();
1368 $info->enableNews();
1369 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
1371 $info->enableNewsEditing();
1373 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1374 if ($enable_internal_rss)
1376 $info->setBlockProperty(
"news",
"settings",
true);
1381 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1398 $info->addMetaDataSections($this->glossary->getId(),0, $this->glossary->getType());
1400 include_once(
"./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
1405 $this->tpl->setContent($info->getHTML());
1406 return $this->tpl->get();
1411 $this->ctrl->forwardCommand($info);
1425 $ilCtrl->redirect($this,
"listTerms");
1438 if (!$this->
offlineMode() && $this->glossary->getShowTaxonomy())
1440 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
1442 if (count($tax_ids) > 0)
1444 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomyGUI.php");
1446 "ilglossarypresentationgui",
"listTerms", $lng->txt(
"cont_all_topics")));