Tags and comments in mass import (CSV file)

TalkWelcome to LibraryThing!

Join LibraryThing to post.

Tags and comments in mass import (CSV file)

1mikeblyth
Edited: Dec 18, 2011, 12:05 pm

I'm did a mass import from a CSV file and tried to include ratings, comments and tags, but they were not imported. Is it not possible to include these in the import? If not, it seems a serious limitation (who wants to go and retag several hundred books?). If so, what is the right way to do it? My CSV file was like

'AUTHOR','TITLE','TAGS','RATING','COMMENTS','ISBN','"PUBLICATION INFO"','DATE'

Anne Perry,Cain His Brother: A William Monk Novel,"Fiction, mystery, Historical Fiction, Historical, Mystery & Detective",4,"In his family life Angus Stonefield had been gentle and loving, in business a man of probity...",9780345514028,Random House Publishing Group,2010

Thanks.

2jjwilson61
Dec 18, 2011, 7:45 pm

Is there some reason that PUBLICATION INFO has three single quotes around it in the first line?

Maybe the & in the tags is messing things up?

3rsterling
Edited: Dec 19, 2011, 12:26 am

Can you explain exactly the steps you're following when you try to import? Are you uploading the file (and if so where), or are you copying and pasting the text onto the import page?

My guess is that there's a problem with the formatting of the CSV file, maybe because the column heading for the author is off.

For CSV import to work and import the data in your file (as opposed to grabbing external data based on the ISBNs), your file needs to be in *exactly* the same format as the sample CSV -- with exactly the same column headings, and with data in the subsequent rows formatted correctly. I'd recommend having the columns in the same order too. Also note that the author names need to be in last-comma-first order.

Here are the columns in the sample CSV:
'TITLE',"'AUTHOR (last, first)'",'DATE','ISBN','PUBLICATION INFO','TAGS','RATING','REVIEW','ENTRY DATE'

There is no comments column, so those definitely won't import; you'll have to add those manually later. There are columns for tags and ratings, though, so those should import if the file is formatted properly.

So this is what the data you listed above needs to look like:
'TITLE',"'AUTHOR (last, first)'",'DATE','ISBN','PUBLICATION INFO','TAGS','RATING','REVIEW','ENTRY DATE'
Cain His Brother: A William Monk Novel,"Perry, Anne",2010,9780345514028,Random House Publishing Group,"Fiction, mystery, Historical Fiction, Historical, Mystery & Detective",4,,

I just tried uploading a file that looked exactly like that, and it worked fine (the tags and rating got imported).

Edited to add: also, as far as I can tell, if there is a valid ISBN, the system will NOT import your publication info or year. Instead it grabs those from the external data of whatever sources you choose on the import confirmation page.

4Vrouwenbibliotheek
Dec 22, 2024, 12:43 pm

Hi there, I've tried to import more than 4K items from a csv file, but my tags and my review is not imported (also, not all my items are imported - perhaps only those with isbn. Can anybody help me?

this is what I did: chose a file and downloaded it on https://www.librarything.com/import.

My csv file has this format:

'TITLE';"'AUTHOR (last, first)'";'DATE';'ISBN';"'PUBLICATION INFO'";'TAGS';'RATING';'REVIEW';"'DATE READ'";"'PAGE COUNT'";"'CALL NUMBER'"
"Vrouwen op ontdekkingsreis";"Kielich, Wolf";1993;9067660906;"Amsterdam: Rainbow Pocketboeken";"Ontdekkingsreizigsters, 19De Eeuw";;"Belevenissen van enkele Europese vrouwen uit de negentiende en begin twintigste eeuw die, meestal alleen, met alle conventies braken en de wildernis introkken.";;;"Kielich, Wolf"
"Het weerzien : roman";"Taylor, Elizabeth Russell";1993;9052261148;"Breda: De Geus";"Vrouwenleven, Tweede Wereldoorlog, Joden";;"Augustus 1960: voor het vijftiende opeenvolgende jaar brengt Elisabeth Danziger haar vakantie door in hotel ‘De Tamarisken’ op het Deense eiland Møn. Haar programma is dwangmatig: steeds doet Elisabeth dezelfde plaatsen aan in dezelfde volgorde. Vrijwel niemand weet dat Elisabeth de enige overlevende is van de familie die voor de oorlog in de villa ‘De Tamarisken’ woonde.";;;"Taylor, Elizabeth Russell"
"De Katalinstraat";"Szabó, Magda";2004;9,78905E+12;"Antwerpen ; Amsterdam: Houtekiet";"Jodendom,Hongarije,Sterven";;"De Katalinstraat' vertelt het tragische verhaal van drie gezinnen in de Katalinstraat. De roman wordt afwisselend door diverse personages verteld. Zelfs het dode joodse meisje Henriett, dat in 1944 vermoord werd, gaat terug naar de plekken en personen van haar jeugd en creëert haar eigen hiernamaals uit de herinneringen aan haar bruut beëindigde leven. Op deze manier wordt de grens tussen de doden en de levenden opgeheven, zodat de lezer beseft dat de doden meer leven dan de levenden die 'doodgegaan' zijn toen Henriett stierf. Tevergeefs proberen ze hun leven voort te zetten. ";;;"Szabó, Magda"
"Dans! Denk!";"Brederode, Desanne van";2017;9,78902E+12;"Amsterdam: Querido";"Krisztina De Chatel, Choreografen, Dans ";;"'Denken zonder lichaam is helemaal niks.' In het voorjaar van 2015 benaderde choreografe Krisztina de Châtel Désanne van Brederode met de vraag of zij over haar leven en werk zou willen schrijven, in relatie tot filosofie.Het resultaat, Dans! Denk!, is een boek over de verbinding tussen bewegen en denken. In de woorden van De Châtel: 'Waar het om gaat, is te tonen hoezeer leven, dans en denken als eenheid kunnen worden opgevat. Dansen kan evenzeer een vorm van reflectie zijn als filosoferen dat is, en omgekeerd veronderstelt filosoferen beweging.' Een boek over het belang van ritme, over verschillende lagen van muziek, en over hoe je met een lichaam uitdrukt wat daarbinnenin huist (de ziel?). Maar ook over het persoonlijk leven van De Châtel, haar ouders, haar jeugd in Hongarije, het ongeworteld-zijn in Nederland, over liefde en betrokkenheid, leermeesters, lesgeven en midden in de wereld staan. (Goodreads)";;;"Brederode, Desanne van"
"Clementine : een leven met Winston Churchill";"Purnell, Sonia ";2017;9,78949E+12;"Elburg: Karmijn Uitgeverij";"Tweede Wereldoorlog, Regeringsleiders, Gehuwde Vrouwen,Verenigd Koninkrijk";;"'Jij bent mijn rots in de branding.' Winston aan Clementine, 15 maart 1925 Zonder het daadkrachtige leiderschap van Winston Churchill was de Tweede Wereldoorlog wellicht anders verlopen. Zonder de niet-aflatende steun van zijn vrouw Clementine was Winston misschien nooit premier geworden. Wie was deze 'Clemmie', die meer invloed had op de Britse politiek dan welke premiersvrouw voor of na haar dan ook? Deze biografie is het opmerkelijke levensverhaal van een getalenteerde vrouw, die niet alleen de kunst verstond zich staande te houden naast een complexe echtgenoot, maar die ook nauw betrokken was bij beslissende momenten in de wereldgeschiedenis. (";;;"Purnell, Sonia "

etc.

Can anybody tell me, how I can import my own metadata? I expected tags and reviews to be imported for all records, while the title, author and that kind of metadata to be harvested from the amazons & co for records with isbn, and from the csv for records without isbn.

I'd very much appreciate any help!

Kind regards, Jonna Lind (Vrouwenbibibliotheek)

5kristilabrie
Edited: Dec 23, 2024, 9:57 am

>4 Vrouwenbibliotheek: Your import file seems to be parsed out very weirdly on our end. I'm guessing there's some formatting issues to start with. Would you mind emailing me your import file (to kristi@librarything.com) so I can see what it looks like direct from you? I'm here intermittently this week, with much of our other staff out for the holidays. I'd be happy to help.

6Vrouwenbibliotheek
Dec 27, 2024, 4:46 am

>5 kristilabrie: Thanks a lot, @kristilabrie! I'm mailing it in a minute, and will be very thankful for any help from your end! And I understand about intermittency, it's the same here!

Kind regards, and a happy new year,

Jonna

7kristilabrie
Dec 27, 2024, 10:39 am

>6 Vrouwenbibliotheek: Wonderful, thanks Jonna! I replied to your email just now, let me know if you have further questions. I'll be back after the weekend.