Skip to content
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

[FINNA-1545] Show all component parts' original languages #3134

Draft
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

tmikkonen
Copy link

No description provided.

@tmikkonen tmikkonen requested a review from EreMaijala January 24, 2025 08:01
@tmikkonen tmikkonen marked this pull request as draft January 24, 2025 08:33
@tmikkonen tmikkonen marked this pull request as ready for review January 24, 2025 08:35
foreach ($this->stripTrailingPunctuation($this->getFieldArray('979', ['i'])) as $lang) {
$result[] = $lang;
foreach ($this->stripTrailingPunctuation($this->getFieldArray('979', ['h', 'i'])) as $lang) {
$lang = explode(' ', $lang) ?? $lang;

Choose a reason for hiding this comment

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

explode:n tulos ei voi olla null, vaan se on aina array.

foreach ($this->stripTrailingPunctuation($this->getFieldArray('979', ['h', 'i'])) as $lang) {
$lang = explode(' ', $lang) ?? $lang;
if (is_array($lang)) {
foreach ($lang as $lng) {

Choose a reason for hiding this comment

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

Käytä array_merge:ä tai spread operatoria luupin sijaan.

@tmikkonen tmikkonen marked this pull request as draft February 14, 2025 17:06
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.

2 participants