Hi,
Nobody has an idea to help me?
I really need your support, I found nothing in the documentation that I read. I'm working with geonetwork 2.1.
Thank you very much
Stéphanie D.
-----Original Message-----
From: stephanie dondainaz
Sent: mercredi 3 juin 2009 10:23
To: Jeroen Ticheler
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Help for CSW and GeoNetwork compatibility
Ok,
I saw the example of Mr. Coudert, I think I need to explain my case specifically.
Ok, so I call Geonetwork by CSW with a URL like this:
http://myServer/geonetwork?request=GetRecords&service=CSW&version=2.0.1&resultType=results&namespace=csw:http://www.opengis.net/cat/csw&outputSchema=csw:IsoRecord&elementSetName=full&constraintLanguage=FILTER&constraint_language_version=1.1.0&startPosition=1&maxRecords=5&constraint=<Filter xmlns=\"http://www.opengis.net/ogc\\" xmlns:gml=\"http://www.opengis.net/gml\\"><And><PropertyIsLike wildCard=\"%\" singleChar=\"_\" escape=\"\\\"><PropertyName>any</PropertyName><Literal>$filterfreetextcriteria%</Literal></PropertyIsLike><PropertyIsLike wildCard=\"%\" singleChar=\"_\" escape=\"\\\"><PropertyName>any</PropertyName><Literal>$simple_filterfreetextcriteria%</Literal></PropertyIsLike></And></Filter>
In this URL, I want to add something like "&sortby=" but I don't know what to put after the "=".
One of my test:
&sortby='<ogc:SortProperty xmlns:ogc=\"http://www.opengis.net/ogc\\"><ogc:PropertyName> gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/gmd:LocalisedCharacterString</ogc:PropertyName><ogc:SortOrder>ASC</ogc:SortOrder></ogc:SortProperty>'
Someone has the right syntax?
Thank you very much
Stéphanie D.
-----Original Message-----
From: Jeroen Ticheler [mailto:Jeroen.Ticheler@anonymised.com]
Sent: mercredi 27 mai 2009 13:26
To: stephanie dondainaz
Cc: Mathieu Coudert; geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Help for CSW and GeoNetwork compatibility
They are orderings supported by GeoNetwork and made available through
the CSW interface.
Ciao,
Jeroen
On May 27, 2009, at 12:58 PM, stephanie dondainaz wrote:
Hi,
Thanks for the example.
< title >, < popularity >, etc.. are fields of your metadatas?
Stephanie
From: Mathieu Coudert [mailto:mathieu.coudert@anonymised.com]
Sent: mercredi 27 mai 2009 12:33
To: stephanie dondainaz
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Help for CSW and GeoNetwork
compatibilityHi,
Here is an example of CSW request using the sortBy parameter.
<?xml version="1.0"?>
<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
service="CSW" version="2.0.2"
resultType="results">
<csw:Query typeNames="csw:Record">
<csw:ElementSetName>summary</csw:ElementSetName>
<csw:Constraint version="1.1.0">
<Filter xmlns="http://www.opengis.net/ogc"
xmlns:gml="http://www.opengis.net/gml"/>
</csw:Constraint>
<ogc:SortBy xmlns:ogc="http://www.opengis.net/ogc">
<ogc:SortProperty>
<ogc:PropertyName>title</ogc:PropertyName>
<ogc:SortOrder>ASC</ogc:SortOrder>
</ogc:SortProperty>
</ogc:SortBy>
</csw:Query>
</csw:GetRecords>You could also sort your results by popularity, rating or date.
<ogc:PropertyName>popularity</ogc:PropertyName>
<ogc:PropertyName>rating</ogc:PropertyName>
<ogc:PropertyName>date</ogc:PropertyName>HTH,
Cheers,
MathieuOn Wed, May 27, 2009 at 12:16 PM, stephanie dondainaz
<stephanie.dondainaz@anonymised.com> wrote:Hello everybody.
I'm working with Geonetwork on a project, and I use "CSW" to get some
metadatas on my server.To present those metadatas, I want to sort them.
I've seen in the OGC documentation that there is a parameter I can
use,
called "sortby", but it doesn't work for me.Do you know if Geonetwork can understand it?
If it is the case, maybe can you give me the right syntaxe?
Thank for help
------------------------------------------------------------------------
------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity
professionals
Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like
Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-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------------------------------------------------------------------------------
Register Now for Creativity and Technology (CaT), June 3rd, NYC. CaT
is a gathering of tech-side developers & brand creativity
professionals. Meet
the minds behind Google Creative Lab, Visual Complexity, Processing, &
iPhoneDevCamp as they present alongside digital heavyweights like
Barbarian
Group, R/GA, & Big Spaceship. http://p.sf.net/sfu/creativitycat-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
------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
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