Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 07-17-2012, 04:10 PM   #1
gabby98
Wizard
gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.
 
gabby98's Avatar
 
Posts: 1,463
Karma: 1382665
Join Date: Jul 2012
Device: Android, Nook Simple Touch, Nook Color, ..., Glo
Help using custom column templates

I am interested in making a few custom columns in my calibre library, but am having a few troubles getting it to work.

Can anyone give me an example of how I would use hascover() and how i could use test() to see if the Series Column has data? I tried, but it keeps saying field not found

please and thank you.

I am comfortable with most programming so usually once I see a few examples I am ok. I look forward to playing more with this system.

EDIT: OK,...I got the test() function to work after about another hour of playing. now just need help with hascover - will keep trying

Last edited by gabby98; 07-17-2012 at 05:06 PM.
gabby98 is offline   Reply With Quote
Old 07-17-2012, 05:10 PM   #2
chaley
"chaley", not "charley"
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: 5,626
Karma: 857074
Join Date: Jan 2010
Location: France
Device: Many android devices
Quote:
Originally Posted by gabby98 View Post
Can anyone give me an example of how I would use hascover() and how i could use test() to see if the Series Column has data? I tried, but it keeps saying field not found
Examples in general program mode.

has_cover: return 'yes' if the book has a cover, otherwise "no cover".
Code:
program: ifempty(has_cover(), 'no cover')
Testing if the series column has data: return 'Yes' if it does, otherwise return 'No'
Code:
program: test(field('series'), 'Yes', 'No')
chaley is offline   Reply With Quote
Old 07-17-2012, 05:24 PM   #3
gabby98
Wizard
gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.gabby98 ought to be getting tired of karma fortunes by now.
 
gabby98's Avatar
 
Posts: 1,463
Karma: 1382665
Join Date: Jul 2012
Device: Android, Nook Simple Touch, Nook Color, ..., Glo
Thank you...i got it now.

Determined the series think using a different format, but it still works. The hascover thing make sense now that i see the who "program: " option. I thought that was a notation thing

ty
gabby98 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
custom date column from two state column Dopedangel Library Management 7 01-03-2012 08:20 AM
using templates/pyhon and custom columns to extract specific data from tags smoothrolla Library Management 6 11-10-2011 05:12 PM
help with custom column Noughty Library Management 4 10-15-2011 05:31 AM
Can custom book data be displayed in a custom column? kiwidude Development 9 03-02-2011 05:35 AM
Techniques to use plugboards, custom columns and templates kovidgoyal Library Management 0 01-26-2011 04:21 PM


All times are GMT -4. The time now is 08:31 AM.


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