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

Set Core Subject Thesarurus dates in udpate-fixed-info process to override default behavior in GeoNetwork using the current date #326

Closed
wants to merge 1 commit into from

Conversation

josegar74
Copy link
Contributor

Fixes #308

…rride default behavior in GeoNetwork using the current date. Fixes #308
@josegar74 josegar74 requested a review from ianwallen April 4, 2023 12:19
@@ -955,6 +955,51 @@
</xsl:copy>
</xsl:template>

<!-- Fix the dates for the Core Subject Thesaurus -->
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be a bug specifically to fix "Core Subject Thesaurus" Thesarurus

I would have expected a fix that would not change the Thesarurus date if a value already exists. Otherwise are we not going to have the same issue with the other thesaurus?

@wangf1122
Copy link
Contributor

Sometimes, the thesaurus does have date in the thesaurus file which is not last modified date. We do need to ensure that "good" date is not wiped out.

We probably need to do something on the Java server side to have a flag stating this is last modified date. Then HNAP xsl can recognize it and avoid the transformation.

@ianwallen
Copy link
Contributor

ianwallen commented Apr 25, 2023

@josegar74 is this PR still required? I believe @wangf1122 's fix in PR #327 will resolve the issue.

@josegar74 josegar74 closed this May 4, 2023
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

Successfully merging this pull request may close these issues.

<gmd:thesaurusName> date is being updated when saving metadata record.
3 participants