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":
162 case "ilpresentationlisttablegui":
164 $this->ctrl->forwardCommand($prtab);
178 $this->tpl->getStandardTemplate();
179 $title = $this->glossary->getTitle();
181 $this->tpl->setTitle($title);
193 global $ilNavigationHistory, $ilAccess,
$ilias,
$lng, $ilToolbar,
$ilCtrl, $ilTabs;
196 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
198 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
203 $ilNavigationHistory->addItem(
$_GET[
"ref_id"],
204 $this->ctrl->getLinkTarget($this,
"listTerms"),
"glo");
207 include_once(
"./Services/Form/classes/class.ilAlphabetInputGUI.php");
209 $ai->
setLetters($this->glossary->getFirstLetters($this->tax_node));
210 $ai->setParentCommand($this,
"chooseLetter");
211 $ai->setHighlighted(
$_GET[
"letter"]);
212 $ilToolbar->addInputItem($ai,
true);
219 $ilCtrl->setParameter($this,
"term_id",
"");
221 $ilTabs->activateTab(
"terms");
236 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
238 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
241 $this->lng->loadLanguageModule(
"meta");
248 $oldoffset = (is_numeric (
$_GET[
"oldoffset"]))?
$_GET[
"oldoffset"]:
$_GET[
"offset"];
250 if ($this->glossary->getPresentationMode() ==
"full_def")
253 $this->tpl->setCurrentBlock(
"ContentStyle");
256 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
261 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
"content.css");
263 $this->tpl->parseCurrentBlock();
266 $this->tpl->setCurrentBlock(
"SyntaxStyle");
269 $this->tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
274 $this->tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
275 "syntaxhighlight.css");
277 $this->tpl->parseCurrentBlock();
285 $tpl->setContent($ilCtrl->getHTML($table));
289 $this->tpl->setVariable(
"ADM_CONTENT", $table->getHTML());
290 return $this->tpl->get();
302 include_once(
"./Modules/Glossary/classes/class.ilPresentationListTableGUI.php");
304 $this->
offlineMode(), $this->tax_node, $this->glossary->getTaxonomyId());
316 $prtab->resetOffset();
317 $prtab->writeFilterToSession();
329 $prtab->resetOffset();
330 $prtab->resetFilter();
351 $term_id = $this->term_id;
355 $term_id = $a_term_id;
358 if (!$ilAccess->checkAccess(
"read",
"",
$ref_id))
360 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
364 if ($this->glossary->getPresentationMode() !=
"full_def")
375 require_once(
"./Modules/Glossary/classes/class.ilGlossaryDefPageGUI.php");
376 $tpl->getStandardTemplate();
381 $style_name = $ilUser->prefs[
"style"].
".css";;
382 $tpl->setVariable(
"LOCATION_STYLESHEET",
"./".$style_name);
390 $tpl->setCurrentBlock(
"ContentStyle");
393 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
398 $tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
"content.css");
400 $tpl->parseCurrentBlock();
403 $tpl->setCurrentBlock(
"SyntaxStyle");
406 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
411 $tpl->setVariable(
"LOCATION_SYNTAX_STYLESHEET",
412 "syntaxhighlight.css");
414 $tpl->parseCurrentBlock();
417 $tpl->setTitle($this->lng->txt(
"cont_term").
": ".$term->getTerm());
420 $tpl->addBlockfile(
"ADM_CONTENT",
"def_list",
"tpl.glossary_definition_list.html",
"Modules/Glossary");
424 $tpl =
new ilTemplate(
"tpl.glossary_definition_list.html",
true,
true,
"Modules/Glossary");
429 $tpl->setVariable(
"TXT_TERM", $term->getTerm());
430 $this->mobs = array();
432 for($j=0; $j<count($defs); $j++)
436 $page_gui->setStyleId($this->glossary->getStyleSheetId());
437 $page = $page_gui->getPageObject();
441 $int_links = $page->getInternalLinks();
443 $page_gui->setLinkXML($link_xml);
447 $page_gui->setOutputMode(
"offline");
451 $page_gui->setFullscreenLink($this->
getLink(
$ref_id,
"fullscreen", $term_id, $def[
"id"]));
453 $page_gui->setTemplateOutput(
false);
454 $page_gui->setRawPageContent(
true);
455 $page_gui->setFileDownloadLink($this->
getLink(
$ref_id,
"downloadFile"));
458 $output = $page_gui->preview();
462 $output = $page_gui->presentation($page_gui->getOutputMode());
465 if (count($defs) > 1)
467 $tpl->setCurrentBlock(
"definition_header");
468 $tpl->setVariable(
"TXT_DEFINITION",
469 $this->lng->txt(
"cont_definition").
" ".($j+1));
470 $tpl->parseCurrentBlock();
473 $tpl->setCurrentBlock(
"definition");
474 $tpl->setVariable(
"PAGE_CONTENT", $output);
475 $tpl->parseCurrentBlock();
483 $backlist_shown =
false;
484 foreach ($sources as $src)
486 $type = explode(
':',$src[
'type']);
488 if ($type[0] ==
'lm')
490 if ($type[1] ==
'pg')
495 $tpl->setCurrentBlock(
'backlink_item');
498 foreach($ref_ids as $rid)
500 if ($ilAccess->checkAccess(
"read",
"", $rid))
507 $tpl->setCurrentBlock(
"backlink_item");
508 $tpl->setVariable(
"BACKLINK_LINK",ILIAS_HTTP_PATH.
"/goto.php?target=".$type[1].
"_".$src[
'id']);
509 $tpl->setVariable(
"BACKLINK_ITEM",$lm_title.
": ".$title);
510 $tpl->parseCurrentBlock();
511 $backlist_shown =
true;
518 $tpl->setCurrentBlock(
"backlink_list");
519 $tpl->setVariable(
"BACKLINK_TITLE",$this->lng->txt(
'glo_term_used_in'));
520 $tpl->parseCurrentBlock();
526 $tpl->setCurrentBlock(
"perma_link");
527 $tpl->setVariable(
"PERMA_LINK", ILIAS_HTTP_PATH.
530 "_".$term_id.
"_".
$ref_id.
"&client_id=".CLIENT_ID);
531 $tpl->setVariable(
"TXT_PERMA_LINK", $this->lng->txt(
"perma_link"));
532 $tpl->setVariable(
"PERMA_TARGET",
"_top");
533 $tpl->parseCurrentBlock();
539 include_once
'./Services/Search/classes/class.ilUserSearchCache.php';
542 $search_string = $cache->getQuery();
544 include_once(
"./Services/UIComponent/TextHighlighter/classes/class.ilTextHighlighterGUI.php");
545 include_once(
"./Services/Search/classes/class.ilQueryParser.php");
549 $words = $p->getQuotedWords();
550 if (is_array($words))
552 foreach ($words as $w)
557 $this->fill_on_load_code =
true;
578 $ilCtrl->setParameter($this,
"term_id",
"");
579 $this->ctrl->setParameter($this,
"offset",
$_GET[
"offset"]);
582 $this->ctrl->setParameter($this,
"term",
$_REQUEST[
"term"]);
583 $this->ctrl->setParameter($this,
"oldoffset",
$_GET[
"oldoffset"]);
584 $back = $ilCtrl->getLinkTarget($this,
"searchTerms");
588 $back = $ilCtrl->getLinkTarget($this,
"listTerms");
590 $ilCtrl->setParameter($this,
"term_id", $this->term_id);
591 $ilCtrl->saveParameter($this,
"term_id");
593 $ilTabs->setBackTarget($this->lng->txt(
"obj_glo"), $back);
595 $ilTabs->addTab(
"content",
596 $lng->txt(
"content"),
597 $ilCtrl->getLinkTarget($this,
"listDefinitions"));
599 $ilTabs->addTab(
"print_view",
600 $lng->txt(
"print_view"),
601 $ilCtrl->getLinkTarget($this,
"printViewSelection"));
603 $ilCtrl->setParameterByClass(
"ilglossarytermgui",
"term_id", $this->term_id);
604 $ilTabs->addNonTabbedLink(
"editing_view",
605 $lng->txt(
"glo_editing_view"),
606 $ilCtrl->getLinkTargetByClass(array(
"ilglossaryeditorgui",
"ilobjglossarygui",
"ilglossarytermgui"),
"listDefinitions"));
609 $ilTabs->activateTab($a_act);
619 $html = $this->
media(
"fullscreen");
628 $this->tpl =&
new ilTemplate(
"tpl.fullscreen.html",
true,
true,
"Services/COPage");
629 include_once(
"./Services/Style/classes/class.ilObjStyleSheet.php");
631 $this->tpl->setVariable(
"LOCATION_CONTENT_STYLESHEET",
642 require_once(
"./Services/MediaObjects/classes/class.ilObjMediaObject.php");
653 $xsl = file_get_contents(
"./Services/COPage/xsl/page.xsl");
654 $args = array(
'/_xml' => $xml,
'/_xsl' => $xsl );
664 $enlarge_path =
"images/enlarge.png";
670 $this->ctrl->setParameter($this,
"obj_type",
"MediaObject");
673 $this->ctrl->clearParameters($this);
675 $params = array (
'mode' => $mode,
'enlarge_path' => $enlarge_path,
676 'link_params' =>
"ref_id=".
$_GET[
"ref_id"],
'fullscreen_link' => $fullscreen_link,
677 'ref_id' =>
$_GET[
"ref_id"],
'pg_frame' => $pg_frame,
'webspace_path' => $wb_path);
678 $output =
xslt_process($xh,
"arg:/_xml",
"arg:/_xsl",NULL,$args, $params);
683 $this->tpl->setVariable(
"MEDIA_CONTENT", $output);
685 $this->tpl->parseCurrentBlock();
688 $html = $this->tpl->get();
701 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
703 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
706 $this->tpl->addBlockFile(
"ADM_CONTENT",
"adm_content",
"tpl.glo_download_list.html",
"Modules/Glossary");
709 $ilTabs->activateTab(
"download");
712 $this->tpl->setTitle($this->glossary->getTitle());
717 require_once(
"./Services/Table/classes/class.ilTableGUI.php");
721 $this->tpl->addBlockfile(
"DOWNLOAD_TABLE",
"download_table",
"tpl.table.html");
724 $this->tpl->addBlockfile(
"TBL_CONTENT",
"tbl_content",
"tpl.download_file_row.html",
"Modules/Glossary");
726 $export_files = array();
727 $types = array(
"xml",
"html");
728 foreach($types as $type)
730 if ($this->glossary->getPublicExportFile($type) !=
"")
732 $dir = $this->glossary->getExportDirectory($type);
733 if (is_file($this->glossary->getExportDirectory($type).
"/".
734 $this->glossary->getPublicExportFile($type)))
736 $size = filesize($this->glossary->getExportDirectory($type).
"/".
737 $this->glossary->getPublicExportFile($type));
738 $export_files[] = array(
"type" => $type,
739 "file" => $this->glossary->getPublicExportFile($type),
747 $tbl->setTitle($this->lng->txt(
"download"));
749 $tbl->setHeaderNames(array($this->lng->txt(
"cont_format"),
750 $this->lng->txt(
"cont_file"),
751 $this->lng->txt(
"size"), $this->lng->txt(
"date"),
754 $cols = array(
"format",
"file",
"size",
"date",
"download");
755 $header_params = array(
"ref_id" =>
$_GET[
"ref_id"],
"obj_id" =>
$_GET[
"obj_id"],
756 "cmd" =>
"showDownloadList",
"cmdClass" => strtolower(get_class($this)));
757 $tbl->setHeaderVars($cols, $header_params);
758 $tbl->setColumnWidth(array(
"10%",
"30%",
"20%",
"20%",
"20%"));
759 $tbl->disable(
"sort");
762 $tbl->setOrderColumn(
$_GET[
"sort_by"]);
763 $tbl->setOrderDirection(
$_GET[
"sort_order"]);
764 $tbl->setLimit(
$_GET[
"limit"]);
765 $tbl->setOffset(
$_GET[
"offset"]);
766 $tbl->setMaxCount($this->maxcount);
768 $this->tpl->setVariable(
"COLUMN_COUNTS", 5);
772 $tbl->disable(
"footer");
774 $tbl->setMaxCount(count($export_files));
775 $export_files = array_slice($export_files,
$_GET[
"offset"],
$_GET[
"limit"]);
778 if(count($export_files) > 0)
781 foreach($export_files as $exp_file)
783 $this->tpl->setCurrentBlock(
"tbl_content");
784 $this->tpl->setVariable(
"TXT_FILENAME", $exp_file[
"file"]);
787 $this->tpl->setVariable(
"CSS_ROW", $css_row);
789 $this->tpl->setVariable(
"TXT_SIZE", $exp_file[
"size"]);
790 $this->tpl->setVariable(
"TXT_FORMAT", strtoupper($exp_file[
"type"]));
791 $this->tpl->setVariable(
"CHECKBOX_ID", $exp_file[
"type"].
":".$exp_file[
"file"]);
793 $file_arr = explode(
"__", $exp_file[
"file"]);
794 $this->tpl->setVariable(
"TXT_DATE", date(
"Y-m-d H:i:s",$file_arr[0]));
796 $this->tpl->setVariable(
"TXT_DOWNLOAD", $this->lng->txt(
"download"));
797 $this->ctrl->setParameter($this,
"type", $exp_file[
"type"]);
798 $this->tpl->setVariable(
"LINK_DOWNLOAD",
799 $this->ctrl->getLinkTarget($this,
"downloadExportFile"));
801 $this->tpl->parseCurrentBlock();
806 $this->tpl->setVariable(
"TXT_OBJECT_NOT_FOUND", $this->lng->txt(
"obj_not_found"));
807 $this->tpl->setVariable(
"NUM_COLS", 5);
808 $this->tpl->parseCurrentBlock();
821 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
823 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
826 $file = $this->glossary->getPublicExportFile(
$_GET[
"type"]);
827 if ($this->glossary->getPublicExportFile(
$_GET[
"type"]) !=
"")
829 $dir = $this->glossary->getExportDirectory(
$_GET[
"type"]);
830 if (is_file($dir.
"/".
$file))
836 $this->ilias->raiseError($this->lng->txt(
"file_not_found"),$this->ilias->error_obj->MESSAGE);
849 require_once (
"./Modules/Glossary/classes/class.ilGlossaryLocatorGUI.php");
851 $gloss_loc->setMode(
"presentation");
852 if (!empty($this->term_id))
855 $gloss_loc->setTerm($term);
857 $gloss_loc->setGlossary($this->glossary);
859 $gloss_loc->display();
869 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
871 $ilias->raiseError($lng->txt(
"permission_denied"),$ilias->error_obj->MESSAGE);
875 include_once(
"./Modules/File/classes/class.ilObjFile.php");
877 $fileObj->sendFile();
896 if ($a_layoutframes ==
"")
898 $a_layoutframes = array();
900 $link_info =
"<IntLinkInfos>";
901 foreach ($a_int_links as $int_link)
904 $target = $int_link[
"Target"];
905 if (substr($target, 0, 4) ==
"il__")
909 $type = $int_link[
"Type"];
910 $targetframe = ($int_link[
"TargetFrame"] !=
"")
911 ? $int_link[
"TargetFrame"]
915 $anc = $anc_add =
"";
916 if ($int_link[
"Anchor"] !=
"")
918 $anc = $int_link[
"Anchor"];
919 $anc_add =
"_".rawurlencode($int_link[
"Anchor"]);
922 if ($targetframe ==
"New")
934 case "StructureObject":
936 $cont_obj =& $this->content_object;
937 if ($type ==
"PageObject")
939 $href =
"./goto.php?target=pg_".$target_id.$anc_add;
943 $href =
"./goto.php?target=st_".$target_id;
953 $href =
"term_".$target_id.
".html";
957 $this->ctrl->setParameter($this,
"term_id",
$target_id);
958 $href = $this->ctrl->getLinkTarget($this,
"listDefinitions");
959 $href = str_replace(
"&",
"&", $href);
964 $href =
"./goto.php?target=git_".$target_id;
971 $href =
"media_".$target_id.
".html";
975 $this->ctrl->setParameter($this,
"obj_type", $type);
976 $this->ctrl->setParameter($this,
"mob_id",
$target_id);
977 $href = $this->ctrl->getLinkTarget($this,
"media");
978 $href = str_replace(
"&",
"&", $href);
982 case "RepositoryItem":
985 $href =
"./goto.php?target=".$obj_type.
"_".
$target_id;
991 include_once(
"./Modules/Wiki/classes/class.ilWikiPage.php");
996 $anc_par =
'Anchor="'.$anc.
'"';
998 $link_info.=
"<IntLinkInfo Target=\"$target\" Type=\"$type\" ".
999 "TargetFrame=\"$targetframe\" LinkHref=\"$href\" LinkTarget=\"$ltarget\" $anc_par/>";
1001 $this->ctrl->clearParameters($this);
1004 $link_info.=
"</IntLinkInfos>";
1013 function getLink($a_ref_id, $a_cmd =
"", $a_term_id =
"", $a_def_id =
"",
1014 $a_frame =
"", $a_type =
"")
1029 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1030 $link = $this->ctrl->getLinkTarget($this,
"fullscreen");
1034 $link.=
"&cmd=".$a_cmd;
1037 $this->ctrl->setParameter($this,
"frame", $a_frame);
1039 if ($a_obj_id !=
"")
1044 $this->ctrl->setParameter($this,
"mob_id", $a_obj_id);
1048 $this->ctrl->setParameter($this,
"def_id", $a_def_id);
1054 $this->ctrl->setParameter($this,
"obj_type", $a_type);
1056 $link = $this->ctrl->getLinkTarget($this, $a_cmd);
1065 case "downloadFile":
1069 $link =
"fullscreen.html";
1076 $link =
"term_".$a_obj_id.
".html";
1080 $link =
"media_".$a_obj_id.
".html";
1087 $this->ctrl->clearParameters($this);
1101 $ilCtrl->saveParameter($this,
"term_id");
1103 if ((
int) $this->term_id == 0)
1106 $ilTabs->activateTab(
"print_view");
1112 $tpl->setTitle($this->lng->txt(
"cont_term").
": ".$term->getTerm());
1118 $tpl->setContent($this->form->getHTML());
1128 $terms = $this->glossary->getTermList();
1130 include_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
1132 $this->form->setTarget(
"print_view");
1133 $this->form->setFormAction($ilCtrl->getFormAction($this));
1140 if ((
int) $this->term_id > 0)
1142 $op1 =
new ilRadioOption($lng->txt(
"cont_current_term"),
"term");
1143 $radg->addOption($op1);
1149 .
" (".$lng->txt(
"cont_terms").
": ".count($terms).
")",
"glossary");
1150 $radg->addOption($op2);
1153 if (($t_id = $this->glossary->getTaxonomyId()) > 0 && $this->glossary->getShowTaxonomy())
1155 $op4 =
new ilRadioOption($lng->txt(
"cont_selected_topic"),
"sel_topic");
1156 $radg->addOption($op4);
1159 include_once(
"./Services/Taxonomy/classes/class.ilTaxAssignInputGUI.php");
1162 if ($this->tax_node > 0)
1164 $si->setValue((
int) $this->tax_node);
1166 $op4->addSubItem(
$si);
1171 $op3=
new ilRadioOption($lng->txt(
"cont_selected_terms"),
"selection");
1172 $radg->addOption($op3);
1174 include_once(
"./Services/Form/classes/class.ilNestedListInputGUI.php");
1176 $op3->addSubItem($nl);
1178 foreach ($terms as
$t)
1180 $nl->addListNode($t[
"id"], $t[
"term"], 0,
false,
false);
1183 $this->form->addItem($radg);
1185 $this->form->addCommandButton(
"printView", $lng->txt(
"cont_show_print_view"));
1187 $this->form->setTitle($lng->txt(
"cont_print_selection"));
1198 global $ilAccess,
$tpl;
1200 if (!$ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1206 switch (
$_POST[
"sel_type"])
1209 $ts = $this->glossary->getTermList();
1212 $terms[] = $t[
"id"];
1217 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
1218 $t_id = $this->glossary->getTaxonomyId();
1220 foreach ($items as $i)
1222 if ($i[
"item_type"] ==
"term")
1224 $terms[] = $i[
"item_id"];
1230 if (is_array(
$_POST[
"obj_id"]))
1232 $terms =
$_POST[
"obj_id"];
1241 $terms = array($this->term_id);
1245 $tpl =
new ilTemplate(
"tpl.main.html",
true,
true);
1261 include_once(
"./Services/jQuery/classes/class.iljQueryUtil.php");
1266 foreach ($terms as $t_id)
1270 $tpl->setVariable(
"CONTENT", $page_content.
1271 '<script type="text/javascript" language="javascript1.2">
1273 il.Util.addOnLoad(function () {
1289 $ilHelp->setScreenIdComponent(
"glo");
1291 $oldoffset = (is_numeric (
$_GET[
"oldoffset"]))?
$_GET[
"oldoffset"]:
$_GET[
"offset"];
1295 if ($this->ctrl->getCmd() !=
"listDefinitions")
1297 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1299 $tabs_gui->addTab(
"terms",
1300 $lng->txt(
"cont_terms"),
1301 $ilCtrl->getLinkTarget($this,
"listTerms"));
1304 $tabs_gui->addTab(
"info",
1305 $lng->txt(
"info_short"),
1306 $ilCtrl->getLinkTarget($this,
"infoScreen"));
1308 $tabs_gui->addTab(
"print_view",
1309 $lng->txt(
"cont_print_view"),
1310 $ilCtrl->getLinkTarget($this,
"printViewSelection"));
1313 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1318 if ($this->glossary->isActiveDownloads())
1320 $tabs_gui->addTab(
"download",
1321 $lng->txt(
"download"),
1322 $ilCtrl->getLinkTarget($this,
"showDownloadList"));
1327 if ($ilAccess->checkAccess(
"write",
"", (
int)
$_GET[
"ref_id"]) ||
1328 $ilAccess->checkAccess(
"edit_content",
"", (
int) $_GET[
"ref_id"]))
1330 $tabs_gui->addNonTabbedLink(
"editing_view",
1331 $lng->txt(
"glo_editing_view"),
1332 "ilias.php?baseClass=ilGlossaryEditorGUI&ref_id=".(int) $_GET[
"ref_id"],
1340 $tabs_gui->addTarget(
"cont_back",
1341 "index.html#term_".$this->term_id,
"",
1347 include_once(
"./Modules/Glossary/classes/class.ilGlossaryDefPage.php");
1349 $pg_obj->send_paragraph (
$_GET[
"par_id"],
$_GET[
"downloadtitle"]);
1360 $this->ctrl->setCmd(
"showSummary");
1361 $this->ctrl->setCmdClass(
"ilinfoscreengui");
1379 global
$ilBench, $ilAccess, $ilTabs;
1382 $ilTabs->activateTab(
"info");
1383 $this->lng->loadLanguageModule(
"meta");
1385 include_once(
"./Services/InfoScreen/classes/class.ilInfoScreenGUI.php");
1388 $info->enablePrivateNotes();
1391 $info->enableNews();
1392 if ($ilAccess->checkAccess(
"write",
"",
$_GET[
"ref_id"]))
1394 $info->enableNewsEditing();
1396 $enable_internal_rss = $news_set->get(
"enable_rss_for_internal");
1397 if ($enable_internal_rss)
1399 $info->setBlockProperty(
"news",
"settings",
true);
1404 if ($ilAccess->checkAccess(
"read",
"",
$_GET[
"ref_id"]))
1421 $info->addMetaDataSections($this->glossary->getId(),0, $this->glossary->getType());
1423 include_once(
"./Modules/Glossary/classes/class.ilObjGlossaryGUI.php");
1428 $this->tpl->setContent($info->getHTML());
1429 return $this->tpl->get();
1434 $this->ctrl->forwardCommand($info);
1448 $ilCtrl->redirect($this,
"listTerms");
1460 if (!$this->
offlineMode() && $this->glossary->getShowTaxonomy())
1462 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomy.php");
1464 if (count($tax_ids) > 0)
1466 include_once(
"./Services/Taxonomy/classes/class.ilTaxonomyExplorerGUI.php");
1468 "ilglossarypresentationgui",
"listTerms");
1469 if (!$tax_exp->handleCommand())
1472 $tpl->setLeftContent($tax_exp->getHTML().
" ");
1477 include_once(
"./Services/Taxonomy/classes/class.ilObjTaxonomyGUI.php");
1479 "ilglossarypresentationgui",
"listTerms", $lng->txt(
"cont_all_topics")));