Skip to content

feat: require DOI for dissertations metadata check#757

Merged
sakshamarora1 merged 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/dissertation-doi-metadata-check
May 19, 2026
Merged

feat: require DOI for dissertations metadata check#757
sakshamarora1 merged 1 commit into
CERNDocumentServer:masterfrom
TahaKhan998:fix/dissertation-doi-metadata-check

Conversation

@TahaKhan998
Copy link
Copy Markdown

@TahaKhan998 TahaKhan998 commented Apr 7, 2026

Part of #586

This PR adds a metadata check to require a DOI for dissertation records.

A new rule was added to scripts/metadata_checks.py so that when the resource type is publication-dissertation, the metadata check validates that pids.doi.identifier is not empty.

Recipe:

After web deployment — metadata_checks

  • Run the metadata-checks script to register the new metadata check that requires a DOI for dissertation records (publication-dissertation) on the CERN Scientific community:

    invenio shell scripts/metadata_checks.py
image

@TahaKhan998 TahaKhan998 force-pushed the fix/dissertation-doi-metadata-check branch from c508439 to c352c63 Compare April 7, 2026 14:31
@TahaKhan998 TahaKhan998 force-pushed the fix/dissertation-doi-metadata-check branch 2 times, most recently from 8d817a5 to e26d2d1 Compare April 21, 2026 13:59
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!

Just a small thing: From your screenshot i dont see the error message
Image

Normally it looks like this :)
Image

@TahaKhan998 TahaKhan998 force-pushed the fix/dissertation-doi-metadata-check branch from e26d2d1 to a5d0d17 Compare May 19, 2026 13:31
@TahaKhan998
Copy link
Copy Markdown
Author

Looks good!

Just a small thing: From your screenshot i dont see the error message Image

Normally it looks like this :) Image

Good catch, thanks. The validation was firing, but the field-level message wasn’t being anchored properly because the rule was missing error_path. I’ve added that now, so the DOI error shows up in the right place, and I also updated the screenshot.

@TahaKhan998 TahaKhan998 force-pushed the fix/dissertation-doi-metadata-check branch from a5d0d17 to 9d64306 Compare May 19, 2026 14:27
@sakshamarora1 sakshamarora1 merged commit f0ff634 into CERNDocumentServer:master May 19, 2026
3 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.

4 participants