Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Improvement) Wrong Registry Web page when Browser language is not an INSPIRE language #369

Closed
arantzaetxebarria opened this issue Mar 4, 2024 · 1 comment
Labels
solved Solution developed and accepted, not yet deployed Type: Bug Something isn't working
Milestone

Comments

@arantzaetxebarria
Copy link
Collaborator

This issue comes from the INPIRE registry repository, this ticket is created where development will take place to implement a solution.

When accessing http://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations with a Browser that is not configured in an INSPIRE language (for instance, Catalan), the web page is wrong. It seems that is trying to recover the text in catalan and it does not exist:
image

Our metadata are implemented in a Geonetwork catalog, therefore, when pressing this link in the catalog it goes to that wrong Web page, making our catalog to have an incorrect behaviour.

image

This happens with all the metadata codelist. Examples:
http://inspire.ec.europa.eu/metadata-codelist/LimitationsOnPublicAccess/noLimitations
https://inspire.ec.europa.eu/metadata-codelist/OnLineDescriptionCode/accessPoint
http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceCategory
http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceCategory/infoManagementService
http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceCategory/humanGeographicViewer

As an improvement, if the description in the registry does not exists in the language of the browser, at least return it in english, instead of returning a Web error message.

Thanks and best regards

Montse

@iratigarzon
Copy link
Collaborator

After analyzing the issue, we observed that the language selector detects if it's a language recognized by the European Union and sets it accordingly. However, the INSPIRE registry may not be available in that language. To address this, we have added a validation so that the language selector displays your browser's language if it is available in the system; otherwise, it defaults to the master language.

@iratigarzon iratigarzon added ready for testing Solution is ready to test and removed under development A solution is being developed labels Mar 19, 2024
@arantzaetxebarria arantzaetxebarria added solved Solution developed and accepted, not yet deployed and removed ready for testing Solution is ready to test labels Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved Solution developed and accepted, not yet deployed Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants