[Koha-bugs] [Bug 7430] ModZebra should not be in C4::Biblio

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jan 10 00:45:05 CET 2012


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=7430

--- Comment #1 from Jared Camins-Esakov <jcamins at cpbibliography.com> 2012-01-09 23:45:05 UTC ---
Created attachment 7100
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=7100
Bug 7430: Move ModZebra out of C4::Biblio

This proof-of-concept commit does the following:
* Moves all the functionality from C4::Biblio::ModZebra into a new
  Koha::Search::Engine namespace, breaking it up into Zebra and NoZebra
  classes for the relevant sections.
* Rather than calling ModZebra, callers should now use Koha::Search and
  call AddToIndexQueue() with the same arguments.
* Creates a new Koha::Utils class with GetMarcFromKohaField and GetAuthType
  methods, in an attempt to begin the process of reducing circular dependencies
* Adds a syspref SearchEngine to specify whether Zebra or NoZebra is to be
  used, based on the setting of NoZebra. This syspref is checked *only*
  in ModZebra replacement code. The NoZebra is still relied upon by *all other*
  search-related code.

IMPORTANT NOTE: The syspref is added by the atomicupdate in
installer/data/mysql/atomicupdate/bug_7430_add_searchengine_syspref

IMPORTANT NOTE: NoZebra indexing is currently broken due to the lack of a
get_auth_type_location() method that can be used by the
Koha::Search::Engine::NoZebra class.

IMPORTANT NOTE: This patch depends on the patches for bug 7284.

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the Koha-bugs mailing list