|  05-08-2024, 09:27 AM | #991 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | 
			
			Oh! you are editing the Kobo DB I tested only at Calibre   | 
|   |   | 
|  05-08-2024, 11:09 AM | #992 | 
| Grand Sorcerer            Posts: 13,693 Karma: 79983758 Join Date: Nov 2007 Location: Toronto Device: Libra H2O, Libra Colour | 
			
			I think one issue with editting the Kobo database is that the device does a sync with the Kobo servers; I think there is an option in Kobo Utilities to cleanse the collections which I again think sets a date of change on the rows to allow the sync to have the desired effect. Sent from my Pixel 7a using Tapatalk | 
|   |   | 
|  05-08-2024, 06:46 PM | #993 | 
| Bibliophagist            Posts: 48,088 Karma: 174315300 Join Date: Jul 2010 Location: Vancouver Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos | 
			
			On the second page of the KoboTouch/KoboTouchExtended driver, check the box beside Delete Empty Bookshelves (Kobo used to refer to collections as bookshelves).
		 | 
|   |   | 
|  05-08-2024, 06:56 PM | #994 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 I also found that collections won't go away (be set to "deleted) unless there is an actual template in the template box or an actual column name in the collections box, or both. Interestingly enough, the column name doesn't need to be a real column. Example: I was able to delete all my collections by setting the collections column box to the lookup name "foobar", which of course doesn't exist. How to change this behavior isn't obvious because it is likely that some people depend on how it currently works. I am strongly tempted to leave it the way it is. Of course, Preferences / Sending to device / Metadata management must be set to automatic for any of this to happen. | |
|   |   | 
|  05-08-2024, 07:10 PM | #995 | 
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | 
			
			Does the Compress Device Database  item on KU, do the actual purge?
		 | 
|   |   | 
|  05-08-2024, 07:24 PM | #996 | 
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | |
|   |   | 
|  05-11-2024, 08:34 PM | #997 | |
| Member  Posts: 14 Karma: 10 Join Date: Apr 2022 Location: Missouri, USA Device: Kobo Sage & Kindle Paperwhite 4 | Quote: 
 Which has nothing to do with my issue cause none of the shelves were "empty", that only deletes collections when all books inside said collection have been removed from the device, I didn't remove any books so none of the collections I no longer wanted were "empty" | |
|   |   | 
|  05-15-2024, 12:40 PM | #998 | 
| Connoisseur  Posts: 66 Karma: 10 Join Date: Jun 2020 Device: Kobo Aura HD | 
				
				Searh serie name with condition
			 
			
			Hello, Do you know how i can do a search for serie name where their serie_index can be greater than 20 for example . I only want the serie name , not all ebooks with serie_index > 20, or any template ... just a search method with serie name as result Thanks for your help Last edited by Doum; 05-15-2024 at 12:43 PM. | 
|   |   | 
|  05-15-2024, 12:51 PM | #999 | |
| Well trained by Cats            Posts: 31,249 Karma: 61360164 Join Date: Aug 2009 Location: The Central Coast of California Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A | Quote: 
 But the following steps might work 1) Code: series:true and series_index:>=20 Now create a CSV Catalog with only the series name. (Catalog respects the current view) Alternate way if your SQL foo is moderate is to use a SQL Browser (for SQL Lite) and roll your own query | |
|   |   | 
|  05-15-2024, 01:00 PM | #1000 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 See your original thread at https://www.mobileread.com/forums/sh...d.php?t=361245 | |
|   |   | 
|  06-02-2024, 05:57 PM | #1001 | 
| Wizard            Posts: 1,417 Karma: 30039536 Join Date: Mar 2010 Location: UK Device: Kobo Forma, Icarus, iPad Mini 2, Kobo Touch, Google Nexus 7 | 
			
			Can someone help with editing a template in the Kobo Utilities plug-in? Currently, I use the subtitle field for subseries & index: {#subseries:|| {#subseries_index} - } {#myshelves} What I want to do is add a new bit which will pull through any "From Where" fields (#fromwhere) that contain the word "Nominee", separating them with a comma if there are more than one. This should be on a new line if there is an entry for subseries. Is that doable? Last edited by maddz; 06-02-2024 at 05:59 PM. | 
|   |   | 
|  06-09-2024, 07:06 AM | #1002 | |
| Wizard            Posts: 1,417 Karma: 30039536 Join Date: Mar 2010 Location: UK Device: Kobo Forma, Icarus, iPad Mini 2, Kobo Touch, Google Nexus 7 | Quote: 
 {#subseries:|| {#subseries_index} - } {#myshelves} {#hugonominees:|| - {#hugonominees}} However, I don't understand why it isn't inserting the hyphen between my shelves and the nominations list when there is an entry in the latter field. Ideally, I want each section to be on a separate line, but I can't figure out newlines in the template language. I am guessing I should use something like character('newline') or \n... | |
|   |   | 
|  06-09-2024, 08:46 AM | #1003 | |||
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 Quote: 
 Code: {#hugonominees:|| - {#hugonominees}}I think you want Code: {#hugonominees:| - |}Quote: 
 I think this GPM template gets close to what you want. Code: program:
# This template produces a three line result.
# Line 1 is the subseries, or - if there isn't one.
# Line 2 is the shelves, or '-' if there aren't any
# Line 3 is the hugo nominees, or '-' if there aren't any
	ss = $subseries;
	ssi = $subseries_index;
	if ss then 
		ss_res = ss & ' - ' & ssi
	else
		ss_res = '-'
	fi;
	shelves = ifempty($#myshelves, '-');
	hugo = ifempty($hugonominees, '-');
	return ss_res & character('newline') & shelves & character('newline') & hugo | |||
|   |   | 
|  06-09-2024, 12:05 PM | #1004 | |
| Wizard            Posts: 1,417 Karma: 30039536 Join Date: Mar 2010 Location: UK Device: Kobo Forma, Icarus, iPad Mini 2, Kobo Touch, Google Nexus 7 | Quote: 
 The || is to suppress the function if there is no entry in the field prior to || (so I don't get " - My Shelves" if there is no entry for a subseries but I get just "My Shelves" instead). I output 'My Shelves' so I can see at a glance if a particular series is split across multiple shelves - which has happened - so I know to update Calibre to correct the error. Given I have 6700+ ebooks collected since the early 2000s, eyeballing the Calibre list makes for easily missed inconsistencies. It's been cleaned up over the years though, so eventually I'll drop that section of the plugboard. What it's doing is if there are entries in all 3 fields is producing the output: 'Subseries' 'Subseries Index' - 'My Shelves' 'Hugo Nominations' What I want it to do is produce: 'Subseries' 'Subseries Index' - 'My Shelves' - 'Hugo Nominations' Ideally, it should be: 'Subseries' 'Subseries Index' 'My Shelves' 'Hugo Nominations' But I am not sure if the subtitle field can take more than one line... If there is less than three entries (every title will have 'My Shelves'), the line breaks for the subseries and Hugos should be suppressed, so there is either 1 line or 2 lines: 'My Shelves' or 'Subseries' Subseries Index' 'My Shelves' or 'My Shelves' 'Hugo Nominations' I hope this makes sense! I'm fiddling with the output now, as I am trying to prioritise my reading; some novels from the packet are in the Best Editor nominations, and they are low priority, so I want to see which unread title to go for first. | |
|   |   | 
|  06-09-2024, 12:33 PM | #1005 | |
| Grand Sorcerer            Posts: 12,525 Karma: 8065948 Join Date: Jan 2010 Location: Notts, England Device: Kobo Libra 2 | Quote: 
 Code: {#subseries}{#subseries_index:| | - }{#myshelves}{#hugonominees:| - |}Code: {#series}{#series_index:| | - }{#genre}{tags:| - |}This GPM template does the same thing except for using newlines instead of the minus signs. Code: program:
# This template produces a 1-to-3 line result.
# The first line is the subseries if there is one.
# The next line is the shelves, which are always present.
# The last line is the hugo nominees, if there is one.
	if $subseries then
		ss = $#subseries & ' ' & $#subseries_index & character('newline')
	else
		ss = ''
	fi;
	if $#hugonominees then
		hugo = character('newline') & $#hugonominees
	else
		hugo = ''
	fi;
	return ss & $#myshelves & hugoLast edited by chaley; 06-09-2024 at 12:38 PM. | |
|   |   | 
|  | 
| Tags | 
| custom column, tag, tags | 
| 
 | 
|  Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| Should composite columns appear in Grouped Searches? | ownedbycats | Library Management | 3 | 02-13-2021 03:43 PM | 
| Having problems with composite columns and save/send templates | Trel | Calibre | 4 | 09-26-2016 03:21 PM | 
| Tooltips for narrow columns | theducks | Library Management | 7 | 03-16-2015 10:58 PM | 
| Techniques to use plugboards, custom columns and templates | kovidgoyal | Library Management | 0 | 01-26-2011 04:21 PM |