41 $attributes = $this->facade->entryFactory()->loadParsedAttributesByEntryId($this->
getEntry()->
getId());
44 $overviewModels = $this->facade->overviewModelFactory()->getAllOverviewModelsByType($this->facade->type());
46 $entryType = $this->
getEntry()->getType();
48 if (!($overviewModels[$this->facade->typeFactory()->getDataTypeIdentifierByInstance($this->facade->entryFactory()->getFileType())][$entryType] ??
false)) {
49 $entryType =
'default';
51 $single_entry = $overviewModels[$entryType];
54 preg_match_all(
'/\[(.*?)\]/', $single_entry, $placeholders);
55 foreach ($placeholders[1] as $key => $placeholder) {
57 $cuts = explode(
'|', $placeholder);
59 if (!($attributes[$cuts[1]] ??
false)) {
60 $attribute_elements = explode(
'_', $cuts[1]);
61 $attribute_elements[1] = strtolower($this->
getEntry()->getType());
62 $cuts[1] = implode(
'_', $attribute_elements);
64 if (($attributes[$cuts[1]] ??
false)) {
66 $single_entry = str_replace($placeholders[0][$key], $cuts[0] . $attributes[$cuts[1]]
67 . $cuts[2], $single_entry);
70 $first_sign_after_begin_emph_tag = stripos($single_entry,
'<emph>')
72 $last_sign_after_end_emph_tag = stripos($single_entry,
'</emph>');
73 $italic_text_length = $last_sign_after_end_emph_tag
74 - $first_sign_after_begin_emph_tag;
76 if ($last_sign_after_end_emph_tag) {
77 $italic_text = substr($single_entry, $first_sign_after_begin_emph_tag, $italic_text_length);
80 "tpl.bibliographic_italicizer.html",
83 "components/ILIAS/Bibliographic" 85 $it_tpl->setCurrentBlock(
"italic_section");
86 $it_tpl->setVariable(
'ITALIC_STRING', $italic_text);
87 $it_tpl->parseCurrentBlock();
89 $text_before_emph_tag = substr($single_entry, 0, $first_sign_after_begin_emph_tag
91 $text_after_emph_tag = substr($single_entry, $last_sign_after_end_emph_tag
93 $single_entry = $text_before_emph_tag . $it_tpl->get()
94 . $text_after_emph_tag;
96 }
while ($last_sign_after_end_emph_tag);
99 $single_entry = str_replace($placeholders[0][$key],
'', $single_entry);
122 $this->entry = $entry;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(protected \ilBiblEntry $entry, protected \ilBiblFactoryFacadeInterface $facade)
ilBiblEntryTablePresentationGUI constructor.
setEntry(\ilBiblEntry $entry)