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-22-2014, 02:09 PM   #1
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Custom Column: Price

Is there a specific function I can use for a custom column so that when I enter in the cost of a book it automatically appears in the following format: $0.00 ?
(I'll even accept $00.00)

Please & Thank You.
Nyssa is offline   Reply With Quote
Old 10-22-2014, 03:11 PM   #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: 31,094
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
'price' is usually a floating point number

You could format it in the export template (but why would you? I will read a $5.99 book today?).
BTW what would you do if you bought a book while traveling where the currency was not the same as here? (Yes, I bought books while on holiday in the UK)
theducks is offline   Reply With Quote
Advert
Old 10-22-2014, 03:32 PM   #3
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by theducks View Post
'price' is usually a floating point number

You could format it in the export template (but why would you? I will read a $5.99 book today?).
BTW what would you do if you bought a book while traveling where the currency was not the same as here? (Yes, I bought books while on holiday in the UK)
1. You are right. the format was given as an example under floating point, not integer.

2. I use it as a way to see: (a) How much I've spent over time. (b) How many ebooks I buy vs how many I freebies I acquire. (c) Yes, I have used cost to encourage me to read something, simply because I spent money on it, in the past. (d) I've also used it to help meet criteria for certain book club and/or reading challenges.

3. Now that I have that question answered, is there a way to get the price to show in "Book Details" when the price is set at "$0.00", or will I have to fudge it and set my freebies to a penny each?
Nyssa is offline   Reply With Quote
Old 10-22-2014, 03:36 PM   #4
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,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Nyssa View Post
Is there a specific function I can use for a custom column so that when I enter in the cost of a book it automatically appears in the following format: $0.00 ?
(I'll even accept $00.00)

Please & Thank You.
The floating point custom column can do this. What you want is one of the examples shown in the column definition dialog. Move your mouse pointer over the "Format for numbers" box and you will see an example for "Price".
chaley is offline   Reply With Quote
Old 10-23-2014, 06:32 AM   #5
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by chaley View Post
The floating point custom column can do this. What you want is one of the examples shown in the column definition dialog. Move your mouse pointer over the "Format for numbers" box and you will see an example for "Price".
Yes, I acknowledged that I had found it in my post above. Thank you.
Would you, by any chance be able to help me with point number 3?

Quote:
Originally Posted by Nyssa View Post
3. Now that I have that question answered, is there a way to get the price to show in "Book Details" when the price is set at "$0.00", or will I have to fudge it and set my freebies to a penny each?
Please & Thank you.
Nyssa is offline   Reply With Quote
Advert
Old 10-23-2014, 07:40 AM   #6
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,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Nyssa View Post
Would you, by any chance be able to help me with point number 3?
Quote:
Originally Posted by Nyssa View Post
3. Now that I have that question answered, is there a way to get the price to show in "Book Details" when the price is set at "$0.00", or will I have to fudge it and set my freebies to a penny each?
Please & Thank you.
"Penny each" is the only thing that will work at the moment.

I submitted changes to Kovid to show zero-valued numeric custom columns in book details. If he can accept the code then 0.00 will start working. However, there may be issues I didn't see that prevent him from using this change.
chaley is offline   Reply With Quote
Old 10-23-2014, 08:01 AM   #7
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by chaley View Post
"Penny each" is the only thing that will work at the moment.

I submitted changes to Kovid to show zero-valued numeric custom columns in book details. If he can accept the code then 0.00 will start working. However, there may be issues I didn't see that prevent him from using this change.
Okay. Thank you!
Nyssa is offline   Reply With Quote
Old 10-24-2014, 12:43 AM   #8
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
'twas accepted.

https://github.com/kovidgoyal/calibr...409dc10e85e9d6
eschwartz is offline   Reply With Quote
Old 10-24-2014, 09:24 AM   #9
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by eschwartz View Post
Yes, yes it was! And thank you!
Nyssa is offline   Reply With Quote
Old 10-24-2014, 09:43 AM   #10
treadlightly
Wizard
treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.treadlightly ought to be getting tired of karma fortunes by now.
 
treadlightly's Avatar
 
Posts: 1,370
Karma: 6957792
Join Date: Nov 2010
Location: Ottawa, ON
Device: Kobo H2O
A while ago I had asked in the plugin idea thread if there was a quick way to show the sum of all the entries in a numerical column. It could be on request, i.e. press a button or hover over the column title, instead of a real-time updated total. I know I can export to CSV but this takes time. It would be nice to see total $ spent on ebooks or total pages read on the fly. Is there any possibility of this ever being implemented? Thanks.
treadlightly is offline   Reply With Quote
Old 10-24-2014, 11:11 AM   #11
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by Nyssa View Post
Yes, yes it was! And thank you!
Sure. (But all I did was give you a heads-up that chaley's change was accepted.)
eschwartz is offline   Reply With Quote
Old 10-24-2014, 11:15 AM   #12
Nyssa
Series Addict
Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.Nyssa ought to be getting tired of karma fortunes by now.
 
Nyssa's Avatar
 
Posts: 6,180
Karma: 167189477
Join Date: Dec 2010
Location: Florida, USA
Device: Kindle Paperwhite (2nd Gen)
Quote:
Originally Posted by eschwartz View Post
Sure. (But all I did was give you a heads-up that chaley's change was accepted.)
Oops..that was supposed to be for chaley.

*Sigh*. I really need to stay off this site when I'm under the weather and sleep deprived.

Well, lets see how many other embarrassing mistakes I can make while I'm here, shall we?
Nyssa is offline   Reply With Quote
Old 10-24-2014, 03:02 PM   #13
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,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Nyssa View Post
Oops..that was supposed to be for chaley.

*Sigh*. I really need to stay off this site when I'm under the weather and sleep deprived.

Well, lets see how many other embarrassing mistakes I can make while I'm here, shall we?
I figured it out. Thanks for the thanks.
chaley is offline   Reply With Quote
Old 10-24-2014, 03:04 PM   #14
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, I did get some free karma out of it, so I don't mind.
eschwartz is offline   Reply With Quote
Old 10-24-2014, 03:05 PM   #15
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,450
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by treadlightly View Post
A while ago I had asked in the plugin idea thread if there was a quick way to show the sum of all the entries in a numerical column. It could be on request, i.e. press a button or hover over the column title, instead of a real-time updated total. I know I can export to CSV but this takes time. It would be nice to see total $ spent on ebooks or total pages read on the fly. Is there any possibility of this ever being implemented? Thanks.
Not much of one unless someone makes a plugin to do it. The problem is that functions like that require access to all books, not just the current one. The template system is limited to one book at a time.

It is of course possible to do this sort of thing in plugins and in python "calibre helper scripts" (calibre-debug -e script.py), but neither of these are useful for someone who isn't already a python programmer.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Price Custom Column Formatting Help PaulineDesigns Library Management 13 07-22-2022 09:23 PM
Custom column returns value based on value of another custom column? calvin-c Calibre 3 09-14-2013 02:24 PM
Custom yes/no column built from long text column Philantrop Library Management 7 03-23-2013 07:44 PM
how to move value(s) of tag column to a custom made column zoorakhan Library Management 0 12-08-2012 03:53 AM
Can custom book data be displayed in a custom column? kiwidude Development 9 03-02-2011 05:35 AM


All times are GMT -4. The time now is 09:17 AM.


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