| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() 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!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Addict 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 244 
				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
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | |
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 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 BR Last edited by BetterRed; 10-20-2022 at 07:18 PM. Reason: r all Marked Bokks  | 
|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 9 
				Karma: 10 
				Join Date: Nov 2021 
				
				
				
				Device: None 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Great!  Thank you!
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | |
| 
			
			
			
			 want to learn what I want 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,681 
				Karma: 7908443 
				Join Date: Sep 2020 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Those Virtual Libraries links in your Details panel look very useful Could you please share how to implement it?  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | |
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Code: 
	{:'virtual_libraries()'}
 | 
|
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#7 | |
| 
			
			
			
			 want to learn what I want 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,681 
				Karma: 7908443 
				Join Date: Sep 2020 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 now i'm not sure how to linkify the values obtained with {:'virtual_libraries()'} ...  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#8 | |
| 
			
			
			
			 want to learn what I want 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,681 
				Karma: 7908443 
				Join Date: Sep 2020 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	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 01:41 AM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#9 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 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 What you see is: 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]
		]))
Last edited by chaley; 10-22-2022 at 06:45 AM. Reason: Fixes for column definition and python template  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#10 | ||
| 
			
			
			
			 want to learn what I want 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,681 
				Karma: 7908443 
				Join Date: Sep 2020 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 ![]() Quote: 
	
 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 Last edited by Comfy.n; 10-22-2022 at 08:59 AM.  | 
||
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#11 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 Here is the column definition, which also shows the complete template. Here is what I see in book details. 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(
Code: 
	return (', '.join(
 | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#12 | |
| 
			
			
			
			 want to learn what I want 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,681 
				Karma: 7908443 
				Join Date: Sep 2020 
				
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
 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 10:02 PM.  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#13 | 
| 
			
			
			
			 null operator (he/him) 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 22,018 
				Karma: 30277294 
				Join Date: Mar 2012 
				Location: Sydney Australia 
				
				
				Device: none 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			FWIW: This gives me clickable links for each VL shown in Book Details 
		
	
		
		
			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  | 
| 
		
 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#14 | |
| 
			
			
			
			 Grand Sorcerer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,525 
				Karma: 8065948 
				Join Date: Jan 2010 
				Location: Notts, England 
				
				
				Device: Kobo Libra 2 
				
				
				 | 
	
	
	
		
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#15 | 
| 
			
			
			
			 Custom User Title 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 11,359 
				Karma: 79528341 
				Join Date: Oct 2018 
				Location: Canada 
				
				
				Device: Kobo Libra H2O, formerly Aura HD 
				
				
				 | 
	
	|
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
            
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Embedded metadata on export | halloleo | Library Management | 2 | 01-10-2021 09:01 AM | 
| importing odt; get metadata from text | randoneur | Conversion | 2 | 03-13-2019 10:47 AM | 
| pdf metadata export | devils_add | Library Management | 4 | 05-09-2014 03:46 AM | 
| Extra metadata import from ODT | olig | Development | 50 | 08-02-2012 04:14 AM | 
| Export just metadata? | TheD0ct0r | Calibre | 3 | 12-11-2010 10:52 AM |