Skip to content

Fix ZoteroService.php cleanupRecords()#5266

Open
gyetger wants to merge 2 commits into
vufind-org:devfrom
gyetger:gyetger-fix-zotero-export
Open

Fix ZoteroService.php cleanupRecords()#5266
gyetger wants to merge 2 commits into
vufind-org:devfrom
gyetger:gyetger-fix-zotero-export

Conversation

@gyetger
Copy link
Copy Markdown

@gyetger gyetger commented May 8, 2026

"creators" is not defined in the Zotero schema as a field, so the current code always removes it. I fix this by skipping that field.

Leaving "creators" in the object introduces a bug.
"$creator->creatorType" must be used instead of "$creator['creatorType']" since it is an object.

Fix creators being always removed from the object
Fix bug by using object property access instead of array access
@demiankatz demiankatz requested a review from EreMaijala May 8, 2026 13:33
@demiankatz
Copy link
Copy Markdown
Member

Thanks for the fix, @gyetger!

@EreMaijala, since you're more familiar with Zotero than I am, do you mind taking a look at this? Please let me know if you think this should be backported for release 11.0.4.

@demiankatz demiankatz added this to the 11.1 milestone May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants