Commit 284c0080 authored by DESPRES Damien's avatar DESPRES Damien
Browse files

fix #12830

parent b30a7954
Pipeline #20001 failed with stages
in 20 seconds
......@@ -187,7 +187,7 @@ def process_record( in_record, working_directory, credentials ):
out_record['metadata-fr']['license'] = 'unknown'
if 'legalConstraints' in out_record['metadata-fr'].keys():
for el in out_record['metadata-fr']['legalConstraints']:
if "licence" in el.lower() or "accord" in el.lower():
if ("licence" in el.lower() or "accord" in el.lower()) and not ("http" in el.lower()):
out_record['metadata-fr']['license'] = el
if 'resourceConstraints' in out_record['metadata-fr'].keys() and type(out_record['metadata-fr']['resourceConstraints']) is str:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment