15 use \ILIAS\Modules\OrgUnit\ARHelper\DIC;
47 $this->parent_obj = $a_parent_obj;
55 $this->
setRowTemplate(
'tpl.bibliographic_record_table_row.html',
'Modules/Bibliographic');
57 $this->
addColumn($this->lng()->txt(
'a'),
'content',
'auto');
67 $available_fields_for_object = $this->facade->fieldFactory()->getAvailableFieldsForObjId($this->facade->iliasObjId());
69 foreach ($available_fields_for_object as $available_field) {
70 $filter = $this->facade->filterFactory()->findByFieldId($available_field->getId());
71 if (!empty($filter)) {
73 $field = $filter_presentation->getFilterItem();
75 $this->filter_objects[$field->getPostVar()] = $filter;
87 $field->readFromSession();
89 $this->applied_filter[$field->getPostVar()] = $field->getChecked();
92 $this->applied_filter[$field->getPostVar()] = $field->getValue();
102 $ilBiblEntry = $this->facade->entryFactory()->findByIdAndTypeString($a_set[
'entry_id'], $a_set[
'entry_type']);
108 $this->tpl->setVariable(
'DETAIL_LINK', $this->ctrl->getLinkTarget($this->parent_obj,
'showDetails'));
110 $libraries = $this->facade->libraryFactory()->getAll();
111 $arr_library_link = array();
112 foreach ($libraries as $library) {
113 if ($library->getShowInList()) {
115 $arr_library_link[] = $presentation->getButton($this->facade, $ilBiblEntry);
118 if (count($arr_library_link)) {
119 $this->tpl->setVariable(
'LIBRARY_LINK', implode(
'<br/>', $arr_library_link));
124 protected function initData()
130 foreach ($this->applied_filter as $field_name => $field_value) {
131 if (!$field_value || (is_array($field_value) && count($field_value) == 0)) {
134 $filter = $this->filter_objects[$field_name];
136 $filter_info->setFieldName($field_name);
137 switch ($filter->getFilterType()) {
139 $filter_info->setFieldValue($field_value);
140 $filter_info->setOperator(
"IN");
143 $filter_info->setFieldValue($field_value);
144 $filter_info->setOperator(
"=");
147 $filter_info->setFieldValue(
"%{$field_value}%");
148 $filter_info->setOperator(
"LIKE");
152 $query->addFilter($filter_info);
156 $object_id = $this->facade->iliasObjId();
158 $this->facade->entryFactory()
159 ->filterEntryIdsForTableAsArray($object_id,
$query) as $entry
161 $ilBibliographicEntry = $this->facade->entryFactory()->findByIdAndTypeString($entry[
'entry_id'], $entry[
'entry_type']);
162 $entry[
'content'] = strip_tags($ilBibliographicEntry->getOverview());
const FILTER_TYPE_TEXT_INPUT
Class ilObjBibliographicGUI.
Class ilBiblEntryTablePresentationGUI.
Interface for property form input GUI classes that can be used in table filters.
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.
Class ilDataCollectionField.
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.
setEnableHeader($a_enableheader)
Set Enable Header.
Class ilBiblFactoryFacade.
const FILTER_TYPE_SELECT_INPUT
Class ilBiblLibraryPresentationGUI.