Commit fb1ac760 authored by LE GAC Renaud's avatar LE GAC Renaud
Browse files

Polish the rule for the collaboration field.

parent b05e154d
......@@ -26,6 +26,8 @@ def CLEAN_COLLABORATION(value):
# Fix "XXX collaboration" as "XXX Collaboration"
el = el.replace('collaboration', 'Collaboration')
el = el.replace('consortium', 'Consortium')
el = el.replace('group', 'Group')
# Fix to avoid duplicate entries
if el in li:
......
......@@ -13,4 +13,4 @@ on field contents.
# - CTA Consortium
# - any mixture of the above separated by a comma
#
REG_COLLABORATION = r'^[A-Za-z0-9\-/, ]+([Cc]ollaboration|Consortium|Group)[s]?$'
\ No newline at end of file
REG_COLLABORATION = r'^[A-Za-z0-9\-/, ]+([Cc]ollaboration|[Cc]onsortium|[Gg]roup)[s]?$'
\ No newline at end of file
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