diff --git a/cds_migrator_kit/rdm/migration_config.py b/cds_migrator_kit/rdm/migration_config.py index 19341209..37cc6ad2 100644 --- a/cds_migrator_kit/rdm/migration_config.py +++ b/cds_migrator_kit/rdm/migration_config.py @@ -25,10 +25,10 @@ CDSCommunitiesPermissionPolicy, CDSRDMPreservationSyncPermissionPolicy, ) +from invenio_app_rdm.config import * from invenio_app_rdm.config import CELERY_BEAT_SCHEDULE as APP_RDM_CELERY_BEAT_SCHEDULE from invenio_app_rdm.config import STATS_AGGREGATIONS as _APP_RDM_STATS_AGGREGATIONS from invenio_app_rdm.config import STATS_EVENTS as _APP_RDM_STATS_EVENTS -from invenio_app_rdm.config import * from invenio_cern_sync.sso import cern_keycloak, cern_remote_app_name from invenio_cern_sync.users.profile import CERNUserProfileSchema from invenio_i18n import lazy_gettext as _ @@ -41,10 +41,7 @@ from invenio_rdm_records.config import ( RDM_RECORDS_IDENTIFIERS_SCHEMES as RDM_RECORDS_RELATED_IDENTIFIERS_SCHEMES, ) -from invenio_rdm_records.config import ( - RDM_RECORDS_PERSONORG_SCHEMES, - always_valid, -) +from invenio_rdm_records.config import RDM_RECORDS_PERSONORG_SCHEMES, always_valid from invenio_rdm_records.proxies import current_rdm_records_service as record_service from invenio_rdm_records.services.components import DefaultRecordsComponents from invenio_vocabularies.config import ( @@ -656,4 +653,44 @@ def resolve_record_pid(pid): "counter_digits": 3, # zero-padding width, e.g. 3 → "001" }, }, + "742fea6c-0685-4da2-8000-c1f19635ba86": { + # NA58 + "label": "EP approval", # shown in UI buttons/headings + "referee_group": "cds-ph-ep-publications-referee-non-lhc", # 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" + }, + }, + "cf52a005-cc57-4a69-a135-771bf9f28d8a": { + # NA61 + "label": "EP approval", # shown in UI buttons/headings + "referee_group": "cds-ph-ep-publications-referee-non-lhc", # 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" + }, + }, + "71045612-b90c-4dba-83a5-c5e55d5b0622": { + # NA62 + "label": "EP approval", # shown in UI buttons/headings + "referee_group": "cds-ph-ep-publications-referee-non-lhc", # 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" + }, + }, + "25a0fa11-6e27-419a-a00e-3b4b30ef0182": { + # NA64 + "label": "EP approval", # shown in UI buttons/headings + "referee_group": "cds-ph-ep-publications-referee-non-lhc", # 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" + }, + }, } diff --git a/cds_migrator_kit/rdm/records/transform/models/_config.py b/cds_migrator_kit/rdm/records/transform/models/_config.py index c63ab62b..14ce6edb 100644 --- a/cds_migrator_kit/rdm/records/transform/models/_config.py +++ b/cds_migrator_kit/rdm/records/transform/models/_config.py @@ -37,6 +37,10 @@ "540__3", # Material of the license "540__9", # Also material of the license "540__g", # From SIS (see decision log) + "541__a", # See decision log + "541__c", # See decision log + "541__d", # See decision log + "541__e", # See decision log "542__3", # Also material of the license "595__i", # From SIS: see decision log "695__9", # From SIS: see decision log diff --git a/migration_cli/collections/na58.yaml b/migration_cli/collections/na58.yaml new file mode 100644 index 00000000..1d7721af --- /dev/null +++ b/migration_cli/collections/na58.yaml @@ -0,0 +1,9 @@ +name: na58 +queries: [] # TODO legacy queries of the collection (used by the legacy script only) +flags: + include_plots: true + create_inclusion_request: true +# slugs of the communities the records are added to, the same in every environment; +# they must exist in the environment +communities: + - na58 diff --git a/migration_cli/collections/na61.yaml b/migration_cli/collections/na61.yaml index a42041ee..b77197c0 100644 --- a/migration_cli/collections/na61.yaml +++ b/migration_cli/collections/na61.yaml @@ -1,9 +1,9 @@ name: na61 -queries: [] # TODO legacy queries of the collection (used by the legacy script only) +queries: [] # TODO legacy queries of the collection (used by the legacy script only) flags: include_plots: true create_inclusion_request: true # slugs of the communities the records are added to, the same in every environment; # they must exist in the environment communities: - - TODO # slug of the community + - na61 diff --git a/migration_cli/collections/na62.yaml b/migration_cli/collections/na62.yaml index de64827c..153a8f7c 100644 --- a/migration_cli/collections/na62.yaml +++ b/migration_cli/collections/na62.yaml @@ -1,9 +1,9 @@ name: na62 -queries: [] # TODO legacy queries of the collection (used by the legacy script only) +queries: [] # TODO legacy queries of the collection (used by the legacy script only) flags: include_plots: true create_inclusion_request: true # slugs of the communities the records are added to, the same in every environment; # they must exist in the environment communities: - - TODO # slug of the community + - na62 diff --git a/migration_cli/collections/na63.yaml b/migration_cli/collections/na63.yaml index 4eabedbf..96550e5e 100644 --- a/migration_cli/collections/na63.yaml +++ b/migration_cli/collections/na63.yaml @@ -1,9 +1,9 @@ name: na63 -queries: [] # TODO legacy queries of the collection (used by the legacy script only) +queries: [] # TODO legacy queries of the collection (used by the legacy script only) flags: include_plots: true create_inclusion_request: true # slugs of the communities the records are added to, the same in every environment; # they must exist in the environment communities: - - TODO # slug of the community + - na63 diff --git a/migration_cli/collections/na64.yaml b/migration_cli/collections/na64.yaml index 523e52b3..a310f5dd 100644 --- a/migration_cli/collections/na64.yaml +++ b/migration_cli/collections/na64.yaml @@ -1,9 +1,9 @@ name: na64 -queries: [] # TODO legacy queries of the collection (used by the legacy script only) +queries: [] # TODO legacy queries of the collection (used by the legacy script only) flags: include_plots: true create_inclusion_request: true # slugs of the communities the records are added to, the same in every environment; # they must exist in the environment communities: - - TODO # slug of the community + - na64 diff --git a/migration_cli/collections/na65.yaml b/migration_cli/collections/na65.yaml index ceda51db..02d57506 100644 --- a/migration_cli/collections/na65.yaml +++ b/migration_cli/collections/na65.yaml @@ -1,9 +1,9 @@ name: na65 -queries: [] # TODO legacy queries of the collection (used by the legacy script only) +queries: [] # TODO legacy queries of the collection (used by the legacy script only) flags: include_plots: true create_inclusion_request: true # slugs of the communities the records are added to, the same in every environment; # they must exist in the environment communities: - - TODO # slug of the community + - na65 diff --git a/migration_cli/collections/na66.yaml b/migration_cli/collections/na66.yaml index 997d66c6..603d2e66 100644 --- a/migration_cli/collections/na66.yaml +++ b/migration_cli/collections/na66.yaml @@ -1,9 +1,9 @@ name: na66 -queries: [] # TODO legacy queries of the collection (used by the legacy script only) +queries: [] # TODO legacy queries of the collection (used by the legacy script only) flags: include_plots: true create_inclusion_request: true # slugs of the communities the records are added to, the same in every environment; # they must exist in the environment communities: - - TODO # slug of the community + - na66