[GMU-33] Holdings statement mapped incorrectly in custom mapping profile Created: 26/Jul/22  Updated: 28/Sep/22  Resolved: 20/Sep/22

Status: Closed
Project: generate-marc-utils
Components: None
Affects versions: None
Fix versions: 1.5.0

Type: Bug Priority: P3
Reporter: Magda Zacharska Assignee: Oleksandr Bozhko
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: JPEG File 2_holdings.JPG     JPEG File completed.JPG     PNG File image-2022-07-26-17-52-02-770.png     PNG File image-2022-07-26-18-02-44-567.png     PNG File image-2022-07-26-18-10-22-115.png     PNG File image-2022-07-26-18-12-11-192.png     PNG File image-2022-07-26-18-13-25-249.png     File instance_with_2_holdings.csv     JPEG File job_profile.JPG     JPEG File job_profile_created.JPG     JPEG File job_profile_selected.JPG     JPEG File mapping_profile.JPG     JPEG File mapping_profile_created.JPG     JPEG File verified.JPG    
Issue links:
Defines
defines MDEXP-554 Use SNAPSHOT version of generate-marc... Closed
defines UXPROD-3665 Firebird - Nolana R3 2022 Enhancement... Closed
Relates
relates to MDEXP-231 Mapping profile - provide field name ... Closed
Sprint: Firebird - Sprint 148, Firebird - Sprint 149
Story Points: 3
Development Team: Firebird
Release: Nolana (R3 2022)
RCA Group: TBD

 Description   

Overview:
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:

Expected Results:

Actual Results:

Additional Information:
Exporting holdings using default holdings mapping profile works as expected.
Interested parties:



 Comments   
Comment by Oleksandr Bozhko [ 06/Sep/22 ]

As per the investigation, it was decided to move this Bug into GMU project.

Comment by Oleksandr Bozhko [ 08/Sep/22 ]

Verified on snapshot-2 environment:

1. Go to Inventory, select instance without holdings and create two holdings: first one with 3 holdings statements and Annex permanent location, second one with 1 holdings statement and Main Library permanent location:

2. Create CSV file with UUID of instance mentioned above:

instance_with_2_holdings.csv

3. Go to Settings -> Data export and create new mapping profile:

4. Go to Settings -> Data export and create new job profile:

5. Go to Data export, select instance_with_2_holdings.csv file, select GMU-33-test job profile with Instances:

6. Click on Run and wait for the completion:

7. Verify the result:

As you can see, there are 3 holdings statements with Annex location and 1 with Main library.

Generated at Thu Feb 08 22:16:21 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.