diff --git a/README.md b/README.md index 712a4b9..4126d55 100644 --- a/README.md +++ b/README.md @@ -296,7 +296,7 @@ See commits for full list of contributors. * Copyright Yu-Hsun Lin, 2009 * Copyright John Flatness, 2009-2016 * Copyright Julian Maurice for BibLibre, 2016-2017 -* Copyright Daniel Berthereau, 2014-2022 (see [Daniel-KM]) +* Copyright Daniel Berthereau, 2014-2023 (see [Daniel-KM]) This [Omeka S] module is based on the rewrite of the [OAI-PMH Repository plugin] for [Omeka] by [BibLibre] and provide the same features as the original plugin diff --git a/config/module.ini b/config/module.ini index a945e4c..05ed641 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-OaiPmhRepository" support_link = "https://gitlab.com/Daniel-KM/omeka-s-module-OaiPmhRepository/-/issues" configurable = true -version = "3.4.6" +version = "3.4.7" omeka_version_constraint = "^3.0.0 || ^4.0.0" diff --git a/data/scripts/upgrade.php b/data/scripts/upgrade.php index 83a22cb..79df307 100644 --- a/data/scripts/upgrade.php +++ b/data/scripts/upgrade.php @@ -165,3 +165,19 @@ $message->setEscapeHtml(false); $messenger->addSuccess($message); } + +if (version_compare($oldVersion, '3.4.7', '<')) { + $sql = <<<'SQL' +ALTER TABLE `oai_pmh_repository_token` + DROP INDEX IDX_E9AC4F9524CD504D, + ADD INDEX IDX_F99CFEE424CD504D (`expiration`), + CHANGE `verb` `verb` varchar(15) NOT NULL AFTER `id`, + RENAME TO `oaipmhrepository_token`; +SQL; + $connection->executeStatement($sql); + + $message = new Message( + 'Some new options were added for compliance with non-standard requirements of BnF (Bibliothèque nationale de France): thumbnail, uri without attribute, class as main type.' // @translate + ); + $messenger->addSuccess($message); +} diff --git a/src/Api/Adapter/OaiPmhRepositoryTokenAdapter.php b/src/Api/Adapter/OaiPmhRepositoryTokenAdapter.php index 26f0b50..4cacb42 100644 --- a/src/Api/Adapter/OaiPmhRepositoryTokenAdapter.php +++ b/src/Api/Adapter/OaiPmhRepositoryTokenAdapter.php @@ -2,7 +2,6 @@ /** * @author Julian Maurice * @copyright BibLibre, 2016 - * @author Daniel Berthereau * @copyright Daniel Berthereau, 2014-2023 * @license http://www.gnu.org/licenses/gpl-3.0.txt */ diff --git a/src/Entity/OaiPmhRepositoryToken.php b/src/Entity/OaiPmhRepositoryToken.php index 2316a5a..2897729 100644 --- a/src/Entity/OaiPmhRepositoryToken.php +++ b/src/Entity/OaiPmhRepositoryToken.php @@ -2,7 +2,6 @@ /** * @author Julian Maurice * @copyright BibLibre, 2016 - * @author Daniel Berthereau * @copyright Daniel Berthereau, 2017-2023 * @license http://www.gnu.org/licenses/gpl-3.0.txt */