24 include_once(
'Services/Table/classes/class.ilTable2GUI.php');
25 include_once(
'classes/class.ilFormat.php');
55 $this->
addColumn($this->lng->txt(
'title'),
'title',
'40%');
56 #$this->addColumn($this->lng->txt('ecs_released_for'),'for','30%');
57 $this->
addColumn($this->lng->txt(
'ecs_meta_data'),
'md',
'40%');
58 $this->
addColumn($this->lng->txt(
'last_update'),
'last_update',
'10%');
59 $this->
setRowTemplate(
'tpl.released_content_row.html',
'Services/WebServices/ECS');
62 $this->
setFormAction($this->ctrl->getFormAction($a_parent_obj));
75 include_once(
'./classes/class.ilLink.php');
77 $this->tpl->setVariable(
'VAL_TITLE',$a_set[
'title']);
78 $this->tpl->setVariable(
'VAL_LINK',
ilLink::_getLink($a_set[
'ref_id'],
'rcrs'));
79 $this->tpl->setVariable(
'VAL_DESC',$a_set[
'desc']);
80 $this->tpl->setVariable(
'VAL_REMOTE',$a_set[
'from']);
81 $this->tpl->setVariable(
'VAL_REMOTE_INFO',$a_set[
'from_info']);
82 $this->tpl->setVariable(
'TXT_EMAIL',$this->lng->txt(
'ecs_email'));
83 $this->tpl->setVariable(
'TXT_DNS',$this->lng->txt(
'ecs_dns'));
84 $this->tpl->setVariable(
'TXT_ABR',$this->lng->txt(
'ecs_abr'));
85 $this->tpl->setVariable(
'VAL_LAST_UPDATE',$a_set[
'last_update']);
88 $this->tpl->setVariable(
'TXT_TERM',$this->lng->txt(
'ecs_field_term'));
89 $this->tpl->setVariable(
'TXT_CRS_TYPE',$this->lng->txt(
'ecs_field_courseType'));
90 $this->tpl->setVariable(
'TXT_CRS_ID',$this->lng->txt(
'ecs_field_courseID'));
91 $this->tpl->setVariable(
'TXT_CREDITS',$this->lng->txt(
'ecs_field_credits'));
92 $this->tpl->setVariable(
'TXT_ROOM',$this->lng->txt(
'ecs_field_room'));
93 $this->tpl->setVariable(
'TXT_CYCLE',$this->lng->txt(
'ecs_field_cycle'));
94 $this->tpl->setVariable(
'TXT_SWS',$this->lng->txt(
'ecs_field_semester_hours'));
95 $this->tpl->setVariable(
'TXT_START',$this->lng->txt(
'ecs_field_begin'));
96 $this->tpl->setVariable(
'TXT_END',$this->lng->txt(
'ecs_field_end'));
97 $this->tpl->setVariable(
'TXT_LECTURER',$this->lng->txt(
'ecs_field_lecturer'));
99 include_once(
'./Services/WebServices/ECS/classes/class.ilECSDataMappingSettings.php');
102 include_once(
'./Services/AdvancedMetaData/classes/class.ilAdvancedMDValues.php');
106 if($field = $settings->getMappingByECSName(
'lecturer'))
108 $this->tpl->setVariable(
'VAL_LECTURER',isset($values[$field]) ? $values[$field] :
'--');
110 if($field = $settings->getMappingByECSName(
'term'))
112 $this->tpl->setVariable(
'VAL_TERM',isset($values[$field]) ? $values[$field] :
'--');
114 if($field = $settings->getMappingByECSName(
'courseID'))
116 $this->tpl->setVariable(
'VAL_CRS_ID',isset($values[$field]) ? $values[$field] :
'--');
118 if($field = $settings->getMappingByECSName(
'courseType'))
120 $this->tpl->setVariable(
'VAL_CRS_TYPE',isset($values[$field]) ? $values[$field] :
'--');
122 if($field = $settings->getMappingByECSName(
'credits'))
124 $this->tpl->setVariable(
'VAL_CREDITS',isset($values[$field]) ? $values[$field] :
'--');
126 if($field = $settings->getMappingByECSName(
'semester_hours'))
128 $this->tpl->setVariable(
'VAL_SWS',isset($values[$field]) ? $values[$field] :
'--');
130 if($field = $settings->getMappingByECSName(
'room'))
132 $this->tpl->setVariable(
'VAL_ROOM',isset($values[$field]) ? $values[$field] :
'--');
134 if($field = $settings->getMappingByECSName(
'cycle'))
136 $this->tpl->setVariable(
'VAL_CYCLE',isset($values[$field]) ? $values[$field] :
'--');
138 if($field = $settings->getMappingByECSName(
'begin'))
142 if($field = $settings->getMappingByECSName(
'end'))
157 global $ilObjDataCache;
159 $ilObjDataCache->preloadObjectCache($a_obj_ids);
163 foreach($a_obj_ids as $obj_id)
171 foreach($obj_ids as
$ref_id => $obj_id)
174 $tmp_arr[
'obj_id'] = $obj_id;
175 $tmp_arr[
'title'] = $ilObjDataCache->lookupTitle($obj_id);
176 $tmp_arr[
'desc'] = $ilObjDataCache->lookupDescription($obj_id);
178 $tmp_arr[
'last_update'] = $ilObjDataCache->lookupLastUpdate($obj_id);
179 $content[] = $tmp_arr;
181 $this->
setData($content ? $content : array());