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

Metadata status not correct in geonetwork 4.2 #368

Open
ianwallen opened this issue Dec 14, 2023 · 2 comments
Open

Metadata status not correct in geonetwork 4.2 #368

ianwallen opened this issue Dec 14, 2023 · 2 comments
Labels
bug Something isn't working documentation Improvements or additions to documentation
Milestone

Comments

@ianwallen
Copy link
Contributor

Metadata status not correct in geonetwork 4.2

In 3.12 it looks like this
image

In 4.2 it looks like this
image

Looks like it is using the code instead of the label?

@ianwallen ianwallen added this to the 4.2.8 milestone Dec 14, 2023
@ianwallen ianwallen added the bug Something isn't working label Dec 14, 2023
@josegar74
Copy link
Contributor

@ianwallen you need to change this section to load the codelist values from HNAP:

https://github.com/geonetwork/core-geonetwork/blob/a9a7f04e6801926538672835b59f310bf6d59d57/web/src/main/webResources/WEB-INF/config-spring-geonetwork.xml#L266-L305

Change:

<util:map id="translationPacks">
    <entry key="gnui">
      <util:list>
        <value>json/gnui</value>
        <value>standards/iso19139.ca.HNAP/codelists/gmd:MD_TopicCategoryCode+gmd:CI_DateTypeCode+gmd:MD_ScopeCode+gmd:MD_MaintenanceFrequencyCode+gmd:MD_ProgressCode+gmd:DS_InitiativeTypeCode+gmd:MD_SpatialRepresentationTypeCode+gmd:CI_RoleCode</value>
        <value>standards/iso19139/codelists/gmd:CI_RoleCode</value>
        <value>db/MetadataCategory+Operation+Group+StatusValue+Source+Translations</value>
      </util:list>
    </entry>
    <entry key="login">
      <util:list>
        <value>json/core</value>
      </util:list>
    </entry>
    <entry key="search">
      <util:list>
        <value>json/core+search+v4+custom</value>
        <value>json/schemas</value>
        <value>standards/iso19139.ca.HNAP/codelists/gmd:MD_TopicCategoryCode+gmd:CI_DateTypeCode+gmd:MD_ScopeCode+gmd:MD_MaintenanceFrequencyCode+gmd:MD_ProgressCode+gmd:MD_SpatialRepresentationTypeCode</value>
        <value>standards/iso19139/codelists/gmd:CI_RoleCode</value>
        <value>standards/iso19115-3.2018/codelists/indeterminatePosition+mri:DS_InitiativeTypeCode+mri:DS_AssociationTypeCode</value>
        <value>db/MetadataCategory+Operation+Group+StatusValue+Source+Translations</value>
      </util:list>
    </entry>
    <entry key="admin">
      <util:list>
        <value>json/core+search+admin+v4+custom</value>
        <value>json/schemas</value>
        <value>db/MetadataCategory+Operation+Group+StatusValue+Source+Translations</value>
      </util:list>
    </entry>
    <entry key="editor">
      <util:list>
        <value>json/core+search+editor+v4+custom</value>
        <value>json/schemas</value>
        <value>standards/iso19139.ca.HNAP/codelists/gmd:MD_TopicCategoryCode+gmd:CI_DateTypeCode+gmd:MD_ScopeCode+gmd:MD_MaintenanceFrequencyCode+gmd:MD_ProgressCode+gmd:MD_SpatialRepresentationTypeCode</value>
        <value>standards/iso19139/codelists/gmd:CI_RoleCode</value>
        <value>standards/iso19115-3.2018/codelists/indeterminatePosition+mri:DS_InitiativeTypeCode+mri:DS_AssociationTypeCode</value>
        <value>db/MetadataCategory+Operation+Group+StatusValue+Source+Translations</value>
      </util:list>
    </entry>
  </util:map>

@ianwallen
Copy link
Contributor Author

This is not documented in the readme.
https://github.com/metadata101/iso19139.ca.HNAP/blob/4.2.x/README.md

It would also be nice if this could be automatically applied as part the schema installation (https://github.com/metadata101/iso19139.ca.HNAP/tree/4.2.x/src/main/java/ca/gc/schemas/iso19139hnap/init).

@ianwallen ianwallen added the documentation Improvements or additions to documentation label Jun 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants