28 protected \ilBiblFactoryFacadeInterface
$facade;
48 $overviewModels = $this->facade->overviewModelFactory()->getAllOverviewModelsByType($this->facade->type());
50 $entryType = $this->
getEntry()->getType();
52 if (!($overviewModels[$this->facade->typeFactory()->getDataTypeIdentifierByInstance($this->facade->entryFactory()->getFileType())][$entryType] ??
false)) {
53 $entryType =
'default';
55 $single_entry = $overviewModels[$entryType];
58 preg_match_all(
'/\[(.*?)\]/', $single_entry, $placeholders);
59 foreach ($placeholders[1] as
$key => $placeholder) {
61 $cuts = explode(
'|', $placeholder);
64 $attribute_elements = explode(
'_', $cuts[1]);
65 $attribute_elements[1] = strtolower($this->
getEntry()->getType());
66 $cuts[1] = implode(
'_', $attribute_elements);
70 $single_entry = str_replace($placeholders[0][
$key], $cuts[0] .
$attributes[$cuts[1]]
71 . $cuts[2], $single_entry);
74 $first_sign_after_begin_emph_tag = strpos(strtolower($single_entry),
'<emph>')
76 $last_sign_after_end_emph_tag = strpos(strtolower($single_entry),
'</emph>');
77 $italic_text_length = $last_sign_after_end_emph_tag
78 - $first_sign_after_begin_emph_tag;
80 if ($last_sign_after_end_emph_tag) {
81 $italic_text = substr($single_entry, $first_sign_after_begin_emph_tag, $italic_text_length);
84 "tpl.bibliographic_italicizer.html",
87 "Modules/Bibliographic" 89 $it_tpl->setCurrentBlock(
"italic_section");
90 $it_tpl->setVariable(
'ITALIC_STRING', $italic_text);
91 $it_tpl->parseCurrentBlock();
93 $text_before_emph_tag = substr($single_entry, 0, $first_sign_after_begin_emph_tag
95 $text_after_emph_tag = substr($single_entry, $last_sign_after_end_emph_tag
97 $single_entry = $text_before_emph_tag . $it_tpl->get()
98 . $text_after_emph_tag;
100 }
while ($last_sign_after_end_emph_tag);
103 $single_entry = str_replace($placeholders[0][
$key],
'', $single_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...
ilBiblFactoryFacadeInterface $facade
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setEntry(\ilBiblEntry $entry)
__construct(ilBiblEntry $entry, ilBiblFactoryFacadeInterface $facade)
ilBiblEntryTablePresentationGUI constructor.