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

Introduce function, that turns object/simple element into array with one position #362

Open
TobiasNx opened this issue Aug 22, 2024 · 1 comment
Labels

Comments

@TobiasNx
Copy link
Collaborator

TobiasNx commented Aug 22, 2024

When working MARC -> MARC there is a scenario that you have an element that is possibly repeated but does not has to be.

If you want to add an element then you have to create to do some kind of workaround to achieve this.

@TobiasNx
Copy link
Collaborator Author

TobiasNx commented Nov 27, 2024

The function (to_array('path')) would be a wrapper for perhaps:

unless is_array("PATH")
    move_field("field","HELFER")
    move_field("HELFER","field.$append")
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

2 participants