Changeset 100

Show
Ignore:
Timestamp:
06/30/05 15:12:17 (3 years ago)
Author:
ogawa
Message:

A fix for the case when no tags are provided to MT-XSearch.
A fix for adapting to MT3.2 plugin interface.
And a little modification of the document.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • tagwire/trunk/README.txt

    r98 r100  
    110110 
    111111    Chooses whether the plugin treats tags as the case-sensitive 
    112     manner or not.  In case-insensitive manner, The plugin recognizes 
    113     "Apple" and "appLE" as two different tags in case-sensitive 
    114     manner, on the other hand, it recognizes them as a same tag in 
    115     case-insensitive manner. The default is case_sensitive="1". 
     112    manner or not.  In the case-sensitive manner, the plugin 
     113    recognizes "Apple" and "appLE" as two different tags, on the other 
     114    hand, it recognizes them as a same tag in the case-insensitive 
     115    manner. The default is case_sensitive="1". 
    116116 
    117117* Available tags in this container: 
     
    300300 
    301301 
    302 ============================= 
    303 How to couple with MT-XSearch 
    304 ============================= 
    305  
    306 TBD 
    307  
    308  
    309302======== 
    310303SEE ALSO 
    311304======== 
    312305 
    313 Japanese document has not been provided yet. 
     306Lastest version of this document will be found: 
     307    http://as-is.net/hacks/2005/06/tagwire_plugin.html 
     308 
     309Advanced documents and Japanese documents are also available from the 
     310above URL. 
    314311 
    315312 
  • tagwire/trunk/tagwire.pl

    r97 r100  
    2222eval { 
    2323    require MT::Plugin; 
    24     $plugin = new MT::Plugin(); 
    25     $plugin->name("Tagwire Plugin"); 
    26     $plugin->description("A plugin for listing and handling blog-wide tags and entry tags."); 
    27     $plugin->doc_link("http://as-is.net/hacks/2005/06/tagwire_plugin.html"); 
     24    $plugin = new MT::Plugin({ 
     25        name => 'Tagwire Plugin', 
     26        description => 'A plugin for listing and handling blog-wide tags and entry tags.', 
     27        doc_link => 'http://as-is.net/hacks/2005/06/tagwire_plugin.html', 
     28        author_name => 'Hirotaka Ogawa', 
     29        author_link => 'http://profile.typekey.com/ogawa/', 
     30        version => '0.22' 
     31        }); 
    2832    MT->add_plugin($plugin); 
    2933}; 
     
    123127    $string =~ s/(^\s+|\s+$)//g; 
    124128    $string = lc $string unless $case_sensitive; 
     129#    $string =~ s/\[[^[]+\]//g; # uncomment this to discard [short title] 
    125130 
    126131    if ($string =~ m/[;,|]/) { 
     
    487492 
    488493    my @results; 
    489     my @patterns = split_args($args->{search}, $delimiter, $case_sensitive); 
     494    my @patterns = split_args($args->{search}, $delimiter, $case_sensitive) 
     495        or return \@results; 
    490496 
    491497    my $data = get_pd_indexes($blog_id) || get_db_indexes($blog_id)