[GeoNetwork-devel] Sort CSW GetRecords response in chronological order

Hi list,

I setup my catalog with GeoNetwork, and each record include the temporal range. I am wondering can I get the GetRecords response in chronological order? Let’s say, put the latest records at first? If not, can I use to get the response in chronological order?

Thanks!
Yuanzheng Shao

You should be able to do this. take a look at the index-fields.xsl for one to see how your field is indexed. I think there are some other options you can use as well. I think you can look in the loc/eng/xml/strings.xml and look at the sortby elements for the different values you can sortby

···

On Sun, Nov 11, 2012 at 5:18 AM, Yuanzheng Shao <yshao36@anonymised.com> wrote:

Hi list,

I setup my catalog with GeoNetwork, and each record include the temporal range. I am wondering can I get the GetRecords response in chronological order? Let’s say, put the latest records at first? If not, can I use to get the response in chronological order?

Thanks!
Yuanzheng Shao


Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov


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

Hi Jesse,

Thanks for you quick response.
Your solution is working. By modifying “loc/eng/xml/strings.xml” file (add “tempExtentBegin”), I can see the value “tempExtentBegin” is listed in “SortBy” option.

BTW, to use GetRecords request to get the chronological response, I found GeoNetwork supports ogs:SortBy parameter very well. By adding the following elements in the GetRecords request:

···

On Sun, Nov 11, 2012 at 5:18 AM, Yuanzheng Shao <yshao36@anonymised.com> wrote:

Hi list,

I setup my catalog with GeoNetwork, and each record include the temporal range. I am wondering can I get the GetRecords response in chronological order? Let’s say, put the latest records at first? If not, can I use to get the response in chronological order?

Thanks!
Yuanzheng Shao


Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_nov


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