Xapian Easy search

This commit is contained in:
Karel Pičman 2023-07-14 09:21:32 +02:00
parent 7aeed17a94
commit 52a777cc3b
5 changed files with 38 additions and 4 deletions

View File

@ -40,4 +40,4 @@ module RedmineDmsf
end end
# Apply the patch # Apply the patch
ApplicationHelper.prepend RedmineDmsf::Patches::ApplicationHelperPatch ApplicationHelper.prepend RedmineDmsf::Patches::ApplicationHelperPatch if Redmine::Plugin.installed?('easy_extensions')

View File

@ -37,4 +37,6 @@ module RedmineDmsf
end end
# Apply the patch # Apply the patch
XapianEasySearchHelper.prepend RedmineDmsf::Patches::XapianEasySearchHelperPatch if Redmine::Plugin.installed?('easy_extensions')
XapianEasySearchHelper.prepend RedmineDmsf::Patches::XapianEasySearchHelperPatch
end

View File

@ -0,0 +1,32 @@
# frozen_string_literal: true
# Redmine plugin for Document Management System "Features"
#
# Copyright © 2011 Vít Jonáš <vit.jonas@gmail.com>
# Copyright © 2012 Daniel Munn <dan.munn@munnster.co.uk>
# Copyright © 2011-23 Karel Pičman <karel.picman@kontron.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
if defined?(EasyExtensions)
require 'xapian_easy_search/base_mapper'
else
module XapianEasySearch
# Foo class
class BaseMapper
def foo; end
end
end
end

View File

@ -20,7 +20,7 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require 'xapian_easy_search/base_mapper' require('xapian_easy_search/base_mapper') if defined?(EasyExtensions)
module XapianEasySearch module XapianEasySearch
# DmsfFile mapper # DmsfFile mapper

View File

@ -20,7 +20,7 @@
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
require 'xapian_easy_search/base_mapper' require('xapian_easy_search/base_mapper') if defined?(EasyExtensions)
module XapianEasySearch module XapianEasySearch
# DmsfFolder mapper # DmsfFolder mapper