Changeset 243

Show
Ignore:
Timestamp:
09/23/03 17:10:12 (5 years ago)
Author:
kake
Message:

OK, we need CGI::Wiki 0.49 for proper case-insensitivity.

Location:
trunk
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • trunk/Build.PL

    r236 r243  
    194194        'CGI::Carp' => 0, 
    195195        'CGI::Cookie' => 0, 
    196         'CGI::Wiki' => '0.47', 
    197         'CGI::Wiki::Formatter::UseMod' => '0.07', # for nested lists and bugfix 
     196        'CGI::Wiki' => '0.49', 
     197        'CGI::Wiki::Formatter::UseMod' => '0.09', 
    198198        'CGI::Wiki::Plugin::Categoriser' => 0, 
    199199        'CGI::Wiki::Plugin::GeoCache' => 0, 
  • trunk/Changes

    r240 r243  
    33        Search box now searches categories and locales as well as title and 
    44          body - so for example a search on "holborn & pubs" will DTRT. 
     5        NOT and phrase search tests were passing even though they shouldn't 
     6          have been - skip them for now. 
    57 
    680.24    8 September 2003 
  • trunk/PREREQUISITES

    r240 r243  
    66CGI::Carp 
    77CGI::Cookie 
    8 CGI::Wiki (version 0.47 or later) 
    9 CGI::Wiki::Formatter::UseMod (version 0.07 or later) 
     8CGI::Wiki (version 0.49 or later) 
     9CGI::Wiki::Formatter::UseMod (version 0.09 or later) 
    1010CGI::Wiki::Plugin::Categoriser 
    1111CGI::Wiki::Plugin::GeoCache 
  • trunk/lib/OpenGuides/SuperSearch.pm

    r242 r243  
    190190    # Search categories. 
    191191    my @catmatches = $wiki->list_nodes_by_metadata( 
    192                          metadata_type => "category", 
     192                         metadata_type  => "category", 
    193193                         metadata_value => $search, 
     194                         ignore_case    => 1, 
    194195    ); 
    195196 
     
    204205    # Search locales. 
    205206    my @locmatches = $wiki->list_nodes_by_metadata( 
    206                          metadata_type => "locale", 
     207                         metadata_type  => "locale", 
    207208                         metadata_value => $search, 
     209                         ignore_case    => 1, 
    208210    ); 
    209211    foreach my $node ( @locmatches ) { 
  • trunk/t/31_supersearch.t

    r231 r243  
    112112 
    113113    # Test the NOT search 
     114SKIP: { 
     115    skip "NOT search doesn't work yet", 1; 
    114116    %tt_vars = $search->run( 
    115117                             return_tt_vars => 1, 
     
    120122               "NOT search returns right results" ); 
    121123    print "# Found in $_\n" foreach @found; 
     124} 
    122125 
    123126    # Test the phrase search 
     127SKIP: { 
     128    skip "phrase search doesn't work yet", 1; 
    124129    $output = $search->run( 
    125130                            return_output => 1, 
     
    130135          "phrase search returns right results" 
    131136        ); 
     137} 
    132138 
    133139    ##### 
  • trunk/t/32_supersearch_simple_metadata.t

    r242 r243  
    5050               "simple search looks in category" ); 
    5151 
    52 SKIP: { 
    53     skip "TODO - need case-insensitive metadata search", 1; 
    5452    %tt_vars = $search->run( 
    5553                             return_tt_vars => 1, 
     
    5957    is_deeply( \@found, [ "Calthorpe_Arms", "Calthorpe_Arms_2" ], 
    6058               "...and is case-insensitive" ); 
    61 } 
    6259 
    6360    # Check that a search on its locale works. 
     
    7067               "simple search looks in locale" ); 
    7168 
    72 SKIP: { 
    73     skip "TODO - need case-insensitive metadata search", 1; 
    7469    %tt_vars = $search->run( 
    7570                             return_tt_vars => 1, 
     
    7974    is_deeply( \@found, [ "Calthorpe_Arms", "Calthorpe_Arms_2" ], 
    8075               "...and is case-insensitive" ); 
    81 } 
    8276 
    8377    # Test AND search in various combinations.