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 08-03-2021, 05:07 AM   #1
kamille3
Enthusiast
kamille3 began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Jul 2021
Device: None
Show book summary column

Is there a way to add a custom column that will show the book summary/plot?

Right now summary is only shown in the sidebar when a particular book is selected.
kamille3 is offline   Reply With Quote
Old 08-03-2021, 11:15 AM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,184
Karma: 57532200
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
You can change Where that summary is displayed (Preferences: Look & Feel: Main... (a tab): User Interface Style: Narrow or Wide) AND there is an Alternate that Floats (Info pane) really great if you have a second monitor

Summaries can be HUGE and not on a single line, so it would not be practical to keep pushing the next book down screen just to display.
theducks is offline   Reply With Quote
Old 08-03-2021, 01:17 PM   #3
kamille3
Enthusiast
kamille3 began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Jul 2021
Device: None
Quote:
Originally Posted by theducks View Post
You can change Where that summary is displayed (Preferences: Look & Feel: Main... (a tab): User Interface Style: Narrow or Wide) AND there is an Alternate that Floats (Info pane) really great if you have a second monitor

Summaries can be HUGE and not on a single line, so it would not be practical to keep pushing the next book down screen just to display.
Your solution just shifts the details pane from the right panel to the bottom.

What I meant was a separate column (like Title, Author ) in the main window dedicated just for the book summary/synopsis...So that I can quickly view the summary of every book while scrolling through the list. It makes stuff finding easier in a large library.
kamille3 is offline   Reply With Quote
Old 08-03-2021, 01:23 PM   #4
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 30,184
Karma: 57532200
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by kamille3 View Post
Your solution just shifts the details pane from the right panel to the bottom.

What I meant was a separate column (like Title, Author ) in the main window dedicated just for the book summary/synopsis...So that I can quickly view the summary of every book while scrolling through the list. It makes stuff finding easier in a large library.
Did you read my second paragraph?
BTW you can search Comments (comments:<the words to look for> )
theducks is offline   Reply With Quote
Old 08-03-2021, 03:30 PM   #5
thiago.eec
Guru
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 961
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by kamille3 View Post
Is there a way to add a custom column that will show the book summary/plot?

Right now summary is only shown in the sidebar when a particular book is selected.
You could use a composite column (a column made from others). I don't know how to format the text as html, but here is a starting point:

template: {comments}

Calibre will display the book summary in the newly created column. I'm sure @chaley could provide a more complete template.
thiago.eec is offline   Reply With Quote
Old 08-03-2021, 04:17 PM   #6
kamille3
Enthusiast
kamille3 began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Jul 2021
Device: None
Quote:
Originally Posted by thiago.eec View Post
You could use a composite column (a column made from others). I don't know how to format the text as html, but here is a starting point:

template: {comments}

Calibre will display the book summary in the newly created column. I'm sure @chaley could provide a more complete template.
Your solution worked flawlessly.
kamille3 is offline   Reply With Quote
Old 08-03-2021, 04:31 PM   #7
thiago.eec
Guru
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 961
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
Quote:
Originally Posted by kamille3 View Post
Your solution worked flawlessly.
I guess you don't mind the <p>'s, <div>'s and stuff, then.

P.S.: Actually, those tags will not always show up. It depends on how the field was originally filled. If it came right from the file, it usually has no HTML tags.
thiago.eec is offline   Reply With Quote
Old 08-03-2021, 04:53 PM   #8
kamille3
Enthusiast
kamille3 began at the beginning.
 
Posts: 48
Karma: 10
Join Date: Jul 2021
Device: None
Quote:
Originally Posted by thiago.eec View Post
I guess you don't mind the <p>'s, <div>'s and stuff, then.

P.S.: Actually, those tags will not always show up. It depends on how the field was originally filled. If it came right from the file, it usually has no HTML tags.
While not distracting..it will certainly be nice to get that cleaned up..
kamille3 is offline   Reply With Quote
Old 08-03-2021, 06:37 PM   #9
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: 20,790
Karma: 27405122
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kamille3 View Post
While not distracting..it will certainly be nice to get that cleaned up..
I think that's why Comments cannot be shown as a column (cell) in the book list (spread sheet) - if the HTML was formatted, the book list line height would have to be variable and then you'd loose the convenience of a compact fixed line height list.

FWIW: I do the following, but my primary objective was to be able to edit the text from the book list rather than see it.

I have a long text custom column called Blurb/#blurb

Click image for larger version

Name:	1.jpg
Views:	121
Size:	53.1 KB
ID:	188506

In the book list I cloak Blurb with an icon

Click image for larger version

Name:	2.jpg
Views:	81
Size:	162.5 KB
ID:	188507

Initially, I used this to bulk copy all the Comments/comments to Blurb/#blurb

Click image for larger version

Name:	3.jpg
Views:	81
Size:	215.5 KB
ID:	188508

IIRC I then had to clear the Comments manually using a SQLite database editor, but there may be a better way now.

Today, I do it manually for individual books with Cut and Paste in metadata edit.

The end result is

Click image for larger version

Name:	4.jpg
Views:	81
Size:	199.7 KB
ID:	188509

It may be possible to use the Action Chains plugin to do what the F2 does (pop the long text editor for a specific column) without the need to tab to the cell.

BR
BetterRed is offline   Reply With Quote
Old 08-03-2021, 07:08 PM   #10
thiago.eec
Guru
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 961
Karma: 1183425
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite
After BR post, I decided giving a try to remove the HTML code, and it was not that difficult after all. Maybe not the cleanest way, but it worked here.

template:

Code:
program:
	re(field('comments'), '<.*?>|<\/.*?>', '')
This will simply delete every instance of HTML tags. And if you want to play safe, you can define those tags explicitly:

Code:
program:
	re(field('comments'), '<div.*?>|<\/div>|<p.*?>|<\/p>|<i.*?>|<\/i>|<b.*?>|<\/b>|<h.*?>|<\/h.*?>', '')
You can add other tags if you want, like <strong> or <em>.

P.S.: if you do not remove the tags, the formatted text can be visualized hovering the cell.

Last edited by thiago.eec; 08-03-2021 at 07:10 PM.
thiago.eec is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Create column to show number of pages in book Teeg Calibre 3 05-03-2018 07:44 PM
Column doesn't show Margot1975 Library Management 17 03-20-2017 07:55 AM
Show Marked as a Column BetterRed Calibre 16 10-05-2013 05:41 AM
Plugin or custom column to show GB size of book mom34spartan Plugins 5 07-08-2013 09:07 AM
Show summary or synopsis on an E-reader? jdavis72 Which one should I buy? 0 10-10-2009 10:48 PM


All times are GMT -4. The time now is 02:12 AM.


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