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 10-20-2022, 01:55 PM   #1
Ellsinore
Junior Member
Ellsinore began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2021
Device: None
Export One Book Metadata to ODT

I'm using Calibre to manage my physical library, as well as my eBooks and I'm finally getting it figured out!

What I'm wanting to do now is export the metadata for each book to print as I finish processing it, so I can have a physical copy of my library catalog as well. I don't want to export to catalog all the books at once -- just one at a time.

I don't see an option to limit the catalog to one book or an option for an .odt (or other word processing document). Is there a plugin? Is it possible?

Thanks!
Ellsinore is offline   Reply With Quote
Old 10-20-2022, 02:03 PM   #2
georgemk
Addict
georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.georgemk ought to be getting tired of karma fortunes by now.
 
Posts: 243
Karma: 291844
Join Date: Oct 2019
Device: Kobo Nia
Just create a Virtual Library (VL) for that 1 file then create the catalogue within that VL
georgemk is offline   Reply With Quote
Advert
Old 10-20-2022, 05:53 PM   #3
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by georgemk View Post
Just create a Virtual Library (VL) for that 1 file then create the catalogue within that VL
Or Mark the book (Ctrl+M), Show marked books, create the catalogue, then Clear all marked books


FWIW: I would use the feature in the book details panel (embedded or detached) to copy the details to the clipboard and paste it into a word processor/text editor

Click image for larger version

Name:	Screenshot 2022-10-21 084601.jpg
Views:	686
Size:	347.9 KB
ID:	197282

BR

Last edited by BetterRed; 10-20-2022 at 06:18 PM. Reason: r all Marked Bokks
BetterRed is offline   Reply With Quote
Old 10-21-2022, 12:30 PM   #4
Ellsinore
Junior Member
Ellsinore began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Nov 2021
Device: None
Great! Thank you!
Ellsinore is offline   Reply With Quote
Old 10-21-2022, 10:25 PM   #5
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,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by BetterRed View Post
Or Mark the book (Ctrl+M), Show marked books, create the catalogue, then Clear all marked books


FWIW: I would use the feature in the book details panel (embedded or detached) to copy the details to the clipboard and paste it into a word processor/text editor

Attachment 197282

BR
Hi BR,

Those Virtual Libraries links in your Details panel look very useful
Could you please share how to implement it?
Attached Thumbnails
Click image for larger version

Name:	MWSnap0875 2022-10-21, 23_22_58.png
Views:	52
Size:	26.5 KB
ID:	197295  
Comfy.n is offline   Reply With Quote
Advert
Old 10-21-2022, 11:21 PM   #6
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by Comfy.n View Post
Hi BR,

Those Virtual Libraries links in your Details panel look very useful
Could you please share how to implement it?
Click image for larger version

Name:	Screenshot 2022-10-22 142033.jpg
Views:	600
Size:	52.0 KB
ID:	197297

Code:
{:'virtual_libraries()'}
BR
BetterRed is offline   Reply With Quote
Old 10-21-2022, 11:30 PM   #7
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,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by Comfy.n View Post
Hi BR,

Those Virtual Libraries links in your Details panel look very useful
Could you please share how to implement it?
just saw this thread and was able to make the VL values show in details pane, using something like the approximate formats referred in Calibre Manual

now i'm not sure how to linkify the values obtained with {:'virtual_libraries()'} ...
Comfy.n is offline   Reply With Quote
Old 10-21-2022, 11:31 PM   #8
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,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by BetterRed View Post
Attachment 197297

Code:
{:'virtual_libraries()'}
BR
ah, thanks!

edit: https://www.mobileread.com/forums/sh...d.php?t=288508 < this PI makes the VL values clickable

Last edited by Comfy.n; 10-22-2022 at 12:41 AM.
Comfy.n is offline   Reply With Quote
Old 10-22-2022, 05:12 AM   #9
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Comfy.n View Post
edit: https://www.mobileread.com/forums/sh...d.php?t=288508 < this PI makes the VL values clickable
Assuming you use a composite column (column built from other columns) that behaves like tags, they are clickable without using the PI. Are you seeing something different?

And just for fun I made a composite column that lets you switch VLs by clicking the links in book details. The GPM template is:
Code:
program:
	res = '';
	for vl in virtual_libraries():
		if res then res = res & '<br>' fi;
		res = res & '<a href="calibre://search/_?encoded_virtual_library=' & to_hex(vl) & '">' & vl & '</a>'
	rof;
	res
The column definition is:
Click image for larger version

Name:	Clipboard01.png
Views:	84
Size:	16.5 KB
ID:	197304

What you see is:
Click image for larger version

Name:	Clipboard05.png
Views:	80
Size:	2.4 KB
ID:	197303

And for more fun, here is the template using python template mode (PTM), which will be much faster than the GPM template above:
Code:
python:
def evaluate(book, ctx):
	db = ctx.db.new_api
	return ('<br>'.join(
		[f'<a href="calibre://search/_?encoded_virtual_library={vl.encode().hex()}">{vl}</a>' 
		 for vl in db.virtual_libraries_for_books((book.id,))[book.id]
		]))
EDIT: corrections to the column setup and the python template

Last edited by chaley; 10-22-2022 at 05:45 AM. Reason: Fixes for column definition and python template
chaley is offline   Reply With Quote
Old 10-22-2022, 07:49 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,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by chaley View Post
Assuming you use a composite column (column built from other columns) that behaves like tags, they are clickable without using the PI. Are you seeing something different?
I had tried both composite column types (behaves like tags and the other) before using the PI, neither would linkify; i'm running from the latest source, so maybe something changed? Or maybe I've been bedtime procrastinating too long and missed something, most probably.

Quote:
And for more fun, here is the template using python template mode (PTM), which will be much faster than the GPM template above:
Code:
python:
def evaluate(book, ctx):
	db = ctx.db.new_api
	return ('<br>'.join(
		[f'<a href="calibre://search/_?encoded_virtual_library={vl.encode().hex()}">{vl}</a>' 
		 for vl in db.virtual_libraries_for_books((book.id,))[book.id]
		]))
Indeed, this works instantly, thank you so much!
The PI approach is also interesting, so I'll keep using it together with the new switching links (I think I like to see the search bar populated, which doesn't happen when the VLs are active)



edit: added screencap
Attached Thumbnails
Click image for larger version

Name:	MWSnap0891 2022-10-22, 08_58_03.png
Views:	55
Size:	19.7 KB
ID:	197305  

Last edited by Comfy.n; 10-22-2022 at 07:59 AM.
Comfy.n is offline   Reply With Quote
Old 10-22-2022, 08:25 AM   #11
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Comfy.n View Post
I had tried both composite column types (behaves like tags and the other) before using the PI, neither would linkify; i'm running from the latest source, so maybe something changed? Or maybe I've been bedtime procrastinating too long and missed something, most probably.
Hmmm ... it works for me. I also run from source. This difference doesn't matter unless there really is something broken.

Here is the column definition, which also shows the complete template.
Click image for larger version

Name:	Clipboard01.png
Views:	89
Size:	16.3 KB
ID:	197306

Here is what I see in book details.
Click image for larger version

Name:	Clipboard02.png
Views:	48
Size:	5.3 KB
ID:	197307

And FWIW: if you prefer the output on the python-based column to be all on one line instead of one per line, change
Code:
return ('<br>'.join(
to
Code:
return (', '.join(
chaley is offline   Reply With Quote
Old 10-22-2022, 03:18 PM   #12
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,611
Karma: 7891011
Join Date: Sep 2020
Device: none
Quote:
Originally Posted by chaley View Post
Here is the column definition, which also shows the complete template.
Attachment 197306
That pic has helped clarify my issue of non linkified values in Book details: when creating composite custom columns, I would check only the "Show as HTML in Book details", as this seemed enough; this time, after checking "Show in Tag Browser", I got the clickable VLs.


edit: actually, I just did a test modifying the composite: if "Show as HTML..." is checked AND "Show in Tag Browser", links are gone. So, for the links to show, composite column must be set exactly as in that screencap, with only "Show in Tag Browser" checked ...neither must be checked

Last edited by Comfy.n; 10-22-2022 at 09:02 PM.
Comfy.n is offline   Reply With Quote
Old 10-22-2022, 05:47 PM   #13
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
FWIW: This gives me clickable links for each VL shown in Book Details

Click image for larger version

Name:	Screenshot 2022-10-23 083213.jpg
Views:	537
Size:	282.8 KB
ID:	197315

The difference from my earlier post is the column type: VL Taglike is Column built from other columns, behaves like tags, whereas VL Vanilla is Column built from other columns. The show in TB and Show as HTML are unchecked

Windows 10, Calibre 6.7.1

BR
BetterRed is offline   Reply With Quote
Old 10-22-2022, 05:54 PM   #14
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,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Comfy.n View Post
edit: actually, I just did a test modifying the composite: if "Show as HTML..." is checked AND "Show in Tag Browser", links are gone. So, for the links to show, composite column must be set exactly as in that screencap, with only "Show in Tag Browser" checked
Quote:
Originally Posted by BetterRed View Post
FWIW: This gives me clickable links for each VL shown in Book Details
I haven't done exhaustive tests but I think that the "Show as HTML" must be unchecked to get clickable links. I don't think "Show in Tag browser matters. Reasoning: the column doesn't contain HTML so it shouldn't be shown as if it does. Book details doesn't care if the column is in the tag browser.
chaley is offline   Reply With Quote
Old 10-22-2022, 05:59 PM   #15
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,973
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by georgemk View Post
Just create a Virtual Library (VL) for that 1 file then create the catalogue within that VL
One way to do this without repeatedly changing the VL is to set the search for marked:true. Then you can just mark the book you want to show in there.
ownedbycats is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedded metadata on export halloleo Library Management 2 01-10-2021 08:01 AM
importing odt; get metadata from text randoneur Conversion 2 03-13-2019 09:47 AM
pdf metadata export devils_add Library Management 4 05-09-2014 02:46 AM
Extra metadata import from ODT olig Development 50 08-02-2012 03:14 AM
Export just metadata? TheD0ct0r Calibre 3 12-11-2010 09:52 AM


All times are GMT -4. The time now is 06:09 PM.


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