Skip to content

videos: transform related identifiers #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

zubeydecivelek
Copy link
Contributor

@zubeydecivelek zubeydecivelek force-pushed the related_identifiers branch 4 times, most recently from 3c628ff to 665baa4 Compare June 2, 2025 15:15
@@ -145,7 +156,10 @@ def url_files(self, key, value):

return {"indico": indico_link}

url_file = {"url_file": {"url": url}}
url_file = {"url_file": {}}
Copy link
Contributor

Choose a reason for hiding this comment

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

on line 145 when you set the indico_link["event_id"] maybe verify with the 084 field and if not the same raise?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can compare but I think 084 is a different number than indico id, maybe we can compare with 970?

Example record for 084

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes sorry, I meant the 970

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should we also raise if there's no indico_id?

Copy link
Contributor

Choose a reason for hiding this comment

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

we can so we gather some statistics but I would raise it as a warning

@zubeydecivelek zubeydecivelek force-pushed the related_identifiers branch 3 times, most recently from 717f2cc to a2cb3ca Compare June 4, 2025 13:45
}
if rel not in related_identifiers:
related_identifiers.append(rel)
elif len(event_ids) > 1:
Copy link
Contributor

Choose a reason for hiding this comment

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

that is wrong because if we have the same event_id in both fields it would raise no?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No I created a set of all the indico id's in the record. Line 340-353, so it'll raise only if there is another indico id

@zzacharo zzacharo merged commit 902010d into CERNDocumentServer:master Jun 4, 2025
2 checks passed
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.

Implement Related Works
2 participants