Skip to content
Open
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
47 changes: 42 additions & 5 deletions cds_migrator_kit/rdm/migration_config.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""
InvenioRDM settings for CDS-RDM project.

Expand Down Expand Up @@ -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 _
Expand All @@ -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 (
Expand Down Expand Up @@ -656,4 +653,44 @@
"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"
},
},
}
4 changes: 4 additions & 0 deletions cds_migrator_kit/rdm/records/transform/models/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions migration_cli/collections/na58.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions migration_cli/collections/na61.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions migration_cli/collections/na62.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions migration_cli/collections/na63.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions migration_cli/collections/na64.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions migration_cli/collections/na65.yaml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions migration_cli/collections/na66.yaml
Original file line number Diff line number Diff line change
@@ -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
Loading