Skip to content

Navigation Menu

Sign in
Sign up

pkp/pkp-lib#13280 [stable-3_5_0] [OAI Metadata] | OAI MARC and MARC21 render subjects as "Array" (and never output disciplines) - #5798

Open
blesildaramirez wants to merge 1 commit into
pkp:stable-3_5_0 from
blesildaramirez:i13280_stable-3_5_0
Open

pkp/pkp-lib#13280 [stable-3_5_0] [OAI Metadata] | OAI MARC and MARC21 render subjects as "Array" (and never output disciplines) #5798
blesildaramirez wants to merge 1 commit into
pkp:stable-3_5_0 from
blesildaramirez:i13280_stable-3_5_0

Conversation

@blesildaramirez

@blesildaramirez blesildaramirez commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Comment on lines +66 to +67
$subjectValues = $subjects[$publicationLocale] ?? $subjects[$journal->getPrimaryLocale()] ?? [];
$subjectValues = collect($subjectValues)->pluck('name')->filter()->values()->all();

@touhidurabir touhidurabir Sep 7, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

just a suggestion : rather than 2 steps, we can do it in a single step as collect($subjects[$publicationLocale] ?? $subjects[$journal->getPrimaryLocale()] ?? [])->... .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@touhidurabir touhidurabir touhidurabir approved these changes

At least 2 approving reviews are required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /