3 require_once
"./Modules/Bibliographic/classes/class.ilBibliographicEntry.php";
4 require_once
"./Modules/Bibliographic/classes/Admin/class.ilBibliographicSetting.php";
5 require_once(
'./Modules/Bibliographic/classes/Types/BibTex/class.ilBibTex.php');
6 require_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
7 require_once(
'./Modules/Bibliographic/classes/Types/Ris/class.ilRis.php');
45 public function getHTML() {
48 $ilTabs = $DIC[
'ilTabs'];
51 $ilHelp = $DIC[
'ilHelp'];
55 $ilHelp->setScreenIdComponent(
'bibl');
58 $ilTabs->clearTargets();
59 $ilTabs->setBackTarget(
$lng->txt(
"back"),
$ilCtrl->getLinkTarget($this,
'showContent'));
60 $form->setTitle(
$lng->txt(
'detail_view'));
63 $link = $set->get(strtolower($this->bibl_obj->getFiletype()));
65 $form->addCommandButton(
'autoLink',
'Link');
68 $attributes = $this->entry->getAttributes();
70 foreach ($attributes as $key => $attribute) {
72 if (
$lng->exists($key)) {
73 $strDescTranslated =
$lng->txt($key);
76 $arrKey = explode(
"_", $key);
77 $is_standard_field =
false;
86 if ($is_standard_field) {
87 $strDescTranslated =
$lng->txt($arrKey[0] .
"_default_" . $arrKey[2]);
89 $strDescTranslated = $arrKey[2];
92 unset($attributes[$key]);
93 $attributes[$strDescTranslated] = $attribute;
96 ksort($attributes, SORT_STRING);
98 foreach ($attributes as $key => $attribute) {
100 $ci->setHTML(self::prepareLatex($attribute));
105 foreach ($settings as $set) {
107 $ci->
setHtml($set->getButton($this->bibl_obj, $this->entry));
113 return $form->getHTML();
127 require_once(
'./Services/MathJax/classes/class.ilMathJax.php');
130 require_once(
'./Services/MathJax/classes/class.ilMathJax.php');
136 $string = preg_replace(
'/\\$(.*)\\$/u',
'[tex]$1[/tex]', $string);
138 return $ilMathJax->insertLatexImages($string);
static isStandardField($field_name)
static getInstance(ilObjBibliographic $bibl_obj, $entry_id)
Class ilBibliographicDetailsGUI The detailled view on each entry.
static prepareLatex($string)
This feature has to be discussed by JF first.
static getInstance($file_type, $entry_id=null)
static getInstance()
Singleton: get instance.
Class ilObjBibliographic.
static isStandardField($field_name)