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

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 08-23-2011, 01:40 AM   #1
Bertrand
Connoisseur
Bertrand began at the beginning.
 
Posts: 86
Karma: 10
Join Date: Dec 2008
Location: Paris, France
Device: None
Composite column or not ?

Hi,

Here's what I'm trying to do :

- If a book has the tag 'mytag' => rating column = 1 automatically.

Is it possible ?

I tried with a composite column, and used the example found in the sticky post
{formats:contains(EPUB, Yes,)}
modified to
{tags:contains(mytag, Yes,)}
It works, but instead of 'yes', I would like to display 1 star.

I don't even know if I need a composite column.
Can it be accomplished with the native column 'Rating' ?

Thanks.

(I'm not quite a novice in programmation, but I must say I 'm having a hard time with the template language :-)
Bertrand is offline   Reply With Quote
Old 08-23-2011, 02:44 AM   #2
Manichean
Wizard
Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.Manichean invented the internet.
 
Manichean's Avatar
 
Posts: 3,130
Karma: 84534
Join Date: Feb 2008
Location: Germany
Device: Cybook Gen3
I'd try having a look at what the general program mode for templates can accomplish. If you can do it anywhere, you can do it there.
Manichean is offline   Reply With Quote
Advert
Old 08-23-2011, 12:48 PM   #3
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Bertrand View Post
I don't even know if I need a composite column.
Can it be accomplished with the native column 'Rating' ?
You can't do it in the native column. (As soon as I say that, someone will probably correct me, most likely Charles ) You need a composite column to build the content from another column (tags). I'm pretty sure composite columns aren't designed to do star rating displays, but I'll be interested to see Charles' comments.
Starson17 is offline   Reply With Quote
Old 08-24-2011, 02:27 AM   #4
Bertrand
Connoisseur
Bertrand began at the beginning.
 
Posts: 86
Karma: 10
Join Date: Dec 2008
Location: Paris, France
Device: None
Ok, maybe I should play with something less complex :-)

Thanks, guys.
Bertrand 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
Plugboard, template, and custom composite column recipes chaley Library Management 809 12-03-2018 12:58 PM
Q: multi-column PDF to single column mobi format converstion auburn1975 Calibre 7 01-28-2012 07:11 PM
composite custom columns sorted numerically Doug-W Library Management 2 02-18-2011 03:16 AM
Custom Composite Column silentguy Calibre 4 11-24-2010 11:28 AM
pdf to lrf with 2 column and 1 column pages in same file danielwille Sony Reader 3 11-12-2008 11:57 AM


All times are GMT -4. The time now is 01:14 AM.


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