Skip to content

Commit

Permalink
Released version 3.5.25.3 for archive.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Berthereau authored and Daniel Berthereau committed Aug 23, 2021
1 parent 7b5fd8e commit 5f25913
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 4 deletions.
12 changes: 12 additions & 0 deletions Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,18 @@ public function onBootstrap(MvcEvent $event): void
$this->addRoutes();
}

protected function preInstall(): void
{
$messenger = new Messenger;
$message = new Message(
'This module is deprecated and has been superceded by %sAdvanced Search%s. The upgrade from it is automatic.', // @translate
'<a href="https://gitlab.com/Daniel-KM/Omeka-S-module-AdvancedSearch" target="_blank">',
'</a>'
);
$message->escapeHtml(false);
$messenger->addWarning($message);
}

protected function postInstall(): void
{
$messenger = new Messenger;
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Search (module for Omeka S)
===========================

> ***IMPORTANT***: This module is deprecated and has been replaced by the module
> [Advanced Search] and won’t be updated any more. The upgrade from it is automatic.
> __New versions of this module and support for Omeka S version 3.0 and above
> are available on [GitLab], which seems to respect users and privacy better
> than the previous repository.__
Expand Down Expand Up @@ -301,7 +304,8 @@ were done for various projects. The auto-completion was build for future digital
library of [Campus Condorcet].


[Search]: https://github.com/BibLibre/Omeka-S-module-Search
[Advanced Search]: https://gitlab.com/Daniel-KM/Omeka-S-module-AdvancedSearch
[Search]: https://gitlab.com/Daniel-KM/Omeka-S-module-Search
[Omeka S]: https://omeka.org/s
[Psl Search Form]: https://github.com/BibLibre/Omeka-S-module-PslSearchForm
[Solr]: https://gitlab.com/Daniel-KM/Omeka-S-module-SearchSolr
Expand All @@ -313,7 +317,7 @@ library of [Campus Condorcet].
[Advanced Search Plus]: https://gitlab.com/Daniel-KM/Omeka-S-module-AdvancedSearchPlus
[Solr of Biblibre]: https://github.com/BibLibre/Omeka-S-module-Solr
[Browse preview]: https://omeka.org/s/docs/user-manual/sites/site_pages/#browse-preview
[module issues]: https://github.com/BibLibre/Omeka-S-module-Search/issues
[module issues]: https://gitlab.com/Daniel-KM/Omeka-S-module-Search/issues
[CeCILL v2.1]: https://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html
[GNU/GPL]: https://www.gnu.org/licenses/gpl-3.0.html
[FSF]: https://www.fsf.org
Expand Down
4 changes: 2 additions & 2 deletions config/module.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[info]
name = "Search"
name = "Search (archived, replaced by Advanced Search)"
description = "Add improved search capabilities to Omeka S: auto-suggest, filters, facets, etc."
tags = "search, advanced search, auto-suggest, filter, facet"
license = "CECILL-2.1"
Expand All @@ -8,5 +8,5 @@ author_link = "https://gitlab.com/Daniel-KM"
module_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-Search"
support_link = "https://gitlab.com/Daniel-KM/Omeka-S-module-Search/-/issues"
configurable = false
version = "3.5.24.3"
version = "3.5.25.3"
omeka_version_constraint = "^3.0.0"
11 changes: 11 additions & 0 deletions data/scripts/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -428,3 +428,14 @@
$connection->exec($sql);
}
}

if (version_compare($oldVersion, '3.5.25.3', '<')) {
$messenger = new Messenger;
$message = new Message(
'This module is deprecated and has been superceded by %sAdvanced Search%s. The upgrade from it is automatic.', // @translate
'<a href="https://gitlab.com/Daniel-KM/Omeka-S-module-AdvancedSearch" target="_blank">',
'</a>'
);
$message->escapeHtml(false);
$messenger->addWarning($message);
}

0 comments on commit 5f25913

Please sign in to comment.