From: Francois P. <fx....@gm...> - 2011-07-05 07:21:06
|
Hi Tom, 2011/6/28 Kralidis,Tom [Ontario] <Tom...@ec...>: > > >> -----Original Message----- >> From: Francois Prunayre [mailto:fx....@gm...] >> Sent: Tuesday, 28 June 2011 06:03 >> To: mmarco >> Cc: geo...@li... >> Subject: Re: [GeoNetwork-users] CSW GetRecords and CSW >> GetRecordsByID for multilingual metadata >> >> Hi Montse, >> >> 2011/6/28 mmarco <mma...@ya...>: >> > Hi, >> > >> > I have a question related to CSW behaviour with >> multilingual metadata. >> > >> > I think that Geonetwork handles multilanguage metadata >> quite nice: for >> > instance, if I open GN and I choose the catalan language >> and I search >> > for metadata, the multilingual metadata are shown in >> catalan (that is, >> > the catalan "locale" metadata branches are shown instead of the >> > default language branches), if I change GN to french >> language, and I >> > search for metadata, the multilingual metadata are shown in >> french (that is, the french "locale" >> > branches are shown instead of the default language >> branches),and so on. >> > >> > The question is, how can I get the same behaviour with *CSW >> *'*GetRecords*' >> > and '*GetRecordsByID*'. Can anybody give me some advice how >> to write >> > the two POST messages to receive the multilingual metadata >> *only in a >> > specified "locale" language* like the GN interface provides? >> Use the english CSW entry point >> http://localhost:8080/geonetwork/srv/en/csw >> or the french >> http://localhost:8080/geonetwork/srv/fr/csw >> or others >> >> and if CSW requests ask for dublincore output, you'll get >> metadata content according to the entry point URL (like in the GUI). >> >> If you ask for ISO record in output, then the client has to >> look for the translation in the ISO PT_FreeText elements. >> > > Francois: does GN CSW accept the Accept-Languages HTTP header? No AFAIK. > I'm also > guessing one can do this with a filter against apiso:Language (for > APISO). Then you make a query on the language criteria but does not do any filter on the content returned by the CSW response. Cheers. Francois > > ..Tom > |