5

In Calibre, I created a custom column with the type "Date". While it gets displayed as column in the ebook list, it does not appear in the tag browser.

Is there a way to have a date-based column as category in the tag browser?

It would be great to be able to filter ebooks by years, e.g.:

Year [7]
  1970s [4]
    [1] 1974
    [8] 1975
    [2] 1976
    [1] 1977
  1980s [2]
    [2] 1984
    [2] 1985
  1990s [1]
    [3] 1994
4

Yes, you can accomplish that using SubGroups in Calibre. The way to do a subgroup is described here (for user entered Genres) but I'll do the TL;DR below for how to do it with publication dates: https://manual.calibre-ebook.com/sub_groups.html

  1. Create a custom column with desired lookup name (yearpub) and heading and give the column type "Column built from other columns, behaves like tags"

  2. In the Template box, enter this code: {pubdate:'test($, strcat(substr(format_date($,'yyyy'), 0, 3), '0.',format_date($,'yyyy')), 'Unknown')'}

  3. Set "Sort/search columb by" to TEXT and mark a check in the "Show in tags browser".

  4. After restarting Calibre, go to Preferences-->Look and Feel-->Tag Browser and in the entry "Categories with hierarchical items" enter your custom column's lookup name.

Now, what that all does is takes the Published Date data of that book/entry and puts it in the format of an hierarchical tag by decade.year which will now show in the Tags Browser under the lookup name you gave, then the decade, then the year. All without having to enter in any extra data! Just make sure the published date is correct. If no published date is given it will mark it as Unknown.

Enjoy!

2

It seems that this is not directly possible, but you can add an additional column to achieve something like this:

  1. Go to Preferences → Add your own columns
  2. Add custom column:

    1. Give it a name and a heading (this will be displayed in the tag browser)
    2. Select Column built from other columns
    3. Under "Template", enter the name of the date-based column you want to display, e.g.:

      {#originalpublicationyear}
      
    4. Enable Show in tags browser
    5. OK
  3. Apply and restart Calibre

Now this new column should be displayed as category in the tag browser.

Note that you can hide it as column in the book list, it will still work in the tag browser.

Grouping (sub-categorization)

Unfortunately, the grouping is not really helpful, because it uses only the year’s first character like "1" and "2" (in case of "By first letter"), or a range like "1985 - 1997" and "1997 - 2014" (in case of "Partition").

In the first case, filtering by group doesn’t seem to work correctly, and in the second case filtering isn’t possible by design.

So you might want to exclude this category from partitioning (under: Preferences → Look and Feel → Tag Browser), in which case you get a simple list:

Year [7]
  [1] 1974
  [8] 1975
  [2] 1976
  [1] 1977
  [2] 1984
  [2] 1985
  [3] 1994

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.