When exporting record with multiple holdings and each of the holdings has multiple holdings statements, only first holdings statement are included in the export. If there is just one holdings record with multiple holdings statement the mapping seems to be working correctly.
Steps to Reproduce:
1. Create a mapping profile that maps holdings, statements with holdings locations and holdings hrid:
In MG bufgest you can use: https://bugfest-mg.int.aws.folio.org/settings/data-export/mapping-profiles/view/0a249034-7737-4038-bd42-4bafcff5c42e?sort=name
2. Create a job profile and link it with the mapping profile from previous step
3. Select an instance with multiple holdings and each holding with multiple holdings statements. In MG bugfest you can use:
in5401502 with three statements for cush location:
and one statement for acq location:
Exporting holdings using default holdings mapping profile works as expected.