2 new optional parameters on load-records #1101
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
parameter to set source
this allows to set the source field to some value, records typically are extracted somewhere to be loaded in this instance, mdsource field can also be used to remove a set (in stead of all). This gives a new contradicting meaning to the mdsource field, which is used by the refresh_harvest method, to be discussed... alternative is to introduce a new field. Another idea here is to have ogcapi-record collections which are based on a source, and not as now configured, via parentidentifier.
parameter to hash md.identifier, so it can safely be send as url parameter
this improves #998 which is still an issue in for example https://demo.pycsw.org/gisdata/collections/metadata:main/items/http://capita.wustl.edu/DataspaceMetadata_ISO/CIRA.VIEWS.MOf.xml. MD5 Hash (and not a random uuid) is used so there is still a relation between the identifier and the hash, in theory you can do a select in db
where record.identifier = md5({identifier})
. Options are Never (default), ALWAYS and DOUBLESLASH, last one is only applied if the identifier contains double slash, e.g. https://doi.org/54321/example.3456353Contributions and Licensing
(as per https://github.com/geopython/pycsw/blob/master/CONTRIBUTING.rst#contributions-and-licensing)