04-24-2017, 11:32 AM | #226 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Nevermind ... I actually figured it out myself. Although Calibre still doesn't add the correct information in the complete column. (see attached screenshot).
|
04-24-2017, 05:00 PM | #227 |
null operator (he/him)
Posts: 20,550
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
I assume you mean the #status column. What is the calibre column definition for the #status column.
Your source CSV looks like it has a textual string, if #status isn't a real text column of some sort then that could be the problem, e.g. if the Column type is Text, but with a fixed set of permitted values then I think that is actually held as an integer. Try adding a #status_as_text column (long text, header on side, plain) and map column 6 to it. BR |
Advert | |
|
04-24-2017, 09:30 PM | #228 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
@Tanjamuse: BR is going in the right direction. If #status is a yes/no type column, if the CSV column has a value that can be interpreted as "Yes", then the column gets set to yes. Looking at the code, it can be one of: 'true','yes','y','1'. If the value isn't one of these, then it will be set to "No".
Last edited by davidfor; 04-24-2017 at 09:35 PM. |
04-25-2017, 02:08 AM | #229 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Davidfor is right, my status column is a Y/N column, I had naively expected that since the FFF plugin can transfer Completed to yes then the Import List would as well.
I'm pretty sure I can batch-edit in my CSV-file, I'm trying to figure out if I can do the same in the original SQLite file. Otherwise I'll have to create a new text column and then later add that information to the Yes/No I already have. Thanks to both of you. |
04-25-2017, 03:18 AM | #230 |
null operator (he/him)
Posts: 20,550
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
If you import the column into a text column as I suggested, then I think you should be able to use Bulk Search and Replace to populate the Y/N #status column based on the values in the #status_from_text column.
To my mind the values in column 6 look richer in terms of information content than a simple Y/N, so I would probably want to keep them, at least until the last minute. If I didn't want to keep them then I clear the column, then I'll have the column for next time I run a similar Import List. If you massage the original sql database or the csv file how would you save the process - sql procedures and excel macros come to mind. But with Bulk S&R you can save the S&R for reuse which is something you already know about. I'm not even sure SQLite has stored procedures or an equivalent - David will know. BR |
Advert | |
|
04-25-2017, 03:28 AM | #231 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Changing it in the CSV is simple. You can do it in a text editor or a spreadsheet application.
Depending on what else you have in the database, you can do an update to change from "Completed" to "Yes" and "In Progress" to "No". If you don't want to do that, you can do it in the SQL that gets the data from the original database with a CASE statement. Such as: Code:
SELECT Title, CASE Status WHEN 'Complete' THEN 'Yes' ELSE 'No' END as Status FROM thetable |
04-25-2017, 12:39 PM | #232 |
Groupie
Posts: 161
Karma: 1842
Join Date: Jan 2016
Device: Kobo Glo HD
|
Just for your information, while theming this plugin I saw that there is a unused browser.png icon inside.
Instead the plugin is using the store.png icon from calibre for the links to the webpages. (so maybe you should replace store by browser or delete browser.png) |
04-28-2017, 08:14 AM | #233 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Is there any way to add language as well? Into the standard language column in Calibre?
Or do I need a custom column for it? |
04-28-2017, 08:43 AM | #234 |
null operator (he/him)
Posts: 20,550
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
04-28-2017, 08:52 AM | #235 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
I've changed from English to En and then to Eng but it still doesn't picks up the language, I can't choose that column to import either.
|
04-28-2017, 09:18 AM | #236 |
null operator (he/him)
Posts: 20,550
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
@Tanjamuse try 'en' for English, 'de' for Deutsche, 'fr' for 'French", 'da' for you know what.
You may need to preprocess your csv to replace 'English' with 'en' etc. Do you mean 'language' is not in the list of available database columns ! BR |
04-28-2017, 09:24 AM | #237 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
Yes, under columns to import the Language column doesn't show up.
As you can see it should have shown up in between these columns. |
04-28-2017, 10:41 AM | #238 | |
null operator (he/him)
Posts: 20,550
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Quote:
BR |
|
04-28-2017, 11:59 PM | #239 |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
The plugin doesn't do anything with the language. I'm not sure why kiwidude didn't include it in the list of fields to be populated. It might just be the extra complexity of making sure the value are valid languages. I'll have a look if I hve time, but I won't promise anything.
|
04-29-2017, 03:25 AM | #240 |
Wizard
Posts: 1,327
Karma: 5306
Join Date: Jan 2014
Device: none
|
That would be very nice.
Thanks |
Tags |
column types |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Reading List | kiwidude | Plugins | 1315 | 04-11-2024 12:37 AM |
[GUI Plugin] Manage Sony x50 Reader Book List | kpw | Plugins | 170 | 10-02-2014 08:23 PM |
Import List plugin idea thread | kiwidude | Development | 45 | 08-13-2012 06:05 AM |
[GUI Plugin] WebOS Kindle-Import | CranstD | Plugins | 0 | 01-24-2012 03:36 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 12:27 PM |