3 require_once(
"./Services/DataSet/classes/class.ilDataSet.php");
4 require_once(
'class.ilObjBibliographic.php');
57 return array(
'4.5.0' );
68 return 'http://www.ilias.de/xml/Modules/Bibliographic/' . $a_entity;
79 public function importRecord($a_entity, $a_types, $a_rec, $a_mapping, $a_schema_version) {
84 $new_obj->setTitle($a_rec[
'title']);
85 $new_obj->setDescription($a_rec[
'description']);
86 $new_obj->setFilename($a_rec[
'fileName']);
87 $new_obj->setOnline(
false);
89 $this->import_bib_object = $new_obj;
90 $a_mapping->addMapping(
'Modules/Bibliographic',
'bibl', $a_rec[
'id'], $new_obj->getId());
105 protected function getTypes($a_entity, $a_version) {
111 "description" =>
"text",
112 "filename" =>
"text",
113 'is_online' =>
'integer',
143 public function readData($a_entity, $a_version, $a_ids) {
144 $this->data = array();
145 if (! is_array($a_ids)) {
146 $a_ids = array( $a_ids );
161 foreach ($a_ids as $bibl_id) {
166 'title' => $obj->getTitle(),
167 'description' => $obj->getDescription(),
168 'fileName' => $obj->getFilename(),
169 'is_online' => $obj->getOnline(),
171 $this->data[] =
$data;
186 copy($obj->getFileAbsolutePath(), $this->absolute_export_dir .
"/" . $obj->getFilename());
195 .
"/Modules/Bibliographic/set_1/expDir_1/" . $this->import_bib_object->getFilename();
196 $new_id = $this->import_bib_object->getId();
199 copy($import_path, $new_path .
"/" . $this->import_bib_object->getFilename());
200 $this->import_bib_object->writeSourcefileEntriesToDb();