-
Notifications
You must be signed in to change notification settings - Fork 4
Fix citation collection link #638
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
base: development
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds functionality to link citations to collections during entry processing. The main purpose is to automatically establish citation-collection relationships based on entry data, both during automated submission processing and via a dedicated batch command.
- Extends the auto-processing logic to attach citations to collections in addition to molecules
- Introduces a new console command to retroactively link existing citations to collections
- Implements batch processing with progress tracking for efficient handling of large datasets
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.
| File | Description |
|---|---|
| app/Console/Commands/SubmissionsAutoProcess/ImportEntriesReferencesAuto.php | Adds logic to attach citations to collections when processing entry references, mirroring the existing molecule citation attachment |
| app/Console/Commands/LinkCitationsCollections.php | New command that batch-processes entries to establish citation-collection relationships for existing data |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| public function handle() | ||
| { | ||
| $doiRegex = '/\b(10[.][0-9]{4,}(?:[.][0-9]+)*)\b/'; |
Copilot
AI
Oct 30, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The $doiRegex pattern defined at line 18 is simpler than the pattern in extract_dois at line 134. This inconsistency could lead to different matching behavior. Consider using the same regex pattern or extracting it as a class constant to ensure consistency.
No description provided.