![]() |
#1 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
![]()
The user manual does not quite address my specific question. I've also had no luck with searches here in the archives, or perhaps I am using incorrect keywords. (most likely I am the only dummy posting the question)
If one has an existing custom column, such as "Finished" for books read, is it possible to edit the column to allow inclusion in the tag browser? I think my problem is due to the "column type" being "date" which does not offer the option of a checkbox to "show in tag browser" as other column types provide. I already have a fair number of books which have the "#finished" with date assigned. Is it not possible to edit this column after the fact? (still using v3.48) I would be most appreciative to be pointed in the right direction by someone in the know. Many thanks, Patricia |
![]() |
![]() |
![]() |
#2 | |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
My simple suggestion is to create a Finished virtual library with a search expression of #finished:true. Take care BR |
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
@BetterRed:
I was afraid of that. It would have been smart to ask before creating the column. ![]() Thank you for your suggestion. |
![]() |
![]() |
![]() |
#4 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,047
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Date is not a Tag browser type.
To MOVE (optional set a new type) values to a new column Create the new column Use Bulk mode Search & replace to convert/transfer copy to the new column the delete the old column ONCE YOU ARE SURE it got everything. There is no UNDO,, (only restore from a a backup) |
![]() |
![]() |
![]() |
#5 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Entering dates into a text field is cumbersome and unlikely to be consistently formatted, whereas entering Today into a book list date cell is three keystrokes -- F2, '=', Enter.
If the OP has to have Finished in the Tag Browser it would be better to create a composite column of type text shown in tag browser with program mode template that set it to "Finished" if the #finished column had a value. BR |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
@theducks- thank you for the suggestion. While that would solve the problem of transferring existing data, I think BetterRed is correct suggesting dates entered into a text field may be problematic. But certainly doable.
@BetterRed- this sounds like a possibility. If I understand correctly, creating a composite column as you describe would automatically fill the same existing entries (with a value) to the new column? I know nothing about program mode templates and will need to read the manual. I don't know what I don't know... |
![]() |
![]() |
![]() |
#7 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
Based on the reference I located (below), what template would I write if, for example, I currently have an existing "Finished" column (date), #finished lookup, and want to create a new composite column referencing the "Finished" column with its dates intact? I realize the example below is a slightly different situation but I still cannot figure out how to extract what I need. I am not a programmer, nor care to be. Thank you!
Beginning with an example, assume that you want your template to show the series for a book if it has one, otherwise show the value of a custom field #genre. You cannot do this in the basic language because you cannot make reference to another metadata field within a template expression. In program mode, you can. The following expression works: {#series:'ifempty($, field('#genre'))'} The example shows several things:
|
![]() |
![]() |
![]() |
#8 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I always have to hack at program mode templates. I'll come back if/when I figure it out.
Meantime there might be something this sticky thread ==>> Plugboard, template, and custom composite column recipes Or maybe one of the template wizards will drop by. BR |
![]() |
![]() |
![]() |
#9 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
Thanks very much. I'll head over to the sticky.
|
![]() |
![]() |
![]() |
#10 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
You can try (with a change of the column. I'm using the Date column here as it is in all libraries):
Code:
program: format_date(raw_field('timestamp'),'yyyy-MM-dd') What are you actually trying to achieve? It is one thing to put the column in the tag browser, but, that's pretty pointless if all values are unique. And, as the date is stored as a timestamp, it will probably be fairly unique. And while the above would show an entry for each day, how many books do you finish on a single day? For my main library, there will be plenty of days that don't have an entry, and very few that have more than one. I do have a library that is basically short stories. That can have multiple books finished on a day. The useful thing I can think of is to see a tree in the tag browser to to group based on the elements in the date. That way you could then get an entry for the year, with sub entries for the month and then day. The counts at each level would show how many books were finished in that time period. For this: Code:
program: format_date(raw_field('timestamp'),'yyyy.MM.dd') But, I think I'd go with: Code:
program: format_date(raw_field('timestamp'),'yyyy.MM') The date formatting string can be changed to use month names ("MMM" for abbreviations such as "Apr" or "MMMM" for the full name), but, they mess up the sorting. The above should give you some ideas. But, if you are after something else, then you need to explain what it is you are trying to achieve. |
![]() |
![]() |
![]() |
#11 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@skydog - I'll step aside for now and let you sort it out with David.
BR |
![]() |
![]() |
![]() |
#12 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
@davidfor-
Thank you for your time offering options and their explanations. I had no idea there were so many possibilities for a simple task! My objective is to display a running total (total number of books read) in the tag browser that exist in my custom "read" column. Of course, I can search, sort, or create a virtual library (with thanks to BetterRed) but I simply want to add an entry similar to what exists now displaying totals to the right similar to "authors," "formats," "publishers," etc. The current "read" column is not a composite column. (I only learned what that was during this thread) If I create a new composite column, type: "Column built from other columns," how do I point it to the existing "read" (type: date) column? What is needed in the template to simply acquire the total of the "read" column? I do not need any other information, just a total. Many thanks, Patricia |
![]() |
![]() |
![]() |
#13 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,722
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
FYI - if you create a Finished virtual library as I first suggested, when you switch to it the total is displayed in the status line, viz:
BR |
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,286
Karma: 7409537
Join Date: Mar 2009
Location: Circling Earth @ Mach .83
Device: Elipsa 2E, Sage, Libra Colour, Libra 2, Clara 2E, Oasis3, Voyage
|
Thank you, BetterRed. I did indeed create a virtual Library when you first suggested it and I am aware of the status line. As I mentioned in my reply to davidfor, I would like to have the info displayed in the tag browser, just as I do now with authors, formats, publishers, tags, etc., without any action required from me. I just don't know what is required in the template.
|
![]() |
![]() |
![]() |
#15 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Selection problem in the tag browser | Danyx | Calibre | 2 | 01-22-2019 01:51 PM |
Problem when using tag browser to rename series | JohnnyBook | Library Management | 3 | 06-24-2018 04:22 PM |
How to stop Tag Browser, Details and Cover Browser from showing on startup? | stuartro | Calibre | 1 | 08-15-2016 11:53 PM |
Problem with Tag Browser Custom Icon for Languages | MartyTX | Library Management | 1 | 02-03-2013 03:44 AM |
Problem with Topics Displayed in the Tag Browser of Various Libraries | Lady Fitzgerald | Library Management | 5 | 03-01-2011 01:00 PM |