You are here: Foswiki>Tasks Web>Item9181 (01 Oct 2012, MichaelDaum)Edit Attach

Item9181: Natsearch not working correctly with Search field

pencil
Priority: Normal
Current State: Closed
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: NatSkin, NatSkinPlugin
Branches:
Reported By: UrsBeyerle
Waiting For:
Last Change By: MichaelDaum
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

natsearch has been removed from the extension.

-- MichaelDaum - 01 Oct 2012
 

ItemTemplate edit

Summary Natsearch not working correctly with Search field
ReportedBy UrsBeyerle
Codebase 1.1.0, 1.0.9
SVN Range
AppliesTo Extension
Component NatSkin, NatSkinPlugin
Priority Normal
CurrentState Closed
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
Release01x01Checkins
I Attachment Action Size Date Who Comment
natsearch.pngpng natsearch.png manage 41 K 21 Jun 2010 - 11:50 UrsBeyerle  
Topic revision: r5 - 01 Oct 2012, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy