-
Notifications
You must be signed in to change notification settings - Fork 19
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
<gmd:thesaurusName> date is being updated when saving metadata record. #308
Comments
@ianwallen I am not sure, can you tell me is the Update: Sorry I misunderstood your example, you changed the record on I still recommend adding some breakpoints to ISODate and seeing how 2023-02-28 was created. |
@jodygarnett My understanding is that the gmd:thesaurusName dates are related to the thesaurus and they should not be changed to the lastmodified date of the metadata record. |
The last modified date was embedder in the core Geonetwork Finally it passed to the xslt for the transformation iso19139.ca.HNAP/src/main/plugin/iso19139.ca.HNAP/convert/thesaurus-transformation.xsl Lines 352 to 353 in 14ead08
The question is where the change is supposed to be. I am still looking at how the transformation side picked that date. Will give more details |
The question is if we really want to get rid of setting last modify date. We could just remove the logic in core Geonetwork about the last modify part. |
It should only be setting dates if the dates are not already set. |
The problem is that the xsl is rebuilding the complete section afaik, so needs to extract the values from somewhere. An option, not optimal, would be to keep current behaviour, but add in A better option, but will require some Java changes would be to store the dates in the thesaurus file and retrieve both. Currently, seems some logic for that, but only stores 1 value and applies a formatting to the date, that changes the original value also: I'll try the |
…rride default behavior in GeoNetwork using the current date. Fixes #308
I put two PR to fix this issue. I tested from my local and its fine. This PR geonetwork/core-geonetwork#6972 will add extra flag on Java side stating this date is file system date not the real thesaurus date. This PR in HNAP is to parse the date or discard it. #327 |
Here is a metadata record that I edited and just saved the changed. You can see that the data associated to the thesaurus was changes to the date in which the record was saved.
I believe the date of the thesaurus is not supposed to change when saving data as this is the date related to the thesaurus.
The text was updated successfully, but these errors were encountered: