geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
413 stars 488 forks source link

Export metadata selection to PDF doesn't use the UI language #6630

Closed josegar74 closed 2 months ago

josegar74 commented 1 year ago

Describe the bug The metadata selection export to PDF always displays the labels, etc. in English, not using the current language selected in the UI.

To Reproduce Steps to reproduce the behaviour:

  1. Change the UI for example to German
  2. In the search page select some results
  3. Open the selected menu and select Export (PDF)
  4. The report labels, etc. are in English

Expected behavior The report labels, etc. are in German

Additional context

Related to the following code. Probably should be changed location.replace to use $http:

https://github.com/geonetwork/core-geonetwork/blob/fe06b8843c91b88a85a9e5aa71e8184dad420f61/web-ui/src/main/resources/catalog/components/metadataactions/MetadataActionService.js#L150-L156

archaeogeek commented 4 months ago

@josegar74 I've duplicated this issue here https://github.com/geonetwork/core-geonetwork/issues/7969 in GeoNetwork 4.2.9 . I'm currently trying to implement your suggestion but not getting anywhere!

archaeogeek commented 4 months ago

Note also that it doesn't seem to return the correct language for the metadata either as far as I can tell.

josegar74 commented 2 months ago

Closing this ticket, duplicated of #7969