NOTE: If you are a developer, please use a private wiki based on foswiki/trunk on a daily base ...or use trunk.foswiki.org to view this page for some minimal testing.
Use Item11383 for general documentation changes for release 1.1.5. Use Item9693 for docu changes for release 2.0.

Item9181: Natsearch not working correctly with Search field

Priority: CurrentState: AppliesTo: Component: WaitingFor:
Normal New Extension NatSkinPlugin, NatSkin  
After the update to latest natskin a search over the upper right Search field, does not call natsearch anymore. For example searching for "findme" gives

/bin/view/Main/WebSearch?jump=on;origtopic=Main.WebHome;search=findme

before it was

/bin/natsearch/Main/WebHome?limit=100&search=findme

Note, this problem is different for the one reported in Question333, Item8368, Item958.

What I have:
  • all Plugins up-to-date
  • NatSkin (6419 (2010-02-17))
  • NatSkinPlugin (3.96, $Rev: 6287 (2010-02-12) $)
  • NatEditPlugin (v4.21, $Rev: 6336 (2010-02-15) $)
  • NatSkin (6419 (2010-02-17))
  • in LocalSite.cfg
    $Foswiki::cfg{SwitchBoard}{natsearch} = [
              'Foswiki::Plugins::NatSkinPlugin::Search',
              'searchCgi',
              {
                'natsearch' => 1
              }
            ];
    
  • /bin/natsearch is executable.

What I see after searching for "findme"

natsearch.png

BTW. The setting NATSEARCHGLOBAL = on is also not considered when searching over the Search field.

Any ideas?

-- UrsBeyerle - 21 Jun 2010

It's also visible in the html source code:

before the update:
<div class="natSearchBox">
<form name="searchbox" action="/foswiki/bin/natsearch/Main/WebHome">
  <input type="hidden" name="limit" value="100" />
  <table cellspacing="0" cellpadding="0" border="0">

And after the update:
<div class="natSearchBox">
<form name="searchbox" id="searchbox" action="/foswiki/bin/view/Main/WebSearch" >
  <input type="hidden" name="jump" value="on" />
  <input type="hidden" name="origtopic" value="Main.WebHome" />
  <table cellspacing="0" cellpadding="0" border="0">

How and where is the action defined?

-- UrsBeyerle - 22 Jun 2010

I found it myself. The action is defined in templates/searchbox.nat.tmpl. So I changed

diff templates/searchbox.nat.tmpl.ori templates/searchbox.nat.tmpl
4c4
< <form name="searchbox" id="searchbox" action="%SCRIPTURLPATH{"view"}%/%BASEWEB%/WebSearch" >
---
> <form name="searchbox" id="searchbox" action="%SCRIPTURLPATH{"natsearch"}%/%BASEWEB%/%BASETOPIC%" >

Natsearch is now working again from the Search & GO field, as I would expect it.

Was there a reason for changing the action in templates/searchbox.nat.tmpl ?

-- UrsBeyerle - 22 Jun 2010

May I second the question (seeing the same on my instance)?

-- CraigBowers - 14 Jul 2010

Confirming this bug as well as the fix by UrsBeyerle for Foswiki 1.1.0.

-- HolstenerLiesel - 15 Oct 2010
 

ItemTemplate edit

Summary Natsearch not working correctly with Search field
ReportedBy UrsBeyerle
Codebase 1.1.0, 1.0.9
SVN Range
AppliesTo Extension
Component NatSkinPlugin, NatSkin
Priority Normal
CurrentState New
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
Topic attachments
I Attachment Action Size Date Who Comment
natsearch.pngpng natsearch.png manage 41.7 K 21 Jun 2010 - 11:50 UrsBeyerle  
Topic revision: r4 - 15 Oct 2010 - 12:55:04 - HolstenerLiesel
 
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. see CopyrightStatement. Creative Commons LicenseGet Foswiki at sourceforge.net. Fast, secure and Free Open Source software downloads