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

HNAP specific keyword types are displayed as a key in the geonetwork 4.2 default view #385

Open
tylerjmchugh opened this issue May 23, 2024 · 4 comments

Comments

@tylerjmchugh
Copy link
Contributor

Keywords with keyword types that are specific to HNAP (product, subTopicCategory) display the key instead of the translated string.

image

core-geonetwork has:

"otherKeywords-place": "Place",
"otherKeywords-discipline": "Discipline",
"otherKeywords-stratum": "Stratum",
"otherKeywords-temporal": "Temporal",
"otherKeywords-theme": "Theme",
"otherKeywords-": "Keywords",

https://github.com/geonetwork/core-geonetwork/blob/7caa17e47751870e5912a2788ec6835046f8e4e7/web-ui/src/main/resources/catalog/locales/en-v4.json#L8-L13

But there is no equivalent for HNAP keyword types:

"otherKeywords-product": "Product",
"otherKeywords-subTopicCategory": "Subtopic Category",
@ianwallen
Copy link
Contributor

ianwallen commented May 23, 2024

Isn't this supposed to be the translation

<entry>
<code>RI_529</code>
<value>product; produit</value>
<label>Product</label>
<description>Keyword identifies a type of product</description>
</entry>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
<entry>
<code>RI_530</code>
<value>subTopicCategory; catégorieSousSujet</value>
<label>Subtopic Category</label>
<description>Refinement a topic category for the purpose of geographic data classification</description>
</entry>

@tylerjmchugh
Copy link
Contributor Author

tylerjmchugh commented May 23, 2024

Isn't this supposed to be the translation

<entry>
<code>RI_529</code>
<value>product; produit</value>
<label>Product</label>
<description>Keyword identifies a type of product</description>
</entry>
<!-- - - - - - - - - - - - - - - - - - - - - - - - - -->
<entry>
<code>RI_530</code>
<value>subTopicCategory; catégorieSousSujet</value>
<label>Subtopic Category</label>
<description>Refinement a topic category for the purpose of geographic data classification</description>
</entry>

@ianwallen For the full view, yes. But the index (containing otherKeywords-* keys) seems to be used for the default view instead of codelists.

@josegar74
Copy link
Contributor

You can go to https://SERVER/geonetwork/srv/eng/admin.console#/settings/languages and add the translation keys and values there.

I usually first remove all non relevant languages from the language list first. Probably in your case, you need only English and French.

@ianwallen
Copy link
Contributor

ianwallen commented May 31, 2024

We can apply that change for now but we should keep this ticket open so that we can apply a better solution in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants