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-15-2011, 03:27 PM   #16
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 Noughty View Post
I mean that in book details it is written all tags first after all tags all shelves are written. Instead of having all tags and shelves mixed with each other so they would be alphabetical.
You suggestion will fix it?
Which duplicate - tags or shelves do you want deleted? I think it would be nice to have the option for either to be deleted. Perhaps it would also be possible to color the different groups tags/shelves in different colors? I would also like ....
Starson17 is offline   Reply With Quote
Old 08-15-2011, 04:04 PM   #17
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 Noughty View Post
I mean that in book details it is written all tags first after all tags all shelves are written. Instead of having all tags and shelves mixed with each other so they would be alphabetical.
You suggestion will fix it?
Yes, although because of the bug, until the next release the order will be reversed.

BTW: having one list first and then the items from the other is the defined behavior of merge_lists. I suggest that to learn more about tempates, you look at the template language documents: http://manual.calibre-ebook.com/template_lang.html
chaley is offline   Reply With Quote
Advert
Old 08-15-2011, 04:20 PM   #18
Noughty
Addict
Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.Noughty is cognizant of many things which escape those who dream only by night.
 
Posts: 352
Karma: 103850
Join Date: Apr 2011
Device: Kindle NT
I am trying but all these templates are still very confusing. And I cannot even find the template merge_lists in that link. I find list_union which is for merging apparently.

I don't get the basics yet. The guide is a little complicated. I'm not sure I will ever learn how to use the more complicated template language if it isn't directly written how exactly to make one thing or another.

Quote:
list_sort(merge_lists(field('tags'), field('#textmult'), ','), 0, ',')
Like what ','), 0, ',') this part means and similar?

#textmult is my custom column? As I cannot find "textmult" in template guide.

At the moment I have:

{#shelf:'merge_lists(field('tags'), $, ',')'}

And in this I don't understand what $ does. Basically I would like some basics of the language, symbols and their meaning etc.

Last edited by Noughty; 08-15-2011 at 04:29 PM.
Noughty is offline   Reply With Quote
Old 08-15-2011, 04:57 PM   #19
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 Noughty View Post
Like what ','), 0, ',') this part means and similar?
Those are parameters to the function identified by the ( ) pairs and are documented for each function.

The function syntax of template programs is similar to what one finds in excel and similar programs. The functions are different, but the way the functions are written and used are not. Calibre's function syntax is documented here. The functions are documented here.
Quote:
#textmult is my custom column? As I cannot find "textmult" in template guide.
'#textmult', the parameter to the field() function, is the name of my column that I used to test the template. I don't have a column named #shelf.
Quote:
At the moment I have:

{#shelf:'merge_lists(field('tags'), $, ',')'}

And in this I don't understand what $ does. Basically I would like some basics of the language, symbols and their meaning etc.
Quoting the manual
Quote:
the variable $ stands for the field the expression is operating upon, #series in this case.
In your case the $ stands for #shelf.

That template is using template program mode and consists of two functions, merge_lists() (obsolete, replaced by list_union) that uses the result (return value) of field() as its first parameter. $ is the second parameter to merge_lists, and ',' is the third parameter.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
0.7.46 and custom columns meme Library Management 4 02-21-2011 04:21 AM
Creating columns Jabby Library Management 0 02-04-2011 05:46 PM
Two columns broken in 7.24 pollito pito Calibre 12 10-28-2010 06:00 PM
I'm looking to convert 2 columns to 1 but ... SeaBookGuy PDF 1 10-17-2010 08:19 PM
Columns darkpoet ePub 8 09-09-2009 10:17 PM


All times are GMT -4. The time now is 07:20 AM.


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