Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 82 additions & 2 deletions app_data/communities.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- slug: cern-research
id: "c2c46ab3-5fb4-4d86-83c6-5d9dc8392d6f"
id: "ad8d4abd-9809-4dc3-b4bf-dd403c9d6a8d"
metadata:
title: "CERN Research"
description: "CERN Research community"
Expand All @@ -14,4 +14,84 @@
review_policy: "closed"
children:
allow: false
logo: "CERN-logo.svg"
logo: "CERN-logo.svg"
- slug: faser
id: "dd13404c-bcd6-4b15-aeef-38d678c61ff1"
metadata:
title: "FASER Collaboration"
description: "FASER"
type:
id: "organization"
access:
visibility: "public"
members_visibility: "restricted"
member_policy: "open"
record_policy: "open"
review_policy: "closed"
children:
allow: false
logo: "CERN-logo.svg"
- slug: aleph
id: "7c568753-550b-4b48-8d76-461181973100"
metadata:
title: "ALEPH Collaboration"
description: "ALEPH"
type:
id: "organization"
access:
visibility: "public"
members_visibility: "restricted"
member_policy: "open"
record_policy: "open"
review_policy: "closed"
children:
allow: false
logo: "CERN-logo.svg"
- slug: delphi
id: "b6553d89-ea62-4a7c-9f5b-e76b5bfdb733"
metadata:
title: "DELPHI Collaboration"
description: "DELPHI"
type:
id: "organization"
access:
visibility: "public"
members_visibility: "restricted"
member_policy: "open"
record_policy: "open"
review_policy: "closed"
children:
allow: false
logo: "CERN-logo.svg"
- slug: opal
id: "473e34c5-4fe1-44fc-a4c2-3305cf6adcba"
metadata:
title: "OPAL Collaboration"
description: "OPAL"
type:
id: "organization"
access:
visibility: "public"
members_visibility: "restricted"
member_policy: "open"
record_policy: "open"
review_policy: "closed"
children:
allow: false
logo: "CERN-logo.svg"
- slug: l3
id: "bb0ac2d2-b90b-498e-bf64-1986791d1032"
metadata:
title: "OPAL Collaboration"
description: "OPAL"
type:
id: "organization"
access:
visibility: "public"
members_visibility: "restricted"
member_policy: "open"
record_policy: "open"
review_policy: "closed"
children:
allow: false
logo: "CERN-logo.svg"
56 changes: 56 additions & 0 deletions app_data/vocabularies/experiments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7511,3 +7511,59 @@
en: IS365
description:
en: 'Nuclear Spectroscopy with Copper Isotopes of Extreme N/Z Ratios'
- id: SLD
title:
en: "SLD"
description:
en: 'Stanford Large Detector'
tags:
- linkable
- id: CDF
title:
en: "Fermilab CDF"
description:
en: 'Fermilab Collider Detector'
tags:
- linkable
- id: FNAL-E-0830
title:
en: "Fermilab FNAL-E-0830"
description:
en: 'Fermilab FNAL-E-0830'
tags:
- linkable
- id: CLEO
title:
en: "Cornell CLEO"
description:
en: 'Cornell CLEO'
tags:
- linkable
- id: Mirabelle
title:
en: "IHEP Mirabelle"
description:
en: 'IHEP Mirabelle'
tags:
- linkable
- id: HERMES
title:
en: "DESY HERMES"
description:
en: 'DESY HERMES'
tags:
- linkable
- id: JADE
title:
en: "JADE"
description:
en: 'DESY JADE'
tags:
- linkable
- id: H1
title:
en: "H1"
description:
en: 'DESY H1'
tags:
- linkable
84 changes: 71 additions & 13 deletions invenio.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -454,20 +454,78 @@ CDS_CERN_SCIENTIFIC_COMMUNITY_ID = ""
# ==================================

CDS_COMMITTEE_APPROVAL_COMMUNITIES = {
# Map community UUID → workflow config.
# UUIDs are used (not slugs) because slugs can be renamed.
#
# "4b121eb9-3559-487d-9f73-8af1027668e9": {
# "label": "EP approval", # shown in request buttons/headings
# "committee_name": "EP Board", # shown in review-step labels/text
# "referee_group": "cds-ph-ep-publication", # CERN e-group slug
# "report_number": {
# "prefix": "CERN-EP", # literal prefix, e.g. "CERN-EP"
# "include_year": True, # append the current year after prefix
# "counter_digits": 3, # zero-padding width, e.g. 3 → "001"
# },
# },
"dd13404c-bcd6-4b15-aeef-38d678c61ff1": {
# faser
"label": "EP approval", # shown in UI buttons/headings
"committee_name": "EP Board",
"referee_group": "cds-ph-ep-publication", # CERN e-group slug

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here we need to add the committee_name. I guess for all of them it will be the same:

Suggested change
"referee_group": "cds-ph-ep-publication", # CERN e-group slug
"referee_group": "cds-ph-ep-publication", # CERN e-group slug
"committee_name": "EP Board",

@kpsherva kpsherva Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

in the case of the migrator is not relevant - here we need just the prefix, but when we actually set it up on the cds-rdm then it will matter

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes indeed, on dev/sandbox/prod we will use the configmap to set this. But I'm just mentioning it here since it would be useful for us to have the correct labels on our local instances in case we're testing it.

"report_number": {
"prefix": "CERN-EP", # literal prefix, e.g. "CERN-EP"
"include_year": True, # append the current year after prefix
"counter_digits": 3, # zero-padding width, e.g. 3 → "001"
},
},
"7c568753-550b-4b48-8d76-461181973100": {
# aleph
"label": "EP approval", # shown in UI buttons/headings
"referee_group": "cds-ph-ep-publication", # CERN e-group slug
"committee_name": "EP Board",
"report_number": {
"prefix": "CERN-TH-EP", # literal prefix, e.g. "CERN-EP"
"include_year": True, # append the current year after prefix
"counter_digits": 3, # zero-padding width, e.g. 3 → "001"
},
},
"bb0ac2d2-b90b-498e-bf64-1986791d1032": {
# l3
"label": "EP approval", # shown in UI buttons/headings
"referee_group": "cds-ph-ep-publication", # CERN e-group slug
"committee_name": "EP Board",
"report_number": {
"prefix": "CERN-PH-EP", # literal prefix, e.g. "CERN-EP"
"include_year": True, # append the current year after prefix
"counter_digits": 3, # zero-padding width, e.g. 3 → "001"
},
},
"473e34c5-4fe1-44fc-a4c2-3305cf6adcba": {
# opal
"label": "EP approval", # shown in UI buttons/headings
"referee_group": "cds-ph-ep-publication", # CERN e-group slug
"committee_name": "EP Board",
"report_number": {
"prefix": "CERN-PH-EP", # literal prefix, e.g. "CERN-EP"
"include_year": True, # append the current year after prefix
"counter_digits": 3, # zero-padding width, e.g. 3 → "001"
},
},
"b6553d89-ea62-4a7c-9f5b-e76b5bfdb733": {
# delphi
"label": "EP approval", # shown in UI buttons/headings
"referee_group": "cds-ph-ep-publication", # CERN e-group slug
"committee_name": "EP Board",
"report_number": {
"prefix": "CERN-PH-EP", # literal prefix, e.g. "CERN-EP"
"include_year": True, # append the current year after prefix
"counter_digits": 3, # zero-padding width, e.g. 3 → "001"
},
},
}
#
# CDS_COMMITTEE_APPROVAL_COMMUNITIES = {
# # Map community UUID → workflow config.
# # UUIDs are used (not slugs) because slugs can be renamed.
# #
# # "4b121eb9-3559-487d-9f73-8af1027668e9": {
# # "label": "EP approval", # shown in request buttons/headings
# # "committee_name": "EP Board", # shown in review-step labels/text
# # "referee_group": "cds-ph-ep-publication", # CERN e-group slug
# # "report_number": {
# # "prefix": "CERN-EP", # literal prefix, e.g. "CERN-EP"
# # "include_year": True, # append the current year after prefix
# # "counter_digits": 3, # zero-padding width, e.g. 3 → "001"
# # },
# # },
# }
"""Communities enrolled in the Publication Approval Workflow.

Keyed by community UUID. Each entry must have:
Expand Down
5 changes: 3 additions & 2 deletions site/cds_rdm/schemes.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,9 @@
inis_pattern = re.compile(r"^(?:\d+|RN:\d+)$", flags=re.I)
edms_pattern = re.compile(r"^\d+$", flags=re.I)
hal_regexp = re.compile(r"^(hal:|HAL:)?((in2p3|[a-z]{3}[a-z]*)-|(sic|mem|ijn)_)\d{8}(v\d+)?$")
# Matches patterns like CERN-EP-2026-001 or CERN-TH-2026-042
approval_rn_regexp = re.compile(r"^[A-Z]+-[A-Z]+-\d{4}-\d+$")
# Matches patterns like CERN-EP-2026-001 or CERN-TH-2026-042, as well as
# legacy multi-segment department codes like CERN-PH-EP-2012-369.
approval_rn_regexp = re.compile(r"^[A-Z]+(?:-[A-Z]+)*-\d{4}-\d+$")


def is_aleph(val):
Expand Down
Loading