[GeoNetwork-users] Search in GeoNetwork from URL parameters

Hi,

I didn't find in GeoNetwork documentation how to specify search parameters to GeoNetwork via URL, in the following style (taking the example from http://geonetwork-opensource.org/latest/developers/xml_services/metadata_xml_services.html#search-metadata-xml-search):

   http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy=‘relevance’

and get the results page in GeoNetwork ?

I mean, automatize the manual process of entering search parameters and click the search Button, using URL parameters.

The reason is I want, from a form in another website, to send to the results in GeoNetwork.

Is it possible to this in GeoNetwork ?

Thanks

Severo

hi Sylvain,

a correct URL for that in a standard installation on localhost would be
http://localhost:8080/geonetwork/srv/en/main.search?any=‘africa’&sortBy=‘relevance’<http://localhost:8080/geonetwork/srv/eng/main.search?any=‘africa’&sortBy=‘relevance’>
.
This should work OK if you didn't change default port and web application
name.

Does it ?

Kind regards
Heikki Doeleman

On Wed, Jul 25, 2012 at 1:09 AM, Sylvain Lesage <severo@anonymised.com> wrote:

Hi,

I didn't find in GeoNetwork documentation how to specify search
parameters to GeoNetwork via URL, in the following style (taking the
example from

http://geonetwork-opensource.org/latest/developers/xml_services/metadata_xml_services.html#search-metadata-xml-search
):

http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy=‘relevance’

and get the results page in GeoNetwork ?

I mean, automatize the manual process of entering search parameters and
click the search Button, using URL parameters.

The reason is I want, from a form in another website, to send to the
results in GeoNetwork.

Is it possible to this in GeoNetwork ?

Thanks

Severo

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

Perfect, thanks...

Well, only one other question: isn't it possible to see the general interface, with the search form on the left side, instead of only the results ?

Le 24/07/12 19:41, heikki a écrit :

hi Sylvain,

a correct URL for that in a standard installation on localhost would be http://localhost:8080/geonetwork/srv/en/main.search?any=‘africa’&sortBy=‘relevance’ <http://localhost:8080/geonetwork/srv/eng/main.search?any=‘africa’&sortBy=‘relevance’&gt; . This should work OK if you didn't change default port and web application name.

Does it ?

Kind regards
Heikki Doeleman

On Wed, Jul 25, 2012 at 1:09 AM, Sylvain Lesage <severo@anonymised.com <mailto:severo@anonymised.com>> wrote:

    Hi,

    I didn't find in GeoNetwork documentation how to specify search
    parameters to GeoNetwork via URL, in the following style (taking the
    example from
    http://geonetwork-opensource.org/latest/developers/xml_services/metadata_xml_services.html#search-metadata-xml-search):

    http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance
    <http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance&gt;&#39;

    and get the results page in GeoNetwork ?

    I mean, automatize the manual process of entering search
    parameters and
    click the search Button, using URL parameters.

    The reason is I want, from a form in another website, to send to the
    results in GeoNetwork.

    Is it possible to this in GeoNetwork ?

    Thanks

    Severo

    ------------------------------------------------------------------------------
    Live Security Virtual Conference
    Exclusive live event will cover all the ways today's security and
    threat landscape has changed and how IT managers can respond.
    Discussions
    will include endpoint security, mobile security and the latest in
    malware
    threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
    _______________________________________________
    GeoNetwork-users mailing list
    GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork

I'm afraid not, without making changes to GeoNetwork -- you get that
general interface only if you use 'main.home' in your URL, but that doesn't
execute the search. From the general interface the search is done through
an Ajax call that puts these results next to that left side with the search
form ..

On Wed, Jul 25, 2012 at 1:52 AM, Sylvain Lesage <severo@anonymised.com> wrote:

Perfect, thanks...

Well, only one other question: isn't it possible to see the general
interface, with the search form on the left side, instead of only the
results ?

Le 24/07/12 19:41, heikki a écrit :
> hi Sylvain,
>
> a correct URL for that in a standard installation on localhost would
> be
>
http://localhost:8080/geonetwork/srv/en/main.search?any=‘africa’&sortBy='relevance
'
> <
http://localhost:8080/geonetwork/srv/eng/main.search?any=‘africa’&sortBy=‘relevance’&gt;
.
> This should work OK if you didn't change default port and web
> application name.
>
> Does it ?
>
> Kind regards
> Heikki Doeleman
>
>
>
>
> On Wed, Jul 25, 2012 at 1:09 AM, Sylvain Lesage <severo@anonymised.com
> <mailto:severo@anonymised.com>> wrote:
>
> Hi,
>
> I didn't find in GeoNetwork documentation how to specify search
> parameters to GeoNetwork via URL, in the following style (taking the
> example from
>
http://geonetwork-opensource.org/latest/developers/xml_services/metadata_xml_services.html#search-metadata-xml-search
):
>
>
http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance
> <
http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance
>'
>
> and get the results page in GeoNetwork ?
>
> I mean, automatize the manual process of entering search
> parameters and
> click the search Button, using URL parameters.
>
> The reason is I want, from a form in another website, to send to the
> results in GeoNetwork.
>
> Is it possible to this in GeoNetwork ?
>
> Thanks
>
> Severo
>
>
------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions
> will include endpoint security, mobile security and the latest in
> malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> GeoNetwork-users mailing list
> GeoNetwork-users@lists.sourceforge.net
> <mailto:GeoNetwork-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

OK. Thanks a lot!

Le 24/07/12 20:05, heikki a écrit :

I'm afraid not, without making changes to GeoNetwork -- you get that general interface only if you use 'main.home' in your URL, but that doesn't execute the search. From the general interface the search is done through an Ajax call that puts these results next to that left side with the search form ..

On Wed, Jul 25, 2012 at 1:52 AM, Sylvain Lesage <severo@anonymised.com <mailto:severo@anonymised.com>> wrote:

    Perfect, thanks...

    Well, only one other question: isn't it possible to see the general
    interface, with the search form on the left side, instead of only the
    results ?

    Le 24/07/12 19:41, heikki a écrit :
    > hi Sylvain,
    >
    > a correct URL for that in a standard installation on localhost would
    > be
    >
    http://localhost:8080/geonetwork/srv/en/main.search?any=‘africa’&sortBy='relevance
    <http://localhost:8080/geonetwork/srv/en/main.search?any=‘africa’&sortBy='relevance&gt;&#39;
    >
    <http://localhost:8080/geonetwork/srv/eng/main.search?any=‘africa’&sortBy=‘relevance’&gt;
    .
    > This should work OK if you didn't change default port and web
    > application name.
    >
    > Does it ?
    >
    > Kind regards
    > Heikki Doeleman
    >
    > On Wed, Jul 25, 2012 at 1:09 AM, Sylvain Lesage
    <severo@anonymised.com <mailto:severo@anonymised.com>
    > <mailto:severo@anonymised.com>> wrote:
    >
    > Hi,
    >
    > I didn't find in GeoNetwork documentation how to specify search
    > parameters to GeoNetwork via URL, in the following style
    (taking the
    > example from
    >
    http://geonetwork-opensource.org/latest/developers/xml_services/metadata_xml_services.html#search-metadata-xml-search):
    >
    http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance
    <http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance&gt;
    > <http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance&gt;&#39;
    >
    > and get the results page in GeoNetwork ?
    >
    > I mean, automatize the manual process of entering search
    > parameters and
    > click the search Button, using URL parameters.
    >
    > The reason is I want, from a form in another website, to
    send to the
    > results in GeoNetwork.
    >
    > Is it possible to this in GeoNetwork ?
    >
    > Thanks
    >
    > Severo
    >
    ------------------------------------------------------------------------------
    > Live Security Virtual Conference
    > Exclusive live event will cover all the ways today's
    security and
    > threat landscape has changed and how IT managers can respond.
    > Discussions
    > will include endpoint security, mobile security and the
    latest in
    > malware
    > threats.
    http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
    > _______________________________________________
    > GeoNetwork-users mailing list
    > GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    > <mailto:GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>>
    > https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    > GeoNetwork OpenSource is maintained at
    > http://sourceforge.net/projects/geonetwork
    >

    ------------------------------------------------------------------------------
    Live Security Virtual Conference
    Exclusive live event will cover all the ways today's security and
    threat landscape has changed and how IT managers can respond.
    Discussions
    will include endpoint security, mobile security and the latest in
    malware
    threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
    _______________________________________________
    GeoNetwork-users mailing list
    GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork

It wouldn't be rocket-science to make a slight modification so the result
of 'main.home' would, on document load, check for URL params and then
automatically launch the search. I think that would be a nice addition to
the GN code base. Want to contribute ?

On Wed, Jul 25, 2012 at 2:06 AM, Sylvain Lesage <severo@anonymised.com> wrote:

OK. Thanks a lot!

Le 24/07/12 20:05, heikki a écrit :
> I'm afraid not, without making changes to GeoNetwork -- you get that
> general interface only if you use 'main.home' in your URL, but that
> doesn't execute the search. From the general interface the search is
> done through an Ajax call that puts these results next to that left
> side with the search form ..
>
>
>
> On Wed, Jul 25, 2012 at 1:52 AM, Sylvain Lesage <severo@anonymised.com
> <mailto:severo@anonymised.com>> wrote:
>
> Perfect, thanks...
>
> Well, only one other question: isn't it possible to see the general
> interface, with the search form on the left side, instead of only the
> results ?
>
> Le 24/07/12 19:41, heikki a écrit :
> > hi Sylvain,
> >
> > a correct URL for that in a standard installation on localhost
would
> > be
> >
>
http://localhost:8080/geonetwork/srv/en/main.search?any=‘africa’&sortBy='relevance
> <
http://localhost:8080/geonetwork/srv/en/main.search?any=‘africa’&sortBy='relevance
>'
> >
> <
http://localhost:8080/geonetwork/srv/eng/main.search?any=‘africa’&sortBy=‘relevance’
>
> .
> > This should work OK if you didn't change default port and web
> > application name.
> >
> > Does it ?
> >
> > Kind regards
> > Heikki Doeleman
> >
> >
> >
> >
> > On Wed, Jul 25, 2012 at 1:09 AM, Sylvain Lesage
> <severo@anonymised.com <mailto:severo@anonymised.com>
> > <mailto:severo@anonymised.com>> wrote:
> >
> > Hi,
> >
> > I didn't find in GeoNetwork documentation how to specify search
> > parameters to GeoNetwork via URL, in the following style
> (taking the
> > example from
> >
>
http://geonetwork-opensource.org/latest/developers/xml_services/metadata_xml_services.html#search-metadata-xml-search
):
> >
> >
>
http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance
> <
http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance
>
> >
> <
http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance
>'
> >
> > and get the results page in GeoNetwork ?
> >
> > I mean, automatize the manual process of entering search
> > parameters and
> > click the search Button, using URL parameters.
> >
> > The reason is I want, from a form in another website, to
> send to the
> > results in GeoNetwork.
> >
> > Is it possible to this in GeoNetwork ?
> >
> > Thanks
> >
> > Severo
> >
> >
>
------------------------------------------------------------------------------
> > Live Security Virtual Conference
> > Exclusive live event will cover all the ways today's
> security and
> > threat landscape has changed and how IT managers can respond.
> > Discussions
> > will include endpoint security, mobile security and the
> latest in
> > malware
> > threats.
> http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> > _______________________________________________
> > GeoNetwork-users mailing list
> > GeoNetwork-users@lists.sourceforge.net
> <mailto:GeoNetwork-users@lists.sourceforge.net>
> > <mailto:GeoNetwork-users@lists.sourceforge.net
> <mailto:GeoNetwork-users@lists.sourceforge.net>>
> > https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> > GeoNetwork OpenSource is maintained at
> > http://sourceforge.net/projects/geonetwork
> >
> >
>
>
------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions
> will include endpoint security, mobile security and the latest in
> malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> GeoNetwork-users mailing list
> GeoNetwork-users@lists.sourceforge.net
> <mailto:GeoNetwork-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>
>

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

Yes, I will put it in my TODO list :slight_smile:

But first of all, I will create a ticket, maybe (surely) someone will be faster than I to implement that feature.

Le 24/07/12 20:22, heikki a écrit :

It wouldn't be rocket-science to make a slight modification so the result of 'main.home' would, on document load, check for URL params and then automatically launch the search. I think that would be a nice addition to the GN code base. Want to contribute ?

On Wed, Jul 25, 2012 at 2:06 AM, Sylvain Lesage <severo@anonymised.com <mailto:severo@anonymised.com>> wrote:

    OK. Thanks a lot!

    Le 24/07/12 20:05, heikki a écrit :
    > I'm afraid not, without making changes to GeoNetwork -- you get that
    > general interface only if you use 'main.home' in your URL, but that
    > doesn't execute the search. From the general interface the search is
    > done through an Ajax call that puts these results next to that left
    > side with the search form ..
    >
    > On Wed, Jul 25, 2012 at 1:52 AM, Sylvain Lesage
    <severo@anonymised.com <mailto:severo@anonymised.com>
    > <mailto:severo@anonymised.com>> wrote:
    >
    > Perfect, thanks...
    >
    > Well, only one other question: isn't it possible to see the
    general
    > interface, with the search form on the left side, instead of
    only the
    > results ?
    >
    > Le 24/07/12 19:41, heikki a écrit :
    > > hi Sylvain,
    > >
    > > a correct URL for that in a standard installation on
    localhost would
    > > be
    > >
    >
    http://localhost:8080/geonetwork/srv/en/main.search?any=‘africa’&sortBy='relevance
    <http://localhost:8080/geonetwork/srv/en/main.search?any=‘africa’&sortBy='relevance&gt;
    > <http://localhost:8080/geonetwork/srv/en/main.search?any=‘africa’&sortBy='relevance&gt;&#39;
    > >
    > <http://localhost:8080/geonetwork/srv/eng/main.search?any=‘africa’&sortBy=‘relevance’&gt;
    > .
    > > This should work OK if you didn't change default port and web
    > > application name.
    > >
    > > Does it ?
    > >
    > > Kind regards
    > > Heikki Doeleman
    > >
    > > On Wed, Jul 25, 2012 at 1:09 AM, Sylvain Lesage
    > <severo@anonymised.com <mailto:severo@anonymised.com>
    <mailto:severo@anonymised.com>
    > > <mailto:severo@anonymised.com
    <mailto:severo@anonymised.com>>> wrote:
    > >
    > > Hi,
    > >
    > > I didn't find in GeoNetwork documentation how to
    specify search
    > > parameters to GeoNetwork via URL, in the following style
    > (taking the
    > > example from
    > >
    >
    http://geonetwork-opensource.org/latest/developers/xml_services/metadata_xml_services.html#search-metadata-xml-search):
    > >
    >
    http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance
    <http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance&gt;
    > <http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance&gt;
    > >
    > <http://localhost/geonetwork/srv/en/search?any=‘africa’&sortBy='relevance&gt;&#39;
    > >
    > > and get the results page in GeoNetwork ?
    > >
    > > I mean, automatize the manual process of entering search
    > > parameters and
    > > click the search Button, using URL parameters.
    > >
    > > The reason is I want, from a form in another website, to
    > send to the
    > > results in GeoNetwork.
    > >
    > > Is it possible to this in GeoNetwork ?
    > >
    > > Thanks
    > >
    > > Severo
    > >
    >
    ------------------------------------------------------------------------------
    > > Live Security Virtual Conference
    > > Exclusive live event will cover all the ways today's
    > security and
    > > threat landscape has changed and how IT managers can
    respond.
    > > Discussions
    > > will include endpoint security, mobile security and the
    > latest in
    > > malware
    > > threats.
    > http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
    > > _______________________________________________
    > > GeoNetwork-users mailing list
    > > GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    > <mailto:GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>>
    > > <mailto:GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    > <mailto:GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>>>
    > > https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    > > GeoNetwork OpenSource is maintained at
    > > http://sourceforge.net/projects/geonetwork
    > >
    >
    ------------------------------------------------------------------------------
    > Live Security Virtual Conference
    > Exclusive live event will cover all the ways today's
    security and
    > threat landscape has changed and how IT managers can respond.
    > Discussions
    > will include endpoint security, mobile security and the
    latest in
    > malware
    > threats.
    http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
    > _______________________________________________
    > GeoNetwork-users mailing list
    > GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    > <mailto:GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>>
    > https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    > GeoNetwork OpenSource is maintained at
    > http://sourceforge.net/projects/geonetwork
    >

    ------------------------------------------------------------------------------
    Live Security Virtual Conference
    Exclusive live event will cover all the ways today's security and
    threat landscape has changed and how IT managers can respond.
    Discussions
    will include endpoint security, mobile security and the latest in
    malware
    threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
    _______________________________________________
    GeoNetwork-users mailing list
    GeoNetwork-users@lists.sourceforge.net
    <mailto:GeoNetwork-users@lists.sourceforge.net>
    https://lists.sourceforge.net/lists/listinfo/geonetwork-users
    GeoNetwork OpenSource is maintained at
    http://sourceforge.net/projects/geonetwork