diff --git a/app_data/communities.yaml b/app_data/communities.yaml index a43c4ec6..6f9bd357 100644 --- a/app_data/communities.yaml +++ b/app_data/communities.yaml @@ -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" @@ -14,4 +14,84 @@ review_policy: "closed" children: allow: false - logo: "CERN-logo.svg" \ No newline at end of file + 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" diff --git a/app_data/vocabularies/experiments.yaml b/app_data/vocabularies/experiments.yaml index 55149f03..8ec48bda 100644 --- a/app_data/vocabularies/experiments.yaml +++ b/app_data/vocabularies/experiments.yaml @@ -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 diff --git a/invenio.cfg b/invenio.cfg index a8846814..78a6cd5e 100644 --- a/invenio.cfg +++ b/invenio.cfg @@ -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 + "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: diff --git a/site/cds_rdm/schemes.py b/site/cds_rdm/schemes.py index ea083cd6..e1999dd4 100644 --- a/site/cds_rdm/schemes.py +++ b/site/cds_rdm/schemes.py @@ -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):