Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 03-06-2025, 06:47 PM   #1
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 897
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Export extra data

Is there a way to extract extra data from some books, such as the author's biography, as in the creation of a catalogue?
dunhill is offline   Reply With Quote
Old 03-06-2025, 09:37 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,418
Karma: 27757236
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
No, there isnt
kovidgoyal is offline   Reply With Quote
Advert
Old 03-07-2025, 07:56 PM   #3
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 897
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Thanks for your answers, Kovid
dunhill is offline   Reply With Quote
Old 03-07-2025, 08:31 PM   #4
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,200
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
You can try the chain attached, and it shall produce a csv file containing author notes. (only for authors in selected books).

You can change the path for the csv file by editing the variable in the module.

Note: The chain merely repackages the code of the template function get_note written by chaley.

Edit 1: You can control whether the notes are plain text or html by editing the variable called plain_text in the module.

Edit 2: The chain should have been called "Export notes", but it is already past midnight here ...
Attached Files
File Type: zip import_notes.zip (1.4 KB, 58 views)

Last edited by capink; 03-07-2025 at 08:39 PM.
capink is offline   Reply With Quote
Old 03-07-2025, 08:33 PM   #5
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 897
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by capink View Post
You can try the chain attached, and it shall produce a csv file containing author notes. (only for authors in selected books).

You can change the path for the csv file by editing the variable in the module.

Note: The chain merely repackages the code of the template function get_note written by chaley.
Thank you very much, trying...
dunhill is offline   Reply With Quote
Advert
Old 03-07-2025, 09:02 PM   #6
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,200
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
OK. I think I might have misunderstood what you wanted. If you want the author note as part of book catalog, rather than a separate catalog containing the notes only, your best bet is the following:
  • Create a composite column called notes. And use the following template:
    Code:
    program:
    program:
        res = '';
        for author in $authors separator '&':
            res = res & get_note('authors', author, '')  & character('newline')
        rof
  • When creating the book catalog, choose the note composite column

Last edited by capink; 03-07-2025 at 09:05 PM.
capink is offline   Reply With Quote
Old 03-07-2025, 09:41 PM   #7
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 897
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by capink View Post
OK. I think I might have misunderstood what you wanted. If you want the author note as part of book catalog, rather than a separate catalog containing the notes only, your best bet is the following:
  • Create a composite column called notes. And use the following template:
    Code:
    program:
    program:
        res = '';
        for author in $authors separator '&':
            res = res & get_note('authors', author, '')  & character('newline')
        rof
  • When creating the book catalog, choose the note composite column


Great and sorry for the time, The chain of actions worked better, thank you very much and good night

Last edited by dunhill; 03-07-2025 at 09:44 PM.
dunhill is offline   Reply With Quote
Old 03-09-2025, 11:09 AM   #8
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,461
Karma: 8025600
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Changes are now in calibre source to allow composite columns using get_notes() to work in catalogs.
chaley is offline   Reply With Quote
Old 03-09-2025, 10:15 PM   #9
capink
Wizard
capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.capink ought to be getting tired of karma fortunes by now.
 
Posts: 1,200
Karma: 1995558
Join Date: Aug 2015
Device: Kindle
If anyone is interested, the Category Tags plugin now have the ability to export/import both notes and links to/from csv files. The plugin main function is to export/import user categories for items like authors, tags ... etc. Now, it adds notes and links in addition to user categories.

So the net effect is that you can export the data to csv file that can be opened with any spreadsheet program like excel or libreoffice calc, and edit the the data, then re-import it back into calibre.
capink is offline   Reply With Quote
Old 03-10-2025, 12:30 AM   #10
Comfy.n
want to learn what I want
Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.Comfy.n ought to be getting tired of karma fortunes by now.
 
Posts: 1,615
Karma: 7891011
Join Date: Sep 2020
Device: none
Whee! That works. I had tried to make a catalog a while ago including my Author Bio column but this wasn't possible back then.

I've attached a split epub from a catalog I've generated running from latest source
Attached Files
File Type: epub A Midsummer Night's Dream _ Wil - calibre.epub (137.9 KB, 43 views)
Comfy.n is offline   Reply With Quote
Old 03-10-2025, 08:08 AM   #11
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 897
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Thank you all for listening to users' questions and needs and making calibre deliver on all fronts.
dunhill is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Thanks for the Extra data files (minor remark) un_pogaz Calibre 43 04-30-2023 02:45 AM
Failed to Export Data - Invalid Argument Error When Exporting Data zakropotch Calibre 6 06-18-2022 06:09 PM
Extra data in CSS when converting from MS Wod kumarashantanu Conversion 2 03-03-2021 05:17 PM
KFX Conversion Failed: Extra Data? popkulcher Plugins 2 01-29-2020 05:41 PM
Cannot modify selected data within Export Calibre data Pholipe Library Management 1 09-05-2019 11:34 AM


All times are GMT -4. The time now is 07:50 PM.


MobileRead.com is a privately owned, operated and funded community.