[Koha-bugs] [Bug 17754] MARCXML upload in Intranet is broken (encoding) if LDR pos. 9 is missing

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 24 15:19:06 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17754

Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |caroline.cyr-la-rose at inlibr
                   |                            |o.com

--- Comment #15 from Caroline Cyr La Rose <caroline.cyr-la-rose at inlibro.com> ---
I was able to reproduce in current master (22.12.00.013). I tried Katrin's
trick of editing manually the record in vim and it imported correctly. However,
I only had one record in my file... Not sure it's reasonable to edit manually
files with lots of records, especially the leader, it can be finnicky. I'm not
even sure the leader I changed it to is correct...

I will attach the record.

Here's what I did:
1. Download attached file
2. Optionally, open the file in a text editor (I used vim)
   --> The encoding is specified in the first line <?xml version="1.0"
encoding="UTF-8"?>
   --> Accents are displayed correctly
3. In the staff interface, go to Cataloging > Stage MARC records for import
4. Choose the file
5. Click Upload file
6. In the form, choose Format: MARCXML (leave the rest as is)
7. Click Stage for import
8. Click View batch
   --> In the table, accents are displayed correctly
9. Click on the title
   --> Accents are *not* displayed correctly
10. Click Import this batch into the catalog
11. Click Manage imported batch
12. Click View in the last column of the table
   --> Accents are *not* displayed correctly in the record details
   --> Accents are displayed correctly in the breadcrumbs, page/tab title
13. Click the MARC tab
   --> Accents are displayed correctly in the page header
   --> Accents are *not* displayed correctly in the record details (tab 2 for
example)
14. Edit the file in a text editor (again I used vim) and replace the leader by
28152nam a2201417 i 4500
15. Try steps 3 to 13 again
   --> Accents are ok everywhere

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list