CSharp_MARC icon indicating copy to clipboard operation
CSharp_MARC copied to clipboard

Getting warnings when importing records.

Open sedj601 opened this issue 3 years ago • 0 comments

So, my catalogers use a program called MarcEdit to edit their records. I use your API because it allows me to edit bib records, create holding records, and then load them to the database in batch. Today, I noticed that your API gave me a warning where I believed there should not have been one given. So, I did some digging. I used NotePad++ to see if the leader first five bytes matched NotePad++ length of the file. It matched. See Notepad++.png. I then used MarcEdit to see if it would give a warning. It did not. See MarcEdit.png. I figured I was doing something wrong while reading the file in, so I downloaded your CSharp_MARC application. I imported the record into there and got the same warning. It appears that the leader length and the way your API counts the length of some special characters are not equal. It leads to the indicators being left out in the field that follows. See CSharpmarc.png.

Test Record: G108April2022CRDPRECORDS_test - Copy - Copy.mrc.txt PrettyPrint of Test Record: G108April2022CRDPRECORDS_test - Copy - Copy.mrk.txt

Notepad++ CSharpMarc MarcEdit G108April2022CRDPRECORDS_test - Copy - Copy.mrc.txt G108April2022CRDPRECORDS_test - Copy - Copy.mrk.txt

sedj601 avatar May 13 '22 17:05 sedj601