Skip to content

Commit

Permalink
Released version 3.4.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed May 20, 2024
1 parent da5ea9d commit 24ec7db
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/module.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@
'mets',
'cdwalite',
'mods',
'simple_xml',
// 'simple_xml',
],
'oaipmhrepository_format_resource' => 'url_attr_title',
'oaipmhrepository_format_resource_property' => 'dcterms:identifier',
Expand Down
2 changes: 1 addition & 1 deletion config/module.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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.8"
version = "3.4.9"
omeka_version_constraint = "^4.0.0"
9 changes: 9 additions & 0 deletions data/scripts/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
$plugins = $services->get('ControllerPluginManager');
$api = $plugins->get('api');
$settings = $services->get('Omeka\Settings');
$translate = $plugins->get('translate');
$connection = $services->get('Omeka\Connection');
$messenger = $plugins->get('messenger');
$entityManager = $services->get('Omeka\EntityManager');
Expand Down Expand Up @@ -239,3 +240,11 @@
// Nothing.
}
}

if (version_compare($oldVersion, '3.4.9', '<')) {
$settings->set('oaipmhrepository_format_literal_striptags', $defaultSettings['oaipmhrepository_format_literal_striptags']);
$message = new PsrMessage(
'A new option allows to strip xml/html tags of data. It is enable by default for all formats except simple_xml.' // @translate
);
$messenger->addSuccess($message);
}

0 comments on commit 24ec7db

Please sign in to comment.