Skip to content

Commit

Permalink
Released version 3.4.57.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Dec 9, 2024
1 parent 8086234 commit ddba841
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion config/module.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ author_link = "https://gitlab.com/Daniel-KM"
module_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-BulkImport"
support_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-BulkImport/-/issues"
configurable = true
version = "3.4.56"
version = "3.4.57"
omeka_version_constraint = "^4.0.0"
dependencies = "Common, Log"
30 changes: 30 additions & 0 deletions data/scripts/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -449,4 +449,34 @@
$connection->executeStatement($sql);
}

if (version_compare($oldVersion, '3.4.57', '<')) {
// Included application/json and application/ld+json in the whitelist of
// media-types and json and jsonld in the whitelist of extensions.
$whitelist = $settings->get('media_type_whitelist', []);
$whitelist = array_unique(array_merge(array_values($whitelist), [
'application/json',
'application/ld+json',
]));
sort($whitelist);
$settings->set('media_type_whitelist', $whitelist);

$whitelist = $settings->get('extension_whitelist', []);
$whitelist = array_unique(array_merge(array_values($whitelist), [
'json',
'jsonld',
]));
sort($whitelist);
$settings->set('extension_whitelist', $whitelist);

$message = new PsrMessage(
'It is now possible to import iiif presentation, not only iiif image.' // @translate
);
$messenger->addSuccess($message);

$message = new PsrMessage(
'A new option allows to clean inputs data, for example trim, change case, replace single quote by apostrophe, etc.' // @translate
);
$messenger->addSuccess($message);
}

// TODO Remove bulkimport_allow_empty_files and bulkimport_local_path in some version to keep config for EasyAdmin.

0 comments on commit ddba841

Please sign in to comment.