Skip to content

feat(research): migrate CERN-only 901__u - #672

Open
zubeydecivelek wants to merge 1 commit into
CERNDocumentServer:masterfrom
zubeydecivelek:901-field
Open

zubeydecivelek wants to merge 1 commit into
CERNDocumentServer:masterfrom
zubeydecivelek:901-field

Conversation

@zubeydecivelek

@zubeydecivelek zubeydecivelek commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Improve 901__u affiliation handling during migration:

  • Attach affiliations directly when there is only one personal author.
  • Add CERN as an organizational creator if it doesn't already exist.
  • Ignore affiliations when all personal authors are already affiliated.
  • Ignore affiliations if a non-CERN organizational contributor already exists.
  • Raise UnexpectedValue for unhandled affiliations requiring manual curation.

@zubeydecivelek zubeydecivelek changed the title feat(research): migrate a CERN-only 901__u feat(research): migrate CERN-only 901__u Nov 5, 2026
for person in group
if (person.get("person_or_org") or {}).get("type") == "personal"
]
if not personal_authors or any(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For extra affiliations listed under 901__u (that are not in any 100/700 affiliations tag), this condition would just ignore them.
Okay if that takes precedence, because if we try to one on one match, that will be kind of impossible because even if the affiliation is the same, it is stored in a different format.

For eg. http://cds.cern.ch/record/365441
100__ $$aAgosteo, S$$uMilan Polytechnic vs 901__ $$uPolytecnico Milano, CESNEF

To me it is fine, but just wanted to mention this and see how we move forward?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This is what I got from Sara

RULE: If there is only one author/contributor assign the affiliation in 901__u to the only one.

I assume this means if the existing author doesn't have an affiliation already

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.

Thanks, if all the contributors already have their affiliations we can ignore all the 901 fields

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.

2 participants