Feature: implement use_constraints with restrictioncodes #112
Labels
API
changes to rest API
feature
Forms
changes to metadata forms
Metadata
MetadataXML
changes to the metadata XML
Feature Description
COMPLICATED TO DESCRIBE, ASK @mwallschlaeger for details
We're decided to have a two part approach for constraints:
.
Upstream geonode implements this with
![image](https://private-user-images.githubusercontent.com/17499481/339695215-5e1f52d2-f7ef-4245-9be7-0baf0f35d898.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA3MDgxOTIsIm5iZiI6MTcyMDcwNzg5MiwicGF0aCI6Ii8xNzQ5OTQ4MS8zMzk2OTUyMTUtNWUxZjUyZDItZjdlZi00MjQ1LTliZTctMGJhZjBmMzVkODk4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzExVDE0MjQ1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMwNWE3MDgzNDY4YTBmMTk3MDkwNzNkNDFlZGUyOWRkYzMwYzUwMWY3YzQ0MjRmMzg1NTI0ZGFjMjk1Y2IyNmEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.c0wkNHvQcooei_DWQZ7mfn4_GI6BopvCdpwpC7i665w)
Restrictions
andOther constraints
like:This we can use to impl. 2. as it is exactly what we need.
for 1. we need to reimplement the field use_constraints (which is in zalf/geonode, but not in the way we need it) to be a free text field, and another field use_constraints_restrictions which holds the restriction codes applied to use_constraints so they can also be written to the xml like:
tasks todo:
geonode.base.models.ResourceBase
and described wellrestrction_codes
, use_constraints_restrictions and other_constraints_restrictions, best impliment both asonetomany
, they can share the same database table in the backendgeonode.catalogue.templates.full_metadata.xml
pycsw
local_mapping
need to take placePART OF #9
The text was updated successfully, but these errors were encountered: