Skip to content

add(vocabularies): scientific committees, open access, former dep#795

Open
kpsherva wants to merge 7 commits into
CERNDocumentServer:masterfrom
kpsherva:migration-LEP
Open

add(vocabularies): scientific committees, open access, former dep#795
kpsherva wants to merge 7 commits into
CERNDocumentServer:masterfrom
kpsherva:migration-LEP

Conversation

@kpsherva
Copy link
Copy Markdown
Contributor

@kpsherva kpsherva commented May 4, 2026

Committees custom field will be needed for collections, it is not really a subject, since it is authority body. The committees will get their own communities too

Departments

Screenshot 2026-05-02 at 18 33 13 Screenshot 2026-05-02 at 18 33 18 Screenshot 2026-05-02 at 20 00 02

OA, section collapsed by default

Screenshot 2026-05-02 at 19 43 10 Screenshot 2026-05-02 at 19 43 18 Screenshot 2026-05-02 at 19 43 22

@kpsherva kpsherva moved this to In review 🔍 in Sprint Q2 2026 ☀️ May 4, 2026
@kpsherva kpsherva force-pushed the migration-LEP branch 2 times, most recently from a596d6f to 3c97768 Compare May 4, 2026 15:54
Copy link
Copy Markdown
Member

@palkerecsenyi palkerecsenyi left a comment

Choose a reason for hiding this comment

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

Looks good!! Mostly just a question about the open access level field description

Comment thread site/cds_rdm/app_data
@@ -0,0 +1 @@
../../app_data No newline at end of file
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.

Is this a symlink change? What is it doing?

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.

commit has an explanation. I need to link the vocabularies folder to be packaged as part of the ./site installation... because I don't want to use search for vocabularies values during migration. So I want the yamls to be accessible when I install cds-rdm in cds-migrator-kit, and this is the least disruptive way.
Not using the search saves us up to 1/3 to half a second (in some cases) per record, and when we are migrating 20k records then this becomes serious saving...

props=dict(
label=_("Open Access Level"),
icon="lock open",
description=_("Select the open access level of this record."),
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.

I'm presuming users know what this refers to and what Bronze/Green/Gold open access means? Would it be worth adding a link to an explanatory website in the description, or is this something users already know about?

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.

normally this will be filled only by the curators who know the values meaning, but it is a good point to make it more explicit that this field requires some expert knowledge (somehow). I will think about it

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.

@palkerecsenyi is it better now?

Comment thread site/cds_rdm/custom_fields/cern.py Outdated
props=dict(
label="Committee",
icon="users",
description="Please select a CERN committee related to this record if applicable.",
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.

nit: the descriptions of the custom fields all have slightly different formats, e.g. this one is "Please select .... if applicable", while cern:administrative_unit is "Optionally provide..." and cern:programmes is "Please select a ... applicable to your record". Maybe we could make them more consistent? It's not really a big problem though, just a nitpick :)

Comment thread assets/templates/custom_fields/DepartmentDropdown.js Outdated
Comment thread assets/templates/custom_fields/DepartmentDropdown.js Outdated

render() {
const { key, children, label, active } = this.props;
const [journal, oaLevel, oaFundingModel, imprint, thesis] = children;
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.

Why are we array-destructuring the children? This seems a little unusual

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.

what do you find as unusual?
The children are from the python config of custom fields, will always be sorted in the same way

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.

Ah so the children prop is not being used as the actual React children prop (e.g. a list of React nodes)? I was just thinking this is slightly unusual since children is sort of maybe a 'reserved' prop name. But if this is the name that we're already using elsewhere then it's fine

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.

yes, this is how the custom fields are propagating subfields in JS. It is not the best I agree with you but I didn't find a better way for now. We had this implementation in another local template of a CF (CERNFields)

kpsherva and others added 2 commits May 13, 2026 11:47
Copy link
Copy Markdown
Contributor

@zubeydecivelek zubeydecivelek left a comment

Choose a reason for hiding this comment

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

Looks good to me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Propagate former departments on the migrated data Open access values verification

3 participants