diff --git a/Module.php b/Module.php index fe68606..12c63ef 100644 --- a/Module.php +++ b/Module.php @@ -5,7 +5,7 @@ * * Keeps original names of files and put them in a hierarchical structure. * - * Copyright Daniel Berthereau 2012-2021 + * Copyright Daniel Berthereau 2012-2022 * Copyright BibLibre, 2016 * * This software is governed by the CeCILL license under French law and abiding diff --git a/README.md b/README.md index e6b78b1..df7d5bf 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,8 @@ For more explanation, try the [test file]. TODO ---- -- [ ] Manage renaming during background bulk import. +- [x] Manage renaming during background bulk import. +- [ ] Manage renaming data for module Image Server. Warning @@ -131,7 +132,7 @@ altered, and that no provisions are either added or removed herefrom. Copyright --------- -* Copyright Daniel Berthereau, 2012-2020 (see [Daniel-KM] on GitLab) +* Copyright Daniel Berthereau, 2012-2022 (see [Daniel-KM] on GitLab) * Copyright BibLibre, 2016-2017 First version of this plugin has been built for [École des Ponts ParisTech]. diff --git a/config/module.ini b/config/module.ini index f2d63a8..07c77f7 100644 --- a/config/module.ini +++ b/config/module.ini @@ -8,5 +8,5 @@ author_link = "https://gitlab.com/Daniel-KM" module_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-ArchiveRepertory" support_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-ArchiveRepertory/-/issues" configurable = true -version = "3.15.13.3" +version = "3.15.14.3" omeka_version_constraint = "^3.0.0" diff --git a/data/scripts/upgrade.php b/data/scripts/upgrade.php index 869059f..6f3f644 100644 --- a/data/scripts/upgrade.php +++ b/data/scripts/upgrade.php @@ -1,6 +1,10 @@ delete('archive_repertory_ingesters'); } + +if (version_compare($oldVersion, '3.15.14.3', '<')) { + $messenger = new Messenger(); + $message = new Message( + 'The process is now working with background processes.' // @translate + ); + $messenger->addSuccess($message); +} diff --git a/src/Generic/AbstractModule.php b/src/Generic/AbstractModule.php index 5c83b5a..909db5f 100644 --- a/src/Generic/AbstractModule.php +++ b/src/Generic/AbstractModule.php @@ -289,7 +289,7 @@ protected function execSqlFromFile($filepath) // See core commit #2689ce92f. $sqls = array_filter(array_map('trim', explode(";\n", $sql))); foreach ($sqls as $sql) { - $result = $connection->exec($sql); + $result = $connection->executeStatement($sql); } return $result;