removing old code
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 Jun 2006 18:06:10 +0000 (18:06 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 22 Jun 2006 18:06:10 +0000 (18:06 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@4704 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Search.pm

index e4753af..7911182 100644 (file)
@@ -28,72 +28,16 @@ sub initialize {
        OpenILS::Application::Search::Z3950->initialize();
        OpenILS::Application::Search::Zips->initialize();
        OpenILS::Application::Search::Biblio->initialize();
-
-       # try to load the added content handler
-       my $conf = OpenSRF::Utils::SettingsClient->new;
-       my $implementation = $conf->config_value(                                       
-               "apps", "open-ils.search","app_settings", "added_content", "implementation" );
-
-       $implementation = "OpenILS::Application::Search::AddedContent" unless $implementation;
-
-       $logger->debug("Attempting to load Added Content handler: $implementation");
-
-       eval "use $implementation";
-
-       if($@) {        
-               $logger->error("Unable to load Added Content handler [$implementation]: $@"); 
-               return; 
-       }
-
-       eval { $implementation->initialize(); };
 }
        
 
 
-=head deprecated
-__PACKAGE__->register_method(
-       method  => "check_spelling",
-       api_name        => "open-ils.search.spell_check");
-
-sub check_spelling {
-       my( $self, $client, $phrase ) = @_;
-
-       my @resp_objects = ();
-       my $speller = Text::Aspell->new();
-       $speller->set_option('lang', 'en_US');
-       my $return_something = 0;
-
-       my $return_phrase = "";
-
-       for my $word (split(' ',$phrase) ) {
-               if( ! $speller->check($word) ) {
-                       if( $speller->suggest($word) ) { $return_something = 1; }
-                       my $word_stuff = {};
-                       $word_stuff->{'word'} = $word;
-                       $word_stuff->{'suggestions'} = [ $speller->suggest( $word ) ];
-                       if( ! $return_phrase ) { $return_phrase = ($speller->suggest($word))[0]; }
-                       else { $return_phrase .= " " . ($speller->suggest($word))[0];}
-                       
-               } else { 
-                       if( ! $return_phrase ) { $return_phrase = $word; }
-                       else { $return_phrase .= " $word"; }
-               }
-       }
-
-       if( $return_something ) { return $return_phrase; }
-       return 0;
-}
-=cut
-
-
-
 # ------------------------------------------------------------------
 # Create custome dictionaries like so:
 # aspell --lang=en create  master ./oils_authority.dict < /tmp/words
 # where /tmp/words is a space separated list of words
 # ------------------------------------------------------------------
 
-
 __PACKAGE__->register_method(
        method  => "spellcheck",
        api_name        => "open-ils.search.spellcheck");