[Geonetwork-devel] Re: GeoNetwork OpenSource and CSW 2

Hi Robert,

we have to distinguish between the format of the query and the
queried fields. The format is like this: field1='aaa' AND field2<20.
When I say that the parser is trivial, I mean that it can handle simple
formats like the previous one: that is simple clauses (field1='aaa')
connected by AND and OR operators (even nested). The parser neither
handles strings that contain spaces (like field1='aaa bbb') nor more
complex constructes that uses spatial operators.

Regarding the queriable fields, you have:
- identifier
- title
- subject
- abstract
- modified
- type
- format
- bounding box
...

There are no fields named 'mission' and 'sensor' into the OGC
standard (both core and iso profile) so you cannot query these fields.

Cheers,
Andrea

Hi Andrea,

Many thanks for your reply. Please could you provide me with more
information on the following: 'The CQL parser is pretty trivial (it uses
a small existing parser). You cannot handle complex queries with that.' ?

The kind of query we are interested in making (as a minimum) would
include the following query criteria:
- mission
- sensor
- rectangular geographical area
- 'to-from' date

Does the CQL parser require more development to support a query like
that described above?

Thanks,
Rob

Andrea Carboni wrote:

>Hi Robert,
>
>here is the current status (and issues) of the CSW implementation:
>
>- The new ISO 19139 has been taken into account to implement the CSW.
> Because this standard is not final yet, we used the schema present at the
> address http://www.isotc211.org/schemas/2005 which is updated up to March
> 2006.
>
>- We used the ISO profile which is not final yet. This leads to some anomalies
> that we hope to fix in the near future. Without fixing these, I don't think that
> a catalogue implementation can effectively communicate with another.
>
>- The implementation is almost finished. We have implemented the following
> operations: GetCapabilities, DescribeRecord, GetRecordById, GetRecords.
> What is missing is:
> - the DescribeRecord is not finished because it is not clear what it should return.
> - the stylesheet to convert a filter expression into a lucene query (for the
> GetRecords operation)
>
>- The CQL parser is pretty trivial (it uses a small existing parser). You cannot
> handle complex queries with that.
>
>- The CSW code is modularized into client-common-server modules. There is a
> client GUI to test CSW capabilities and a small common library to simplify
> the development of Java clients.
>
>- We have almost finished a set of stylesheets to convert from the ISO19115 to the
> ISO19139 standard.
>
>- Before releasing GeoNetwork 2.1 we have to decide how to manage the editor because
> the XML schema of the 19139 is pretty complex and our parser is not strong enough.
> We have to decide between improving the parser (and delaying release 2.1) or not.
>
>- At the workshop we will decide how to drive both the specification and the
> implementation of the CSW.
>
>Cheers,
>Andrea
>
>
>
>>Dear Robert Jones,
>>
>>Thanks for your email!
>>
>>The CSW 2 interfaces have been implemented on GeoNetwork opensource
>>for release in version 2.1. We have some related parts of the
>>application that are currently upgraded to support the ISO19139
>>formatted metadata before we can release 2.1. The source code for the
>>CSW2 implementation is available in the HEAD of the CVS on
>>sourceforge. The implementation is based on the ISO19115/19119 profile.
>>
>>I have copied Andrea Carboni who is working on the implementation, he
>>can provide feedback on what the status is. I also copied the
>>GeoNetwork developers mailing list for information.
>>
>>Due to an upcoming workshop we have next week, I'm not sure how quick
>>Andrea is able to react.
>>
>>Regards,
>>Jeroen
>>
>>_______________________
>>Jeroen Ticheler
>>FAO-UN
>>Tel: +39 06 57056041
>>http://www.fao.org/geonetwork
>>42.07420°N 12.34343°E
>>
>>
>>On Apr 18, 2006, at 11:48 AM, Robert William Jones wrote:
>>
>>
>>
>>>Dear Sir/Madam,
>>>
>>>We are interested in becoming involved in the development of
>>>GeoNetwork OpenSource 2, specifically the CSW 2 interface element.
>>>I note that the presentation at this URL - http://y.eogeo.org/files/
>>>eogeo2005/7-ticheler-eogeo-2005.ppt - states that release 2.1 will
>>>include the CSW 2 interface. If possible, please could you inform
>>>me how far development has progressed towards CSW 2 compliance, and
>>>whether there is a chance of a release including the interface in
>>>the near future?
>>>
>>>Many thanks,
>>>Robert Jones
>>>
>>>Robert William Jones
>>>Software Engineer
>>>
>>>ComSine Limited
>>>Telephone: + 44 (0) 1483 457121
>>>Fax: + 44 (0) 1483 304836
>>>Mobile: +44 (0) 7939 295868
>>>www.comsine.com
>>>
>>>*Please Note:*
>>>This text is confidential. If you are not the named addressee, it
>>>could
>>>be unlawful for you to read, copy, distribute, disclose or use the
>>>information contained herewith. If you are not the intended recipient
>>>please telephone +44 (0) 1483 457121.
>>>
>>>

Hi, guys,

Is there anybody who is translating or finished the Chinese version? If no, I'd like do that in one week and contribute to the community.

------------------
Enri
2006-04-19
------------------

Geonetwork-devel@lists.sourceforge.net

Hi Enri,
Thanks for the offer! We had GeoNetwork opensource version 1 translated into Chinese. Unfortunately for version 2 we didn't receive updates to that initial translation to be incorporated. However, we will have colleagues from China coming to FAO next week and we will discuss again with them the update of the language files. I suggest that you wait for two weeks before starting so this can be done in a coordinates manner.
That said, for sure you can test and compare the Chinese language files of version 1 with the English ones of version 2. Some things have changed, among which the location of the files.
Ciao,
Jeroen

On Apr 19, 2006, at 2:52 AM, Zhou xu wrote:

Hi, guys,

Is there anybody who is translating or finished the Chinese version? If no, I'd like do that in one week and contribute to the community.

------------------
Enri
2006-04-19
------------------

Geonetwork-devel@lists.sourceforge.net

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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, Jeroen,

Thank you for your message. I download the version of 1.2.0 and 1.2.1 from sourceforge and find that the documents under */cn/ folder are all just place holders, they are all of English in the content. I caompred the folder structure of verion 1.2 and 2.0.2, found it's a little different for localization.

Actually I've almost finished translating the files under xml/loc/en folder of verion 2.0.2 into Chinese except the iso19115.xml file, I find it's very long and should be a two days' work. Before I start to to that, I want to get some more suggestion from you. If there exists a Chinese version of this file, that would be fine, I will preciate your help if you send it to me so that I can make a complete one.

And I am very willing to be responsible for the Chinese version maintenance so that each future release can have a good Chinese face if you like.

------------------
Enri Zhou
2006-04-19

-------------------------------------------------------------
======= 2006-04-19 14:46:36 you wrote:=======

Hi Enri,
Thanks for the offer! We had GeoNetwork opensource version 1
translated into Chinese. Unfortunately for version 2 we didn't
receive updates to that initial translation to be incorporated.
However, we will have colleagues from China coming to FAO next week
and we will discuss again with them the update of the language files.
I suggest that you wait for two weeks before starting so this can be
done in a coordinates manner.
That said, for sure you can test and compare the Chinese language
files of version 1 with the English ones of version 2. Some things
have changed, among which the location of the files.
Ciao,
Jeroen

On Apr 19, 2006, at 2:52 AM, Zhou xu wrote:

Hi, guys,

Is there anybody who is translating or finished the Chinese
version? If no, I'd like do that in one week and contribute to the
community.

------------------
Enri
2006-04-19
------------------

Geonetwork-devel@lists.sourceforge.net

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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, Jeroen,

I've finished the Chinese version. Thank you for the file you sent to me, but I didn't compare them one by one because it's difficult to mapping them correctly.

This version is based on the latest Version 2.0.2, please find in in attachment.
During my translation, I find there are three strings used by xsl/admin.xsl, they are:

XML Metadata Insert
Batch Import
Search for Unused

So I append three lines to strings.xml and change my xsl/admin.xsl accordingly, for your information, they are:

  <xmlMetadataInsertLabel>XML元数据插入</xmlMetadataInsertLabel>
  <batchImportLabel>批量导入</batchImportLabel>
  <searchForUnusedLabel>搜索未用的元数据</searchForUnusedLabel>

Also I translated the file of xml/regions.xml, which is contained in the attached package. But I find if I want to use this file in Chinese version of GeoNetwork, I have to hack the file of main_page.xsl by change 'name_en' into 'name_cn', is there a way to dell with this automatically?

------------------
Enri
2006-04-24

-------------------------------------------------------------
======= 2006-04-20 06:11:18 you wrote:=======

Hi Enri,
Thanks for the offer! I suggest you compare the strings to the
attached chinese ones. No ISO 19115 translations available so far.
Ciao,
Jeroen

On Apr 19, 2006, at 12:50 PM, Zhou xu wrote:

Hi, Jeroen,

Thank you for your message. I download the version of 1.2.0 and
1.2.1 from sourceforge and find that the documents under */cn/
folder are all just place holders, they are all of English in the
content. I caompred the folder structure of verion 1.2 and 2.0.2,
found it's a little different for localization.

Actually I've almost finished translating the files under xml/loc/
en folder of verion 2.0.2 into Chinese except the iso19115.xml
file, I find it's very long and should be a two days' work. Before
I start to to that, I want to get some more suggestion from you. If
there exists a Chinese version of this file, that would be fine, I
will preciate your help if you send it to me so that I can make a
complete one.

And I am very willing to be responsible for the Chinese version
maintenance so that each future release can have a good Chinese
face if you like.

------------------
Enri Zhou
2006-04-19

-------------------------------------------------------------
======= 2006-04-19 14:46:36 you wrote:=======

Hi Enri,
Thanks for the offer! We had GeoNetwork opensource version 1
translated into Chinese. Unfortunately for version 2 we didn't
receive updates to that initial translation to be incorporated.
However, we will have colleagues from China coming to FAO next week
and we will discuss again with them the update of the language files.
I suggest that you wait for two weeks before starting so this can be
done in a coordinates manner.
That said, for sure you can test and compare the Chinese language
files of version 1 with the English ones of version 2. Some things
have changed, among which the location of the files.
Ciao,
Jeroen

On Apr 19, 2006, at 2:52 AM, Zhou xu wrote:

Hi, guys,

Is there anybody who is translating or finished the Chinese
version? If no, I'd like do that in one week and contribute to the
community.

------------------
Enri
2006-04-19
------------------

Geonetwork-devel@lists.sourceforge.net

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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

= = = = = = = = = = = = = = = = = = = =

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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

= = = = = = = = = = = = = = = = = = = =

(attachments)

geonet_chinese_2.0.2.rar (73.5 KB)

Hi, Jeroen

The problem of Chinese Character insert has been resolved by changing the mysql jdbc database connection parameter
from
<url>jdbc:mysql://localhost/geonet</url>
to
<url>jdbc:mysql://localhost/geonet?useUnicode=true&amp;characterEncoding=utf8</url>

And I find if requests containing Chinese characters the search form must use POST instead of GET, the search forms now which use GET do not work with Chinese character.

There comes other two problems, one for Chinese or other similar language, the other is general:
1. The search results of both simple and advanced search request can not do forward by the link because of empty id, for example, I search with free text by word "Africa", the result correctly shows "Hydrological basins in Africa (SAMPLE DATA!) " with a link and its thumbnail image, but the link is "http://127.0.0.1:8080/geonetwork/srv/cn/metadata.show?id=&currTab=simple&quot;, you can see the id is empty.

2. Because there's no delimiter between words for Chinese sentences, or for some other reason, I can not retrieve the records which contain target Chinese keywords by simple/advanced search. I think this problem exists with Japanese, Korea etc too.

I am not very familiar with Java and XML, would you please give me some suggestion on how to deal with these?

You've done a good job and I find GeoNetwork is very useful for our work, Thank you very much.

------------------
Enri
2006-04-28

-------------------------------------------------------------
======= 2006-04-26 13:13:01 you wrote:=======

Hi,
I have approved them yesterday and received them through the
mailinglist, so we all got it I suppose!
We are currently in a GeoNetwork workshop which is taken all of our
time, so sorry for not having reacted yet. Thanks for the work in any
way!! We will review and add them later.
Ciao,
Jeroen

On Apr 25, 2006, at 12:43 PM, Zhou xu wrote:

Hi, Jeroen,

I 've finished the Chinse translation and posted it and another
related question for you to the mail list yesterday, but they are
beyond the size limit of 40KB, I was told they are being held until
the list moderator can review it for approval. I want to know who
is responsible for list reviewing, is it possible he/she forget to
do that?

Regards,

Enri
2006-04-25

-------------------------------------------------------------
======= 2006-04-20 06:11:18 you wrote:=======

Hi Enri,
Thanks for the offer! I suggest you compare the strings to the
attached chinese ones. No ISO 19115 translations available so far.
Ciao,
Jeroen

On Apr 19, 2006, at 12:50 PM, Zhou xu wrote:

Hi, Jeroen,

Thank you for your message. I download the version of 1.2.0 and
1.2.1 from sourceforge and find that the documents under */cn/
folder are all just place holders, they are all of English in the
content. I caompred the folder structure of verion 1.2 and 2.0.2,
found it's a little different for localization.

Actually I've almost finished translating the files under xml/loc/
en folder of verion 2.0.2 into Chinese except the iso19115.xml
file, I find it's very long and should be a two days' work. Before
I start to to that, I want to get some more suggestion from you. If
there exists a Chinese version of this file, that would be fine, I
will preciate your help if you send it to me so that I can make a
complete one.

And I am very willing to be responsible for the Chinese version
maintenance so that each future release can have a good Chinese
face if you like.

------------------
Enri Zhou
2006-04-19

-------------------------------------------------------------
======= 2006-04-19 14:46:36 you wrote:=======

Hi Enri,
Thanks for the offer! We had GeoNetwork opensource version 1
translated into Chinese. Unfortunately for version 2 we didn't
receive updates to that initial translation to be incorporated.
However, we will have colleagues from China coming to FAO next week
and we will discuss again with them the update of the language
files.
I suggest that you wait for two weeks before starting so this
can be
done in a coordinates manner.
That said, for sure you can test and compare the Chinese language
files of version 1 with the English ones of version 2. Some things
have changed, among which the location of the files.
Ciao,
Jeroen

On Apr 19, 2006, at 2:52 AM, Zhou xu wrote:

Hi, guys,

Is there anybody who is translating or finished the Chinese
version? If no, I'd like do that in one week and contribute to the
community.

------------------
Enri
2006-04-19
------------------

Geonetwork-devel@lists.sourceforge.net

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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

= = = = = = = = = = = = = = = = = = = =

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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 Enri,
Thanks for your useful feedback! I will contact some people here in FAO to ask for feedback on the language issue you mention in point 2. The other will be put in the tracker. If you find a solution, fixes are most welcome!
Ciao,
Jeroen

On Apr 28, 2006, at 2:59 AM, Zhou xu wrote:

Hi, Jeroen

The problem of Chinese Character insert has been resolved by changing the mysql jdbc database connection parameter
from
<url>jdbc:mysql://localhost/geonet</url>
to
<url>jdbc:mysql://localhost/geonet?useUnicode=true&amp;characterEncoding=utf8</url>

And I find if requests containing Chinese characters the search form must use POST instead of GET, the search forms now which use GET do not work with Chinese character.

There comes other two problems, one for Chinese or other similar language, the other is general:
1. The search results of both simple and advanced search request can not do forward by the link because of empty id, for example, I search with free text by word "Africa", the result correctly shows "Hydrological basins in Africa (SAMPLE DATA!) " with a link and its thumbnail image, but the link is "http://127.0.0.1:8080/geonetwork/srv/cn/metadata.show?id=&currTab=simple&quot;, you can see the id is empty.

2. Because there's no delimiter between words for Chinese sentences, or for some other reason, I can not retrieve the records which contain target Chinese keywords by simple/advanced search. I think this problem exists with Japanese, Korea etc too.

I am not very familiar with Java and XML, would you please give me some suggestion on how to deal with these?

You've done a good job and I find GeoNetwork is very useful for our work, Thank you very much.

------------------
Enri
2006-04-28

-------------------------------------------------------------
======= 2006-04-26 13:13:01 you wrote:=======

Hi,
I have approved them yesterday and received them through the
mailinglist, so we all got it I suppose!
We are currently in a GeoNetwork workshop which is taken all of our
time, so sorry for not having reacted yet. Thanks for the work in any
way!! We will review and add them later.
Ciao,
Jeroen

On Apr 25, 2006, at 12:43 PM, Zhou xu wrote:

Hi, Jeroen,

I 've finished the Chinse translation and posted it and another
related question for you to the mail list yesterday, but they are
beyond the size limit of 40KB, I was told they are being held until
the list moderator can review it for approval. I want to know who
is responsible for list reviewing, is it possible he/she forget to
do that?

Regards,

Enri
2006-04-25

-------------------------------------------------------------
======= 2006-04-20 06:11:18 you wrote:=======

Hi Enri,
Thanks for the offer! I suggest you compare the strings to the
attached chinese ones. No ISO 19115 translations available so far.
Ciao,
Jeroen

On Apr 19, 2006, at 12:50 PM, Zhou xu wrote:

Hi, Jeroen,

Thank you for your message. I download the version of 1.2.0 and
1.2.1 from sourceforge and find that the documents under */cn/
folder are all just place holders, they are all of English in the
content. I caompred the folder structure of verion 1.2 and 2.0.2,
found it's a little different for localization.

Actually I've almost finished translating the files under xml/loc/
en folder of verion 2.0.2 into Chinese except the iso19115.xml
file, I find it's very long and should be a two days' work. Before
I start to to that, I want to get some more suggestion from you. If
there exists a Chinese version of this file, that would be fine, I
will preciate your help if you send it to me so that I can make a
complete one.

And I am very willing to be responsible for the Chinese version
maintenance so that each future release can have a good Chinese
face if you like.

------------------
Enri Zhou
2006-04-19

-------------------------------------------------------------
======= 2006-04-19 14:46:36 you wrote:=======

Hi Enri,
Thanks for the offer! We had GeoNetwork opensource version 1
translated into Chinese. Unfortunately for version 2 we didn't
receive updates to that initial translation to be incorporated.
However, we will have colleagues from China coming to FAO next week
and we will discuss again with them the update of the language
files.
I suggest that you wait for two weeks before starting so this
can be
done in a coordinates manner.
That said, for sure you can test and compare the Chinese language
files of version 1 with the English ones of version 2. Some things
have changed, among which the location of the files.
Ciao,
Jeroen

On Apr 19, 2006, at 2:52 AM, Zhou xu wrote:

Hi, guys,

Is there anybody who is translating or finished the Chinese
version? If no, I'd like do that in one week and contribute to the
community.

------------------
Enri
2006-04-19
------------------

Geonetwork-devel@lists.sourceforge.net

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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

= = = = = = = = = = = = = = = = = = = =

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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

= = = = = = = = = = = = = = = = = = = =

= = = = = = = = = = = = = = = = = = = =

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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,

The empty id problem is fixed by changing {$metadata/geonet:info/id} into {geonet:info/id} in file of xsl/search-results.xsl, But actually I don't know if it is the correct solution, anyway it does work.

------------------
Enri Zhou
2006-05-09

-------------------------------------------------------------
======= 2006-05-02 16:18:05 you wrote:=======

Hi Enri,
Thanks for your useful feedback! I will contact some people here in
FAO to ask for feedback on the language issue you mention in point 2.
The other will be put in the tracker. If you find a solution, fixes
are most welcome!
Ciao,
Jeroen

On Apr 28, 2006, at 2:59 AM, Zhou xu wrote:

Hi, Jeroen

The problem of Chinese Character insert has been resolved by
changing the mysql jdbc database connection parameter
from
<url>jdbc:mysql://localhost/geonet</url>
to
<url>jdbc:mysql://localhost/geonet?
useUnicode=true&amp;characterEncoding=utf8</url>

And I find if requests containing Chinese characters the search
form must use POST instead of GET, the search forms now which use
GET do not work with Chinese character.

There comes other two problems, one for Chinese or other similar
language, the other is general:
1. The search results of both simple and advanced search request
can not do forward by the link because of empty id, for example, I
search with free text by word "Africa", the result correctly shows
"Hydrological basins in Africa (SAMPLE DATA!) " with a link and its
thumbnail image, but the link is "http://127.0.0.1:8080/geonetwork/
srv/cn/metadata.show?id=&currTab=simple", you can see the id is empty.

2. Because there's no delimiter between words for Chinese
sentences, or for some other reason, I can not retrieve the records
which contain target Chinese keywords by simple/advanced search. I
think this problem exists with Japanese, Korea etc too.

I am not very familiar with Java and XML, would you please give me
some suggestion on how to deal with these?

You've done a good job and I find GeoNetwork is very useful for our
work, Thank you very much.

------------------
Enri
2006-04-28

-------------------------------------------------------------
======= 2006-04-26 13:13:01 you wrote:=======

Hi,
I have approved them yesterday and received them through the
mailinglist, so we all got it I suppose!
We are currently in a GeoNetwork workshop which is taken all of our
time, so sorry for not having reacted yet. Thanks for the work in any
way!! We will review and add them later.
Ciao,
Jeroen

On Apr 25, 2006, at 12:43 PM, Zhou xu wrote:

Hi, Jeroen,

I 've finished the Chinse translation and posted it and another
related question for you to the mail list yesterday, but they are
beyond the size limit of 40KB, I was told they are being held until
the list moderator can review it for approval. I want to know who
is responsible for list reviewing, is it possible he/she forget to
do that?

Regards,

Enri
2006-04-25

-------------------------------------------------------------
======= 2006-04-20 06:11:18 you wrote:=======

Hi Enri,
Thanks for the offer! I suggest you compare the strings to the
attached chinese ones. No ISO 19115 translations available so far.
Ciao,
Jeroen

On Apr 19, 2006, at 12:50 PM, Zhou xu wrote:

Hi, Jeroen,

Thank you for your message. I download the version of 1.2.0 and
1.2.1 from sourceforge and find that the documents under */cn/
folder are all just place holders, they are all of English in the
content. I caompred the folder structure of verion 1.2 and 2.0.2,
found it's a little different for localization.

Actually I've almost finished translating the files under xml/loc/
en folder of verion 2.0.2 into Chinese except the iso19115.xml
file, I find it's very long and should be a two days' work. Before
I start to to that, I want to get some more suggestion from
you. If
there exists a Chinese version of this file, that would be fine, I
will preciate your help if you send it to me so that I can make a
complete one.

And I am very willing to be responsible for the Chinese version
maintenance so that each future release can have a good Chinese
face if you like.

------------------
Enri Zhou
2006-04-19

-------------------------------------------------------------
======= 2006-04-19 14:46:36 you wrote:=======

Hi Enri,
Thanks for the offer! We had GeoNetwork opensource version 1
translated into Chinese. Unfortunately for version 2 we didn't
receive updates to that initial translation to be incorporated.
However, we will have colleagues from China coming to FAO next
week
and we will discuss again with them the update of the language
files.
I suggest that you wait for two weeks before starting so this
can be
done in a coordinates manner.
That said, for sure you can test and compare the Chinese language
files of version 1 with the English ones of version 2. Some
things
have changed, among which the location of the files.
Ciao,
Jeroen

On Apr 19, 2006, at 2:52 AM, Zhou xu wrote:

Hi, guys,

Is there anybody who is translating or finished the Chinese
version? If no, I'd like do that in one week and contribute
to the
community.

------------------
Enri
2006-04-19
------------------

Geonetwork-devel@lists.sourceforge.net

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking
scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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

= = = = = = = = = = = = = = = = = = = =

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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

= = = = = = = = = = = = = = = = = = = =

= = = = = = = = = = = = = = = = = = = =

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your
job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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

= = = = = = = = = = = = = = = = = = = =

Many thanks Enri,

your current Chinese translation is already in the cvs. I will have a look
at the stylesheet soon.

Cheers,
Andrea

Hi,

The empty id problem is fixed by changing {$metadata/geonet:info/id} into {geonet:info/id} in file of xsl/search-results.xsl, But actually I don't know if it is the correct solution, anyway it does work.

------------------
Enri Zhou
2006-05-09

-------------------------------------------------------------
======= 2006-05-02 16:18:05 you wrote:=======

>Hi Enri,
>Thanks for your useful feedback! I will contact some people here in
>FAO to ask for feedback on the language issue you mention in point 2.
>The other will be put in the tracker. If you find a solution, fixes
>are most welcome!
>Ciao,
>Jeroen
>
>On Apr 28, 2006, at 2:59 AM, Zhou xu wrote:
>
>> Hi, Jeroen
>>
>> The problem of Chinese Character insert has been resolved by
>> changing the mysql jdbc database connection parameter
>> from
>> <url>jdbc:mysql://localhost/geonet</url>
>> to
>> <url>jdbc:mysql://localhost/geonet?
>> useUnicode=true&amp;characterEncoding=utf8</url>
>>
>> And I find if requests containing Chinese characters the search
>> form must use POST instead of GET, the search forms now which use
>> GET do not work with Chinese character.
>>
>> There comes other two problems, one for Chinese or other similar
>> language, the other is general:
>> 1. The search results of both simple and advanced search request
>> can not do forward by the link because of empty id, for example, I
>> search with free text by word "Africa", the result correctly shows
>> "Hydrological basins in Africa (SAMPLE DATA!) " with a link and its
>> thumbnail image, but the link is "http://127.0.0.1:8080/geonetwork/
>> srv/cn/metadata.show?id=&currTab=simple", you can see the id is empty.
>>
>> 2. Because there's no delimiter between words for Chinese
>> sentences, or for some other reason, I can not retrieve the records
>> which contain target Chinese keywords by simple/advanced search. I
>> think this problem exists with Japanese, Korea etc too.
>>
>> I am not very familiar with Java and XML, would you please give me
>> some suggestion on how to deal with these?
>>
>> You've done a good job and I find GeoNetwork is very useful for our
>> work, Thank you very much.
>>
>> ------------------
>> Enri
>> 2006-04-28
>>
>> -------------------------------------------------------------
>> ======= 2006-04-26 13:13:01 you wrote:=======
>>
>>> Hi,
>>> I have approved them yesterday and received them through the
>>> mailinglist, so we all got it I suppose!
>>> We are currently in a GeoNetwork workshop which is taken all of our
>>> time, so sorry for not having reacted yet. Thanks for the work in any
>>> way!! We will review and add them later.
>>> Ciao,
>>> Jeroen
>>>
>>> On Apr 25, 2006, at 12:43 PM, Zhou xu wrote:
>>>
>>>> Hi, Jeroen,
>>>>
>>>> I 've finished the Chinse translation and posted it and another
>>>> related question for you to the mail list yesterday, but they are
>>>> beyond the size limit of 40KB, I was told they are being held until
>>>> the list moderator can review it for approval. I want to know who
>>>> is responsible for list reviewing, is it possible he/she forget to
>>>> do that?
>>>>
>>>> Regards,
>>>>
>>>> Enri
>>>> 2006-04-25
>>>>
>>>> -------------------------------------------------------------
>>>> ======= 2006-04-20 06:11:18 you wrote:=======
>>>>
>>>>> Hi Enri,
>>>>> Thanks for the offer! I suggest you compare the strings to the
>>>>> attached chinese ones. No ISO 19115 translations available so far.
>>>>> Ciao,
>>>>> Jeroen
>>>>>
>>>>> On Apr 19, 2006, at 12:50 PM, Zhou xu wrote:
>>>>>
>>>>>> Hi, Jeroen,
>>>>>>
>>>>>> Thank you for your message. I download the version of 1.2.0 and
>>>>>> 1.2.1 from sourceforge and find that the documents under */cn/
>>>>>> folder are all just place holders, they are all of English in the
>>>>>> content. I caompred the folder structure of verion 1.2 and 2.0.2,
>>>>>> found it's a little different for localization.
>>>>>>
>>>>>> Actually I've almost finished translating the files under xml/loc/
>>>>>> en folder of verion 2.0.2 into Chinese except the iso19115.xml
>>>>>> file, I find it's very long and should be a two days' work. Before
>>>>>> I start to to that, I want to get some more suggestion from
>>>>>> you. If
>>>>>> there exists a Chinese version of this file, that would be fine, I
>>>>>> will preciate your help if you send it to me so that I can make a
>>>>>> complete one.
>>>>>>
>>>>>> And I am very willing to be responsible for the Chinese version
>>>>>> maintenance so that each future release can have a good Chinese
>>>>>> face if you like.
>>>>>>
>>>>>> ------------------
>>>>>> Enri Zhou
>>>>>> 2006-04-19
>>>>>>
>>>>>> -------------------------------------------------------------
>>>>>> ======= 2006-04-19 14:46:36 you wrote:=======
>>>>>>
>>>>>>> Hi Enri,
>>>>>>> Thanks for the offer! We had GeoNetwork opensource version 1
>>>>>>> translated into Chinese. Unfortunately for version 2 we didn't
>>>>>>> receive updates to that initial translation to be incorporated.
>>>>>>> However, we will have colleagues from China coming to FAO next
>>>>>>> week
>>>>>>> and we will discuss again with them the update of the language
>>>>>>> files.
>>>>>>> I suggest that you wait for two weeks before starting so this
>>>>>>> can be
>>>>>>> done in a coordinates manner.
>>>>>>> That said, for sure you can test and compare the Chinese language
>>>>>>> files of version 1 with the English ones of version 2. Some
>>>>>>> things
>>>>>>> have changed, among which the location of the files.
>>>>>>> Ciao,
>>>>>>> Jeroen
>>>>>>>
>>>>>>>
>>>>>>> On Apr 19, 2006, at 2:52 AM, Zhou xu wrote:
>>>>>>>
>>>>>>>> Hi, guys,
>>>>>>>>
>>>>>>>> Is there anybody who is translating or finished the Chinese
>>>>>>>> version? If no, I'd like do that in one week and contribute
>>>>>>>> to the
>>>>>>>> community.
>>>>>>>>
>>>>>>>> ------------------
>>>>>>>> Enri
>>>>>>>> 2006-04-19
>>>>>>>> ------------------
>>>>>>>>
>>>>>>>> Geonetwork-devel@lists.sourceforge.net
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -------------------------------------------------------
>>>>>>>> This SF.Net email is sponsored by xPML, a groundbreaking
>>>>>>>> scripting
>>>>>>>> language
>>>>>>>> that extends applications into web and mobile media. Attend the
>>>>>>>> live webcast
>>>>>>>> and join the prime developer group breaking into this new coding
>>>>>>>> territory!
>>>>>>>> http://sel.as-us.falkag.net/sel?
>>>>>>>> cmd=lnk&kid=110944&bid=241720&dat=121642
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>>
>>>>>>
>>>>>> = = = = = = = = = = = = = = = = = = = =
>>>>>>
>>>>>> -------------------------------------------------------
>>>>>> This SF.Net email is sponsored by xPML, a groundbreaking scripting
>>>>>> language
>>>>>> that extends applications into web and mobile media. Attend the
>>>>>> live webcast
>>>>>> and join the prime developer group breaking into this new coding
>>>>>> territory!
>>>>>> http://sel.as-us.falkag.net/sel?
>>>>>> cmd=lnk&kid=110944&bid=241720&dat=121642
>>>>>> _______________________________________________
>>>>>> 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
>>>>
>>>> = = = = = = = = = = = = = = = = = = = =
>>>>
>>
>> = = = = = = = = = = = = = = = = = = = =
>>
>> -------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services,
>> security?
>> Get stuff done quickly with pre-integrated technology to make your
>> job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?
>> cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> 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
>>
>

= = = = = = = = = = = = = = = = = = = =

�����������������������������������������圆)��j诸����+{�y�碴i⒒py��响y双���剁���\����^v��%� f�*.�:ey�"z拌�hi�1g��)��亘�'觑�_��V诒��
Zr��'�!囤������}�j�哽z_����赭鲡�{����������������������������������������Y�X�Xg��⒐�u朕�b槽���玷�a��a囤l����.���X襄�b�?�'z�(��鳐�
z�(��tê���{Z�����.�����-厨��

Hi, Jeroen,

About search issue related to Chinese, Maybe I find a clue to fix that.

After study Lucene's logic and some source code of GeoNetwork, I find that when I use Chinese charecters dilimited by space as keyword to search, it returns records as expect, if no space between Characters which compose a word, no result can be retrieved.

I notice that the StandardAnalyser of Lucene is used when metadata is idexed, but I don't find the keywords contained in request are pre-processed by any Analyser before query is performed.

It's quite beyond me to figure out the whole logic of GeoNetwork, and the last oppotunity I used Java was several years ago, so I don't know if these words can help to fix the issue.

Thank you for your help.

Regards,
------------------
Enri Zhou
2006-05-10

-------------------------------------------------------------
======= 2006-05-02 16:18:05 you wrote:=======

Hi Enri,
Thanks for your useful feedback! I will contact some people here in
FAO to ask for feedback on the language issue you mention in point 2.
The other will be put in the tracker. If you find a solution, fixes
are most welcome!
Ciao,
Jeroen

On Apr 28, 2006, at 2:59 AM, Zhou xu wrote:

Hi, Jeroen

The problem of Chinese Character insert has been resolved by
changing the mysql jdbc database connection parameter
from
<url>jdbc:mysql://localhost/geonet</url>
to
<url>jdbc:mysql://localhost/geonet?
useUnicode=true&amp;characterEncoding=utf8</url>

And I find if requests containing Chinese characters the search
form must use POST instead of GET, the search forms now which use
GET do not work with Chinese character.

There comes other two problems, one for Chinese or other similar
language, the other is general:
1. The search results of both simple and advanced search request
can not do forward by the link because of empty id, for example, I
search with free text by word "Africa", the result correctly shows
"Hydrological basins in Africa (SAMPLE DATA!) " with a link and its
thumbnail image, but the link is "http://127.0.0.1:8080/geonetwork/
srv/cn/metadata.show?id=&currTab=simple", you can see the id is empty.

2. Because there's no delimiter between words for Chinese
sentences, or for some other reason, I can not retrieve the records
which contain target Chinese keywords by simple/advanced search. I
think this problem exists with Japanese, Korea etc too.

I am not very familiar with Java and XML, would you please give me
some suggestion on how to deal with these?

You've done a good job and I find GeoNetwork is very useful for our
work, Thank you very much.

------------------
Enri
2006-04-28

-------------------------------------------------------------
======= 2006-04-26 13:13:01 you wrote:=======

Hi,
I have approved them yesterday and received them through the
mailinglist, so we all got it I suppose!
We are currently in a GeoNetwork workshop which is taken all of our
time, so sorry for not having reacted yet. Thanks for the work in any
way!! We will review and add them later.
Ciao,
Jeroen

On Apr 25, 2006, at 12:43 PM, Zhou xu wrote:

Hi, Jeroen,

I 've finished the Chinse translation and posted it and another
related question for you to the mail list yesterday, but they are
beyond the size limit of 40KB, I was told they are being held until
the list moderator can review it for approval. I want to know who
is responsible for list reviewing, is it possible he/she forget to
do that?

Regards,

Enri
2006-04-25

-------------------------------------------------------------
======= 2006-04-20 06:11:18 you wrote:=======

Hi Enri,
Thanks for the offer! I suggest you compare the strings to the
attached chinese ones. No ISO 19115 translations available so far.
Ciao,
Jeroen

On Apr 19, 2006, at 12:50 PM, Zhou xu wrote:

Hi, Jeroen,

Thank you for your message. I download the version of 1.2.0 and
1.2.1 from sourceforge and find that the documents under */cn/
folder are all just place holders, they are all of English in the
content. I caompred the folder structure of verion 1.2 and 2.0.2,
found it's a little different for localization.

Actually I've almost finished translating the files under xml/loc/
en folder of verion 2.0.2 into Chinese except the iso19115.xml
file, I find it's very long and should be a two days' work. Before
I start to to that, I want to get some more suggestion from
you. If
there exists a Chinese version of this file, that would be fine, I
will preciate your help if you send it to me so that I can make a
complete one.

And I am very willing to be responsible for the Chinese version
maintenance so that each future release can have a good Chinese
face if you like.

------------------
Enri Zhou
2006-04-19

-------------------------------------------------------------
======= 2006-04-19 14:46:36 you wrote:=======

Hi Enri,
Thanks for the offer! We had GeoNetwork opensource version 1
translated into Chinese. Unfortunately for version 2 we didn't
receive updates to that initial translation to be incorporated.
However, we will have colleagues from China coming to FAO next
week
and we will discuss again with them the update of the language
files.
I suggest that you wait for two weeks before starting so this
can be
done in a coordinates manner.
That said, for sure you can test and compare the Chinese language
files of version 1 with the English ones of version 2. Some
things
have changed, among which the location of the files.
Ciao,
Jeroen

On Apr 19, 2006, at 2:52 AM, Zhou xu wrote:

Hi, guys,

Is there anybody who is translating or finished the Chinese
version? If no, I'd like do that in one week and contribute
to the
community.

------------------
Enri
2006-04-19
------------------

Geonetwork-devel@lists.sourceforge.net

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking
scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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

= = = = = = = = = = = = = = = = = = = =

-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting
language
that extends applications into web and mobile media. Attend the
live webcast
and join the prime developer group breaking into this new coding
territory!
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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

= = = = = = = = = = = = = = = = = = = =

= = = = = = = = = = = = = = = = = = = =

-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your
job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?
cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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 Enri,

there are a set of stylesheets inside the web/xml/search folder which
purpose is to extract the searchable fields from a metadata. The Lucene's
java code works on this common set of fields.

Cheers,
Andrea

Hi, Jeroen,

About search issue related to Chinese, Maybe I find a clue to fix that.

After study Lucene's logic and some source code of GeoNetwork, I find that when I use Chinese charecters dilimited by space as keyword to search, it returns records as expect, if no space between Characters which compose a word, no result can be retrieved.

I notice that the StandardAnalyser of Lucene is used when metadata is idexed, but I don't find the keywords contained in request are pre-processed by any Analyser before query is performed.

It's quite beyond me to figure out the whole logic of GeoNetwork, and the last oppotunity I used Java was several years ago, so I don't know if these words can help to fix the issue.

Thank you for your help.

Regards,
------------------
Enri Zhou
2006-05-10

-------------------------------------------------------------
======= 2006-05-02 16:18:05 you wrote:=======

>Hi Enri,
>Thanks for your useful feedback! I will contact some people here in
>FAO to ask for feedback on the language issue you mention in point 2.
>The other will be put in the tracker. If you find a solution, fixes
>are most welcome!
>Ciao,
>Jeroen
>
>On Apr 28, 2006, at 2:59 AM, Zhou xu wrote:
>
>> Hi, Jeroen
>>
>> The problem of Chinese Character insert has been resolved by
>> changing the mysql jdbc database connection parameter
>> from
>> <url>jdbc:mysql://localhost/geonet</url>
>> to
>> <url>jdbc:mysql://localhost/geonet?
>> useUnicode=true&amp;characterEncoding=utf8</url>
>>
>> And I find if requests containing Chinese characters the search
>> form must use POST instead of GET, the search forms now which use
>> GET do not work with Chinese character.
>>
>> There comes other two problems, one for Chinese or other similar
>> language, the other is general:
>> 1. The search results of both simple and advanced search request
>> can not do forward by the link because of empty id, for example, I
>> search with free text by word "Africa", the result correctly shows
>> "Hydrological basins in Africa (SAMPLE DATA!) " with a link and its
>> thumbnail image, but the link is "http://127.0.0.1:8080/geonetwork/
>> srv/cn/metadata.show?id=&currTab=simple", you can see the id is empty.
>>
>> 2. Because there's no delimiter between words for Chinese
>> sentences, or for some other reason, I can not retrieve the records
>> which contain target Chinese keywords by simple/advanced search. I
>> think this problem exists with Japanese, Korea etc too.
>>
>> I am not very familiar with Java and XML, would you please give me
>> some suggestion on how to deal with these?
>>
>> You've done a good job and I find GeoNetwork is very useful for our
>> work, Thank you very much.
>>
>> ------------------
>> Enri
>> 2006-04-28
>>
>> -------------------------------------------------------------
>> ======= 2006-04-26 13:13:01 you wrote:=======
>>
>>> Hi,
>>> I have approved them yesterday and received them through the
>>> mailinglist, so we all got it I suppose!
>>> We are currently in a GeoNetwork workshop which is taken all of our
>>> time, so sorry for not having reacted yet. Thanks for the work in any
>>> way!! We will review and add them later.
>>> Ciao,
>>> Jeroen
>>>
>>> On Apr 25, 2006, at 12:43 PM, Zhou xu wrote:
>>>
>>>> Hi, Jeroen,
>>>>
>>>> I 've finished the Chinse translation and posted it and another
>>>> related question for you to the mail list yesterday, but they are
>>>> beyond the size limit of 40KB, I was told they are being held until
>>>> the list moderator can review it for approval. I want to know who
>>>> is responsible for list reviewing, is it possible he/she forget to
>>>> do that?
>>>>
>>>> Regards,
>>>>
>>>> Enri
>>>> 2006-04-25
>>>>
>>>> -------------------------------------------------------------
>>>> ======= 2006-04-20 06:11:18 you wrote:=======
>>>>
>>>>> Hi Enri,
>>>>> Thanks for the offer! I suggest you compare the strings to the
>>>>> attached chinese ones. No ISO 19115 translations available so far.
>>>>> Ciao,
>>>>> Jeroen
>>>>>
>>>>> On Apr 19, 2006, at 12:50 PM, Zhou xu wrote:
>>>>>
>>>>>> Hi, Jeroen,
>>>>>>
>>>>>> Thank you for your message. I download the version of 1.2.0 and
>>>>>> 1.2.1 from sourceforge and find that the documents under */cn/
>>>>>> folder are all just place holders, they are all of English in the
>>>>>> content. I caompred the folder structure of verion 1.2 and 2.0.2,
>>>>>> found it's a little different for localization.
>>>>>>
>>>>>> Actually I've almost finished translating the files under xml/loc/
>>>>>> en folder of verion 2.0.2 into Chinese except the iso19115.xml
>>>>>> file, I find it's very long and should be a two days' work. Before
>>>>>> I start to to that, I want to get some more suggestion from
>>>>>> you. If
>>>>>> there exists a Chinese version of this file, that would be fine, I
>>>>>> will preciate your help if you send it to me so that I can make a
>>>>>> complete one.
>>>>>>
>>>>>> And I am very willing to be responsible for the Chinese version
>>>>>> maintenance so that each future release can have a good Chinese
>>>>>> face if you like.
>>>>>>
>>>>>> ------------------
>>>>>> Enri Zhou
>>>>>> 2006-04-19
>>>>>>
>>>>>> -------------------------------------------------------------
>>>>>> ======= 2006-04-19 14:46:36 you wrote:=======
>>>>>>
>>>>>>> Hi Enri,
>>>>>>> Thanks for the offer! We had GeoNetwork opensource version 1
>>>>>>> translated into Chinese. Unfortunately for version 2 we didn't
>>>>>>> receive updates to that initial translation to be incorporated.
>>>>>>> However, we will have colleagues from China coming to FAO next
>>>>>>> week
>>>>>>> and we will discuss again with them the update of the language
>>>>>>> files.
>>>>>>> I suggest that you wait for two weeks before starting so this
>>>>>>> can be
>>>>>>> done in a coordinates manner.
>>>>>>> That said, for sure you can test and compare the Chinese language
>>>>>>> files of version 1 with the English ones of version 2. Some
>>>>>>> things
>>>>>>> have changed, among which the location of the files.
>>>>>>> Ciao,
>>>>>>> Jeroen
>>>>>>>
>>>>>>>
>>>>>>> On Apr 19, 2006, at 2:52 AM, Zhou xu wrote:
>>>>>>>
>>>>>>>> Hi, guys,
>>>>>>>>
>>>>>>>> Is there anybody who is translating or finished the Chinese
>>>>>>>> version? If no, I'd like do that in one week and contribute
>>>>>>>> to the
>>>>>>>> community.
>>>>>>>>
>>>>>>>> ------------------
>>>>>>>> Enri
>>>>>>>> 2006-04-19
>>>>>>>> ------------------
>>>>>>>>
>>>>>>>> Geonetwork-devel@lists.sourceforge.net
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -------------------------------------------------------
>>>>>>>> This SF.Net email is sponsored by xPML, a groundbreaking
>>>>>>>> scripting
>>>>>>>> language
>>>>>>>> that extends applications into web and mobile media. Attend the
>>>>>>>> live webcast
>>>>>>>> and join the prime developer group breaking into this new coding
>>>>>>>> territory!
>>>>>>>> http://sel.as-us.falkag.net/sel?
>>>>>>>> cmd=lnk&kid=110944&bid=241720&dat=121642
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>>
>>>>>>
>>>>>> = = = = = = = = = = = = = = = = = = = =
>>>>>>
>>>>>> -------------------------------------------------------
>>>>>> This SF.Net email is sponsored by xPML, a groundbreaking scripting
>>>>>> language
>>>>>> that extends applications into web and mobile media. Attend the
>>>>>> live webcast
>>>>>> and join the prime developer group breaking into this new coding
>>>>>> territory!
>>>>>> http://sel.as-us.falkag.net/sel?
>>>>>> cmd=lnk&kid=110944&bid=241720&dat=121642
>>>>>> _______________________________________________
>>>>>> 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
>>>>
>>>> = = = = = = = = = = = = = = = = = = = =
>>>>
>>
>> = = = = = = = = = = = = = = = = = = = =
>>
>> -------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services,
>> security?
>> Get stuff done quickly with pre-integrated technology to make your
>> job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?
>> cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> 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
>>
>

= = = = = = = = = = = = = = = = = = = =

�����������������������������������������圆)��j诸����+{�y�碴i⒒py��响y双���剁���\����^v��%� f�*.�:ey�"z拌�hi�1g��)��亘�'觑�_��V诒��
Zr��'�!囤������}�j�哽z_����赭鲡�{����������������������������������������Y�X�Xg��⒐�u朕�b槽���玷�a��a囤l����.���X襄�b�?�'z�(��鳐�
z�(��tê���{Z�����.�����-厨��

Hi, Andrea,

Finally, I find the way to solve the Chinese issue. Thank you very much for your message. The method is:

1. Add a method in org.fao.geonet.service.util.MainUtil named splitWord:

  public static String splitWord(String requestStr){
    Analyzer a = new StandardAnalyzer();
// Analyzer a = new CJKAnalyzer();
    StringReader sr = new StringReader(requestStr);
    TokenStream ts = a.tokenStream(sr);
    String result=new String("");
    try {
      Token t = ts.next();
      while(t!=null){
        result+=(" "+t.termText());
        t=ts.next();
      }
    } catch (IOException e) {
      e.printStackTrace();
    }
    return result;
  }

2. Add following 3 lines in org.fao.geonet.service.main.Search after the line of
"boolean remote = sRemote != null && sRemote.equals(Geonet.Text.ON);"

params.getChild(Geonet.SearchResult.TITLE).setText(MainUtil.splitWord(params.getChildText(Geonet.SearchResult.TITLE)));
params.getChild(Geonet.SearchResult.ABSTRACT).setText(MainUtil.splitWord(params.getChildText(Geonet.SearchResult.ABSTRACT)));
params.getChild(Geonet.SearchResult.ANY).setText(MainUtil.splitWord(params.getChildText(Geonet.SearchResult.ANY)));

For my case, It's better use CJKAnalyzer than StandardAnalyzer, so I also edit org.fao.geonet.kernel.search.SearchManager by changing standardAnalyzer to CJKAnalyzer both in method setupIndex and index.

Thank you very much.

Best regards,
------------------
Enri Zhou
2006-05-11

-------------------------------------------------------------
======= 2006-05-10 20:39:39 you wrote:=======

Hi Enri,

there are a set of stylesheets inside the web/xml/search folder which
purpose is to extract the searchable fields from a metadata. The Lucene's
java code works on this common set of fields.

Cheers,
Andrea

Hi, Jeroen,

About search issue related to Chinese, Maybe I find a clue to fix that.

After study Lucene's logic and some source code of GeoNetwork, I find that when I use Chinese charecters dilimited by space as keyword to search, it returns records as expect, if no space between Characters which compose a word, no result can be retrieved.

I notice that the StandardAnalyser of Lucene is used when metadata is idexed, but I don't find the keywords contained in request are pre-processed by any Analyser before query is performed.

It's quite beyond me to figure out the whole logic of GeoNetwork, and the last oppotunity I used Java was several years ago, so I don't know if these words can help to fix the issue.

Thank you for your help.

Regards,
------------------
Enri Zhou
2006-05-10

-------------------------------------------------------------
======= 2006-05-02 16:18:05 you wrote:=======

>Hi Enri,
>Thanks for your useful feedback! I will contact some people here in
>FAO to ask for feedback on the language issue you mention in point 2.
>The other will be put in the tracker. If you find a solution, fixes
>are most welcome!
>Ciao,
>Jeroen
>
>On Apr 28, 2006, at 2:59 AM, Zhou xu wrote:
>
>> Hi, Jeroen
>>
>> The problem of Chinese Character insert has been resolved by
>> changing the mysql jdbc database connection parameter
>> from
>> <url>jdbc:mysql://localhost/geonet</url>
>> to
>> <url>jdbc:mysql://localhost/geonet?
>> useUnicode=true&amp;characterEncoding=utf8</url>
>>
>> And I find if requests containing Chinese characters the search
>> form must use POST instead of GET, the search forms now which use
>> GET do not work with Chinese character.
>>
>> There comes other two problems, one for Chinese or other similar
>> language, the other is general:
>> 1. The search results of both simple and advanced search request
>> can not do forward by the link because of empty id, for example, I
>> search with free text by word "Africa", the result correctly shows
>> "Hydrological basins in Africa (SAMPLE DATA!) " with a link and its
>> thumbnail image, but the link is "http://127.0.0.1:8080/geonetwork/
>> srv/cn/metadata.show?id=&currTab=simple", you can see the id is empty.
>>
>> 2. Because there's no delimiter between words for Chinese
>> sentences, or for some other reason, I can not retrieve the records
>> which contain target Chinese keywords by simple/advanced search. I
>> think this problem exists with Japanese, Korea etc too.
>>
>> I am not very familiar with Java and XML, would you please give me
>> some suggestion on how to deal with these?
>>
>> You've done a good job and I find GeoNetwork is very useful for our
>> work, Thank you very much.
>>
>> ------------------
>> Enri
>> 2006-04-28
>>
>> -------------------------------------------------------------
>> ======= 2006-04-26 13:13:01 you wrote:=======
>>
>>> Hi,
>>> I have approved them yesterday and received them through the
>>> mailinglist, so we all got it I suppose!
>>> We are currently in a GeoNetwork workshop which is taken all of our
>>> time, so sorry for not having reacted yet. Thanks for the work in any
>>> way!! We will review and add them later.
>>> Ciao,
>>> Jeroen
>>>
>>> On Apr 25, 2006, at 12:43 PM, Zhou xu wrote:
>>>
>>>> Hi, Jeroen,
>>>>
>>>> I 've finished the Chinse translation and posted it and another
>>>> related question for you to the mail list yesterday, but they are
>>>> beyond the size limit of 40KB, I was told they are being held until
>>>> the list moderator can review it for approval. I want to know who
>>>> is responsible for list reviewing, is it possible he/she forget to
>>>> do that?
>>>>
>>>> Regards,
>>>>
>>>> Enri
>>>> 2006-04-25
>>>>
>>>> -------------------------------------------------------------
>>>> ======= 2006-04-20 06:11:18 you wrote:=======
>>>>
>>>>> Hi Enri,
>>>>> Thanks for the offer! I suggest you compare the strings to the
>>>>> attached chinese ones. No ISO 19115 translations available so far.
>>>>> Ciao,
>>>>> Jeroen
>>>>>
>>>>> On Apr 19, 2006, at 12:50 PM, Zhou xu wrote:
>>>>>
>>>>>> Hi, Jeroen,
>>>>>>
>>>>>> Thank you for your message. I download the version of 1.2.0 and
>>>>>> 1.2.1 from sourceforge and find that the documents under */cn/
>>>>>> folder are all just place holders, they are all of English in the
>>>>>> content. I caompred the folder structure of verion 1.2 and 2.0.2,
>>>>>> found it's a little different for localization.
>>>>>>
>>>>>> Actually I've almost finished translating the files under xml/loc/
>>>>>> en folder of verion 2.0.2 into Chinese except the iso19115.xml
>>>>>> file, I find it's very long and should be a two days' work. Before
>>>>>> I start to to that, I want to get some more suggestion from
>>>>>> you. If
>>>>>> there exists a Chinese version of this file, that would be fine, I
>>>>>> will preciate your help if you send it to me so that I can make a
>>>>>> complete one.
>>>>>>
>>>>>> And I am very willing to be responsible for the Chinese version
>>>>>> maintenance so that each future release can have a good Chinese
>>>>>> face if you like.
>>>>>>
>>>>>> ------------------
>>>>>> Enri Zhou
>>>>>> 2006-04-19
>>>>>>
>>>>>> -------------------------------------------------------------
>>>>>> ======= 2006-04-19 14:46:36 you wrote:=======
>>>>>>
>>>>>>> Hi Enri,
>>>>>>> Thanks for the offer! We had GeoNetwork opensource version 1
>>>>>>> translated into Chinese. Unfortunately for version 2 we didn't
>>>>>>> receive updates to that initial translation to be incorporated.
>>>>>>> However, we will have colleagues from China coming to FAO next
>>>>>>> week
>>>>>>> and we will discuss again with them the update of the language
>>>>>>> files.
>>>>>>> I suggest that you wait for two weeks before starting so this
>>>>>>> can be
>>>>>>> done in a coordinates manner.
>>>>>>> That said, for sure you can test and compare the Chinese language
>>>>>>> files of version 1 with the English ones of version 2. Some
>>>>>>> things
>>>>>>> have changed, among which the location of the files.
>>>>>>> Ciao,
>>>>>>> Jeroen
>>>>>>>
>>>>>>>
>>>>>>> On Apr 19, 2006, at 2:52 AM, Zhou xu wrote:
>>>>>>>
>>>>>>>> Hi, guys,
>>>>>>>>
>>>>>>>> Is there anybody who is translating or finished the Chinese
>>>>>>>> version? If no, I'd like do that in one week and contribute
>>>>>>>> to the
>>>>>>>> community.
>>>>>>>>
>>>>>>>> ------------------
>>>>>>>> Enri
>>>>>>>> 2006-04-19
>>>>>>>> ------------------
>>>>>>>>
>>>>>>>> Geonetwork-devel@lists.sourceforge.net
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -------------------------------------------------------
>>>>>>>> This SF.Net email is sponsored by xPML, a groundbreaking
>>>>>>>> scripting
>>>>>>>> language
>>>>>>>> that extends applications into web and mobile media. Attend the
>>>>>>>> live webcast
>>>>>>>> and join the prime developer group breaking into this new coding
>>>>>>>> territory!
>>>>>>>> http://sel.as-us.falkag.net/sel?
>>>>>>>> cmd=lnk&kid=110944&bid=241720&dat=121642
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>>>>>>
>>>>>>
>>>>>> = = = = = = = = = = = = = = = = = = = =
>>>>>>
>>>>>> -------------------------------------------------------
>>>>>> This SF.Net email is sponsored by xPML, a groundbreaking scripting
>>>>>> language
>>>>>> that extends applications into web and mobile media. Attend the
>>>>>> live webcast
>>>>>> and join the prime developer group breaking into this new coding
>>>>>> territory!
>>>>>> http://sel.as-us.falkag.net/sel?
>>>>>> cmd=lnk&kid=110944&bid=241720&dat=121642
>>>>>> _______________________________________________
>>>>>> 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
>>>>
>>>> = = = = = = = = = = = = = = = = = = = =
>>>>
>>
>> = = = = = = = = = = = = = = = = = = = =
>>
>> -------------------------------------------------------
>> Using Tomcat but need to do more? Need to support web services,
>> security?
>> Get stuff done quickly with pre-integrated technology to make your
>> job easier
>> Download IBM WebSphere Application Server v.1.0.1 based on Apache
>> Geronimo
>> http://sel.as-us.falkag.net/sel?
>> cmd=lnk&kid=120709&bid=263057&dat=121642
>> _______________________________________________
>> 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
>>
>

Thanks Enri, I will commit your code into the CVS as soon as SF will let me do it.

Cheers,
Andrea

Hi, Andrea,

Finally, I find the way to solve the Chinese issue. Thank you very much for your message. The method is:

1. Add a method in org.fao.geonet.service.util.MainUtil named splitWord:

  public static String splitWord(String requestStr){
    Analyzer a = new StandardAnalyzer();
// Analyzer a = new CJKAnalyzer();
    StringReader sr = new StringReader(requestStr);
    TokenStream ts = a.tokenStream(sr);
    String result=new String("");
    try {
      Token t = ts.next();
      while(t!=null){
        result+=(" "+t.termText());
        t=ts.next();
      }
    } catch (IOException e) {
      e.printStackTrace();
    }
    return result;
  }

2. Add following 3 lines in org.fao.geonet.service.main.Search after the line of
"boolean remote = sRemote != null && sRemote.equals(Geonet.Text.ON);"

params.getChild(Geonet.SearchResult.TITLE).setText(MainUtil.splitWord(params.getChildText(Geonet.SearchResult.TITLE)));
params.getChild(Geonet.SearchResult.ABSTRACT).setText(MainUtil.splitWord(params.getChildText(Geonet.SearchResult.ABSTRACT)));
params.getChild(Geonet.SearchResult.ANY).setText(MainUtil.splitWord(params.getChildText(Geonet.SearchResult.ANY)));

For my case, It's better use CJKAnalyzer than StandardAnalyzer, so I also edit org.fao.geonet.kernel.search.SearchManager by changing standardAnalyzer to CJKAnalyzer both in method setupIndex and index.

Thank you very much.

Best regards,
------------------
Enri Zhou
2006-05-11