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
compatibility
Hi,
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,
Mathieu
On 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