[GeoNetwork-devel] Adding new search parameters

Hello,

I need some help adding search parameters to GeoNetwork and include them in
the Advanced search interface. In GN 2.4 I figured out how I could do this.
(Then with Simon Pigot's help, I learned how to do this right - Thanks Simon
:slight_smile: ). But now in 2.6 and beyond the old methods do not work.

I found a post by Francois discussing the replacement of MainUtil.java with
some new script. ( It seems that this file has also had a name change, to
SearchDefaults?) One point to these changes seemed to be to make this task
of adding search parameters easier. And I hope it is, but I have not been
able to find any instructions on how to accomplish this.

Can anyone offer me some guidance?

Cheers,
Byron

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Adding-new-search-parameters-tp6697671p6697671.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hello Byron,

2011/8/18 ByronCinNZ <cochranes4@anonymised.com>:

Hello,

I need some help adding search parameters to GeoNetwork and include them in
the Advanced search interface. In GN 2.4 I figured out how I could do this.
(Then with Simon Pigot's help, I learned how to do this right - Thanks Simon
:slight_smile: ). But now in 2.6 and beyond the old methods do not work.

In 2.6, LuceneQueryBuilder was introduced (to improve performance
mainly I think) and was only supporting a pre-defined set of search
fields (so you need to update the java code unfortunately to add a
field).

I've been improving this in trunk [1] and add back the capabality to
add your own fields.

Cheers.

Francois

[1] http://trac.osgeo.org/geonetwork/ticket/480

I found a post by Francois discussing the replacement of MainUtil.java with
some new script. ( It seems that this file has also had a name change, to
SearchDefaults?) One point to these changes seemed to be to make this task
of adding search parameters easier. And I hope it is, but I have not been
able to find any instructions on how to accomplish this.

Can anyone offer me some guidance?

Cheers,
Byron

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Adding-new-search-parameters-tp6697671p6697671.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get a FREE DOWNLOAD! and learn more about uberSVN rich system,
user administration capabilities and model configuration. Take
the hassle out of deploying and managing Subversion and the
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Francois,

I just tried this in 2.7 and it works - very slick!

Thanks for that

Cheers,
Byron

--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Adding-new-search-parameters-tp6697671p6701111.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hello,

I'm very interested to know how you added these new parameters.
Could you give me some tips please?

Txs.
Mat

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/Adding-new-search-parameters-tp3875596p4912809.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.