29 use \ILIAS\Modules\OrgUnit\ARHelper\DIC;
61 $this->parent_obj = $a_parent_obj;
69 $this->
setRowTemplate(
'tpl.bibliographic_record_table_row.html',
'Modules/Bibliographic');
71 $this->
addColumn($this->lng()->txt(
'a'),
'content',
'auto');
82 $available_fields_for_object = $this->facade->fieldFactory()->getAvailableFieldsForObjId($this->facade->iliasObjId());
84 foreach ($available_fields_for_object as $available_field) {
85 $filter = $this->facade->filterFactory()->findByFieldId($available_field->getId());
86 if (!empty($filter)) {
88 $field = $filter_presentation->getFilterItem();
90 $this->filter_objects[$field->getPostVar()] = $filter;
102 $field->readFromSession();
104 $this->applied_filter[$field->getPostVar()] = $field->getChecked();
107 $this->applied_filter[$field->getPostVar()] = $field->getValue();
115 public function fillRow($a_set)
118 $presentation_gui = $a_set[
'overview_gui'];
119 $this->tpl->setVariable(
122 $presentation_gui->getHtml()
127 $this->tpl->setVariable(
'DETAIL_LINK', $this->ctrl->getLinkTarget($this->parent_obj,
'showDetails'));
129 $libraries = $this->facade->libraryFactory()->getAll();
130 $arr_library_link = array();
131 foreach ($libraries as $library) {
132 if ($library->getShowInList()) {
134 $arr_library_link[] = $presentation->getButton($this->facade, $presentation_gui->getEntry());
137 if (count($arr_library_link)) {
138 $this->tpl->setVariable(
'LIBRARY_LINK', implode(
'<br/>', $arr_library_link));
143 protected function initData()
149 foreach ($this->applied_filter as $field_name => $field_value) {
150 if (!$field_value || (is_array($field_value) && count($field_value) == 0)) {
153 $filter = $this->filter_objects[$field_name];
155 $filter_info->setFieldName($field_name);
156 switch ($filter->getFilterType()) {
158 $filter_info->setFieldValue($field_value);
159 $filter_info->setOperator(
"IN");
162 $filter_info->setFieldValue($field_value);
163 $filter_info->setOperator(
"=");
166 $filter_info->setFieldValue(
"%{$field_value}%");
167 $filter_info->setOperator(
"LIKE");
171 $query->addFilter($filter_info);
175 $object_id = $this->facade->iliasObjId();
177 $this->facade->entryFactory()
178 ->filterEntryIdsForTableAsArray($object_id,
$query) as $entry
181 $bibl_entry = $this->facade->entryFactory()->findByIdAndTypeString($entry[
'entry_id'], $entry[
'entry_type']);
183 $entry[
'content'] = strip_tags($overview_gui->getHtml());
184 $entry[
'overview_gui'] = $overview_gui;
188 usort($entries,
function (
$a,
$b) {
189 return $a[
'content'] >
$b[
'content'];
const FILTER_TYPE_TEXT_INPUT
Class ilObjBibliographicGUI.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface for property form input GUI classes that can be used in table filters.
setExternalSorting($a_val)
Set external sorting.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setEnableNumInfo($a_val)
Set enable num info.
Class ilBiblFieldFilterPresentationGUI.
__construct(ilObjBibliographicGUI $a_parent_obj, ilBiblFactoryFacade $facade)
ilBiblEntryTableGUI constructor.
const FILTER_TYPE_MULTI_SELECT_INPUT
addFilterItem($a_input_item, $a_optional=false)
Add filter item.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addAndReadFilterItem(ilTableFilterItem $field)
setOrderField($a_order_field)
set order column
Class ilBiblTableQueryInfo.
getFormAction()
Get Form action parameter.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Class ilBiblTableQueryInfo.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
static prepareLatex($string)
This feature has to be discussed by JF first.
setFormName($a_formname="")
Set Form name.
__construct(Container $dic, ilPlugin $plugin)
addColumn( $a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples
setEnableHeader($a_enableheader)
Set Enable Header.
fillRow($a_set)
Standard Version of Fill Row.
Class ilBiblFactoryFacade.
const FILTER_TYPE_SELECT_INPUT
Class ilBiblLibraryPresentationGUI.