Commit f11dfa18 authored by DESPRES Damien's avatar DESPRES Damien Committed by Damien DESPRES
Browse files

fix #12830

(cherry picked from commit 284c0080)
parent 0c1c2a49
Pipeline #20643 failed with stage
in 21 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:
Supports Markdown
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