Commit 542b763b authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

Check for '_from' presence to detect complex link vs text

instead of hard-coded 'language'. We should also match
seda_originating_agency_from. This heuristic is already used in
e.g. `rtags_from_rtype_role_targets` function.

Closes #17084054
parent 50fc4ed12eae
......@@ -915,7 +915,7 @@ for rtype, role in content_ordered_fields:
novalue_label = _('<no value specified>')
novalue_label = ' '
vid = 'seda.reledit.complexlink' if 'language' in rtype else 'seda.reledit.text'
vid = 'seda.reledit.complexlink' if rtype.endswith('_from') else 'seda.reledit.text'
if role == 'subject':
rec.tag_subject_of((CONTENT_ETYPE, rtype, '*'),
{'rvid': vid, 'novalue_label': novalue_label})
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