View Single Post
Old 03-16-2011, 02:31 PM   #8
arspr
Dead account. Bye
arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.arspr ought to be getting tired of karma fortunes by now.
 
Posts: 587
Karma: 668244
Join Date: Mar 2011
Device: none
Quote:
Originally Posted by chaley View Post
If this is really important, you can create a composite column that compares the other columns and produces 'yes' or 'no' as appropriate. The 'strcmp' function makes this reasonably straightforward.


I've got it!!!!.
  1. I've created a new "Original Language?"(#original) custom column with Show checkmarks and Yes/No sorting
  2. I've used the next template (after quite a lot of tests):
    Code:
    {#original:'strcmp(field('#original_language'), field('#language'), 'No', 'Yes', 'No')'}

And it works. (I can delete my previous not-so-perfect searches)

Thanks to both with your help.





:

Now, just like my other ask about title an author-like custom columns, may I ask for other little improvements in Calibre?
  • I would like to see this new column in tag browser but it seems impossible...
  • With the selected "Show Checkmarks" option I get more or less either "Y Yes" or "X No". And I would like to see just either Y or X, I mean not seeing the text, just the icon like any other Yes-No user column.
arspr is offline   Reply With Quote