[GeoNetwork-users] Change default similarity

Hi. I have changed the default similarity on the main-page.xsl (I have set to
0.2) but when I do a simple search I get the same results that with default
similarity is set to 0.8. Can I set default similarity on simple search?
Thank you.
--
View this message in context: http://www.nabble.com/Change-default-similarity-tp20954824p20954824.html
Sent from the geonetwork-users mailing list archive at Nabble.com.

hi,

no, not just like that, because the parameter is not sent in simple search.

If you modify <installation-dir>/web/geonetwork/scripts/gn_search.js like
this :

in function runSimpleSearch()

add the line

    pars += fetchRadioParam('similarity');

then it should work.

Regards
Heikki Doeleman

On Thu, Dec 11, 2008 at 1:50 PM, pjmenmon <pjmenmon@anonymised.com> wrote:

Hi. I have changed the default similarity on the main-page.xsl (I have set
to
0.2) but when I do a simple search I get the same results that with default
similarity is set to 0.8. Can I set default similarity on simple search?
Thank you.
--
View this message in context:
http://www.nabble.com/Change-default-similarity-tp20954824p20954824.html
Sent from the geonetwork-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at

http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork

I'll try it. Thank you
--
View this message in context: http://www.nabble.com/Change-default-similarity-tp20954824p20971388.html
Sent from the geonetwork-users mailing list archive at Nabble.com.