Issue Exporting MARC & Excel

CharlasBug Collectors

Únete a LibraryThing para publicar.

Issue Exporting MARC & Excel

1Alex_McCall
Ago 12, 2022, 6:39 am

I am trying to export my catalogue (+/- 1,300 titles) as MARC and Excel files. I have done this successfully before (about 19 titles) as a test run, and it worked.

Now, when I try the same thing, the MARC file is absolutely garbled (checked with NotePad & MARCEdit), and trying to export as Excel file results in an error message.

Any thoughts and fixes?

NOTE: when trying to open with MARCEdit, I can't see any .mrc or .mrk files - to find the (scrambled) MARC exports, I have to choose "view all files".

NOTE: I have searched previous threads, and this came up before but I don't think the thread was ever resolved: https://www.librarything.com/topic/333779

2kristilabrie
Ago 12, 2022, 8:55 am

Thanks for the report.

Testing my own account with 535 records and Alex_McCall's account with 1,346 records, I'm only seeing one error in the MarcValidator tool on MarcEdit: "The end of Record Marker isn't present within this file or at the end of any record." There were no invalid records found.

*There is a related bug, when trying to change the type of export and run it—for the first time in the session, I think—on any of the export pages. I made a separate report for that here: https://www.librarything.com/topic/343483#7904803

For devs to reproduce:
1. go to https://www.librarything.com/export.php?export_type=marc
2. click the "Export all books" button to export as MARC
3. click the "Download" button when complete
4. use MarcEdit's MarcValidator tool to attempt to validate the file

Issue: Getting an "The end of Record Marker isn't present within this file or at the end of any record." error for all records in the export file.

3knerd.knitter
Ago 12, 2022, 10:08 am

Just pushed a fix that should resolve this issue

4kristilabrie
Ago 12, 2022, 11:32 am

Reopening (the related bug should be fixed, not this one yet.)

5Alex_McCall
Ago 12, 2022, 12:13 pm

>2 kristilabrie: Thanks for looking at this! While I grasp about 50% of it, it looks like you & the devs worked out what I was trying to communicate - relief, as I'm new to this.

If it helps, I'm trying to export MARCs to Koha for a new library that's being set up.

6ccatalfo
Ago 12, 2022, 3:28 pm

>5 Alex_McCall: Sorry for the trouble - we're working on this and hope to have it fixed Monday or thereabouts.

7ccatalfo
Ago 14, 2022, 9:48 am

>5 Alex_McCall: I've deployed some more fixes/tweaks to MARC exports this morning to handle more of the possible character encoding issues.

8Alex_McCall
Ago 15, 2022, 3:55 am

>7 ccatalfo: Thank you! I'll try it today...

9Alex_McCall
Ago 15, 2022, 5:42 am

Looks like the fix worked (the preview in MarkEdit looks "unscrambled"). I will try importing into KoHa a bit later, which will be the final test and let you know the outcome! Thanks for the help, everyone!

10ccatalfo
Ago 15, 2022, 7:26 am

>9 Alex_McCall: Glad to hear it.

There still may be some encoding issues on some records, depending on your export choices and your own data. I will work to get those ironed out.

11bnielsen
Ago 15, 2022, 8:06 am

>10 ccatalfo: I have some records that isn't even UTF when exported as TSV so your scripts for exporting as MARC shouldn't be too gullible :-)

I run everything through a

iconv -c -t UTF-8

before looking at it.

12Alex_McCall
Ago 18, 2022, 8:36 am

>11 bnielsen: Update: I imported the MARC from LibraryThing into KoHa, and all the records staged successfully. This time when generating the MARC, I opted for the "basic" option. Excel worked, too!

13bnielsen
Ago 18, 2022, 9:24 am

>12 Alex_McCall:. Nice!

I toyed with the thought of installing Koha locally and setting it up as a z39.50 source so I could import stuff from my own Koha to LibraryThing. Never gave it a second thought though.

14Stevil2001
Editado: Ago 26, 2022, 7:45 am

Este mensaje fue borrado por su autor.