[GMU-24] Missing data in one subfield excludes whole field from export with the custom mapping profile Created: 07/Dec/21  Updated: 28/Feb/22  Resolved: 12/Jan/22

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

Type: Bug Priority: P2
Reporter: Magda Zacharska Assignee: Illia Daliek
Resolution: Done Votes: 0
Labels: support
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Attachments: PNG File export completed.PNG     PNG File exported record.png     PNG File image-2021-12-07-13-26-00-537.png     PNG File instance.PNG     File instances-ids-1.mrc     PNG File item.PNG     PNG File mp.PNG     PNG File screenshot-1.png    
Issue links:
Defines
defines UXPROD-3340 Firebird - Lotus R1 2022 Enhancements... Closed
Sprint: Firebird Sprint 130, Firebird Sprint 131
Story Points: 3
Development Team: Firebird
Release: Lotus R1 2022
Affected Institution:
Grand Valley State University

 Description   

Overview:
When exporting inventory records with a custom mapping profile and one of the mapped subfields is not populated in the inventory record then the whole MARC field is omitted from export
Steps to Reproduce:
1. Create a custom mapping profile with following transformations:

2. Create a job profile linked to mapping profile from the previous step
3. Save UUID of a record that have a permanent and effective locations populated but does not have Volume in the item record populated (for example Nod in the snapshot environment)
4. Export record using the job profile from the step 2

Expected Results:
Exported file contains 866 and 946 fields populated with the available data. For example:
=866 \0$aLine 1b$zMain Library
=866 \0$aLine 2b$zMain Library
=946 \0$zMain Library$3hold000000000008

Actual Results:
946 field is missing.

Additional Information:
Populating volume information (even setting it to space) on the item record resolve the problem.
URL:
Interested parties:



 Comments   
Comment by Illia Daliek [ 30/Dec/21 ]

Verified on snapshot

I imported an mrc file to have an instance for testing created.
I added the holding and item with an empty volume.
Instance id - f302514c-7d9b-4653-a8fc-c9bab0f20d2d

Created the same mapping profile.

Completed export

Exported marc record
instances-ids-1.mrc

Both effective location and holding hr id are presented.

Comment by Magda Zacharska [ 07/Jan/22 ]

Illia Daliek when I was verifying this ticket, I added a new holding to the instance:

When I export the record with the mapping profile as described above, I'm getting 866 field repeated but it doesn't contain $3 as :

=LDR  00592nam a22002053c 4500
=001  inst000000000021
=005  20220107015048.2
=008  220107|||||||||||||||||\\\\\\\|||||und||
=020  \\$a0956687695
=020  \\$a9780956687695
=245  00$aNod
=336  \\$atext
=700  1\$aBarnes, Adrian
=866  \0$aLine 1b$zMain Library
=866  \0$aLine 2b$zORWIG ETHNO CD
=866  \0$aholdings statement 1$zMain Library
=866  \0$aholdings statement 2$zMain Library
=946  \0$zMain Library$3hold000000000008
=946  \0$zORWIG ETHNO CD$3ho00000000002
=999  ff$i6506b79b-7702-48b2-9774-a1c538fdd34e

For more information about expected behavior with adding $3 please see: https://docs.google.com/document/d/1fZgB8zOCyRNGIc6IbKHF1tvtpMW7e_FQmMAiOrnxToI/edit?usp=sharing

Comment by Magda Zacharska [ 12/Jan/22 ]

After talking with Illia Daliek  I have confirmed that the expected behavior is as expected as 866 fields are mapped to holdings and not items records.

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