Skip to content
Snippets Groups Projects

Dev #18866 typo 3 specific event

Compare and
+ 7
6
Preferences
Compare changes
Files
@@ -26,6 +26,8 @@ class Class_Import_Typo3 {
// const BOKEH_ATTACHMENT_URL="http://web.afi-sa.net/miop-test.net/userfiles/file/";
const BOKEH_FILEADMIN_URL= "http://www.mediathequeouestprovence.fr/fileadmin/";
// const BOKEH_FILEADMIN_URL= "http://web.afi-sa.net/miop_test.net/userfiles/image/";
const FOREIGN_UID_DATETIME=[867];
protected
$user_mapper,
$unknown_koha_urls = [];
@@ -318,7 +320,7 @@ class Class_Import_Typo3 {
public function setMiopDateEvent($article,$data) {
if (array_filter($this->t3db->findAllForeignUidForNewsCat($data['uid']),
function ($domaine_id) { if ($domaine_id['uid_foreign'] == 867) return true;}))
function ($domaine_id) { if (in_array($domaine_id['uid_foreign'],self::FOREIGN_UID_DATETIME)) return true;}))
$article->setEventsDebut($data['datetime'])->setEventsFin($data['datetime']);
return $article;