|
|
Thread Tools | Search this Thread |
10-26-2011, 01:13 PM | #1 |
Connoisseur
Posts: 52
Karma: 8860
Join Date: Jul 2009
Location: Madrid, Spain, EU
Device: Sony PRS-505, Sony PRS-T1, Sony PRS-T3
|
Custom column: "Updated date", when adding new "versions" of the same file?
I am trying to create a custom column that allows me to sort my library by date, but taking into account "updated files" - With this I mean new versions of the same eBooks.
I'll try to exlain myself. My intention is to have a way to to track files that have been replaced by new "versions", or files with the same name, same author, same format..., to be able to review them after adding them, as often they have improved metadata etc. That will enable me to "put them together" by sorting them by this "updated date" column. The current problem is that when these new "versions" are added to the library they are just merged but the "date" and the "modified" fields do not change, so these eBooks are difficult to review after adding new files - you have to manually search for each one of them. Any ideas on how to do this, or any alternative ideas on how to do what I intend to do? Thanks in advance, sorry for my limited command of English and greetings from sunny Spain. |
10-26-2011, 03:47 PM | #2 | |
Well trained by Cats
Posts: 30,315
Karma: 58000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
If you make a change via the side or back doors, then, no the modified does not get bumped. Side door: Open With PI, Tweak Epub Backdoor: Open Folder, direct edits I keep a column "Edited Date just for cases (requires a Manual click of the Today button in the Metadata Editor). |
|
Advert | |
|
10-27-2011, 05:51 AM | #3 | |
Connoisseur
Posts: 52
Karma: 8860
Join Date: Jul 2009
Location: Madrid, Spain, EU
Device: Sony PRS-505, Sony PRS-T1, Sony PRS-T3
|
Quote:
The problem is that that is not quite so: when adding a new "version" of the same eBook the modified date does NOT change (as it doesn't, for example, when reloading an existing eBook file), and therefore I can not (semi)automatically follow up those updated files. Well, since this "last time file added" field doesn't seem to be easily accessible I'll guess I'll have to go on living without this version tracking! Last edited by enriquep; 10-27-2011 at 07:14 AM. |
|
10-27-2011, 07:26 AM | #4 | |
Well trained by Cats
Posts: 30,315
Karma: 58000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Just passing through using the Previous/next buttons bumps it (no other change performed). BTW Modified is a default column that is not shown by default (right click on a column and set it to show). It updates on the Departure from the current Library record, not while editing (which may get canceled). Sorting the column, brings the most current change to the (trailing/leading) edge of the date grouping. |
|
10-27-2011, 11:11 AM | #5 | |
Connoisseur
Posts: 52
Karma: 8860
Join Date: Jul 2009
Location: Madrid, Spain, EU
Device: Sony PRS-505, Sony PRS-T1, Sony PRS-T3
|
Quote:
Calibre is my default app for ePub files, so I double click on xxxxx.epub, and it is just added and automerged; I have "Overwrite existing" selected by default, so the warning popup appears. I click OK - and that's it. End of the story. If the file I have just added is a new "version" of an existing file and I now sort my library by "Modified">"Descending" the file I have just added will not be at the top of the list. I've just checked (again) a few seconds ago. I don't know if the Preserve the date when using the "Copy to library" action to copy books between libraries setting (Also in the "Adding books" tab) can have anything to do with this, but I've experimented and have not observed any changes. And, yes, we're talking of the same "Modified" Column, the one that does not appear by default. The whole story, in short, is that very often I add improved versions of existing books - mainly with minor spelling / editing errors: The "new" versions are usually very similar to the "old" ones. In 99% of cases with no changes in title / author spelling and in 95% of cases with no changes in cover or metadata. When they DO have minor changes in title or author there is no problem, because they show up as "new" books (and it is my problem to detect them as duplicates), but when they don't they just seem to replace the existing version (and in fact they do: I do number versions within the book and check occassionally, the process works OK) BUT, for some reason, Calibre seems to ignore that the file has been updated. The "new" file can exceptionally have the same name as the old one by mistake, but even when it doesn't (usually they are appended with version code, vx.x) there's no change in "updated" column, no change anywhere. Since I don't edit all the new versions (we are a group of people who, as a hobby, adapt Spanish classics to a strict ePub standard) I like to review all the newly versioned files - for example, to see if the cover has been changed (not common, but can happen) and, if so, to make it Calibre's default. But now (and since there is no way to "automatically" know what files have been replaced) I have to stop adding files every time the warning popup appears, manually search for the file, check, and then continue adding files. Last edited by enriquep; 10-27-2011 at 12:50 PM. |
|
Advert | |
|
10-27-2011, 11:58 AM | #6 | |
Well trained by Cats
Posts: 30,315
Karma: 58000000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Quote:
Your work flow could be considered 'front door' or 'side door' (because the O/S called for Calibre to process the file) usage of Calibre: the developer crew will have to call this one |
|
10-27-2011, 01:50 PM | #7 |
Connoisseur
Posts: 52
Karma: 8860
Join Date: Jul 2009
Location: Madrid, Spain, EU
Device: Sony PRS-505, Sony PRS-T1, Sony PRS-T3
|
Thanks for your time, theducks.
Let's see if someone with my workflow has experienced my "problem" or can think of a workaround |
10-28-2011, 05:04 AM | #8 |
Grand Sorcerer
Posts: 11,914
Karma: 7076769
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
The "modified" date is the date the metadata was modified. Adding or modifying a format does not change the metadata, so it does not change the date.
You can get the date that the formats are modified using the formats_modtimes template function. This list is sorted so that the latest change is the first item in the list (accidentally today, guaranteed with the next release). As such, a composite custom column (column made from other columns) containing the following template will show you the date and time of the most recently modified format. Code:
{:'re(list_item(formats_modtimes('iso'), 0, ','), '^.*?:', '')'}
|
10-28-2011, 06:33 AM | #9 | |
Connoisseur
Posts: 52
Karma: 8860
Join Date: Jul 2009
Location: Madrid, Spain, EU
Device: Sony PRS-505, Sony PRS-T1, Sony PRS-T3
|
Quote:
Now.. if only... and while you're here... I am really interested in being able to sort the files by the order in which new formats were added, but not so much in all the details of the date, hour, minute, second, milisecond and nanosecond when that happenned in GMT - that I'm not saying that it is not VERY interesting, only that in my particular case... In other words: How can I modify that Code:
{:'re(list_item(formats_modtimes('iso'), 0, ','), '^.*?:', '')'} Thanks again and greetings from sunny Madrid, Last edited by enriquep; 10-28-2011 at 06:35 AM. Reason: Minor code fix |
|
10-28-2011, 07:57 AM | #10 |
Grand Sorcerer
Posts: 11,914
Karma: 7076769
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
You need at least yyyy mm dd to make sorting work. The column is sorted by the string you are seeing, not the real date underneath it, so the order of the date components is important.
Try Code:
{:'re(list_item(formats_modtimes('yyyy-MM-dd'), 0, ','), '^.*?:', '')'} And you are welcome. |
10-28-2011, 08:24 AM | #11 | |
Connoisseur
Posts: 52
Karma: 8860
Join Date: Jul 2009
Location: Madrid, Spain, EU
Device: Sony PRS-505, Sony PRS-T1, Sony PRS-T3
|
Quote:
Code:
{:'re(list_item(formats_modtimes('dd/MM/yy'), 0, ','), '^.*?:', '')'} Thanks again. Last edited by enriquep; 10-28-2011 at 09:38 AM. Reason: Adding modification used for "Spanish" variation. |
|
10-28-2011, 09:53 AM | #12 |
Grand Sorcerer
Posts: 11,914
Karma: 7076769
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Does the column sort correctly? My guess is no, although it might if you chose "Date sort" when you created the custom column. If you chose text, or if the 'meaning' of the number cannot be determined, then the sort will be wrong. For example, when sorting ascending, 10 Oct 2011 (10/10/11) will come before 12 June 2011 (12/06/11) because 10 is less than 12. The fact that October is larger than June will be ignored.
|
10-28-2011, 11:09 AM | #13 | |
Connoisseur
Posts: 52
Karma: 8860
Join Date: Jul 2009
Location: Madrid, Spain, EU
Device: Sony PRS-505, Sony PRS-T1, Sony PRS-T3
|
Quote:
Now the problem I have, and am trying to solve, is that if I add a new file now it does appear somewhere within today's files, mixed with the files that I added, say, a few hours ago - in an apparently random way but not necessarily at the top of the list... My fault: because I didn't include any timestamp (to be honest: I removed it) and because my files come in "working peaks", sometimes quite a few in the same day. So I've thought of to appending "hour:minutes" to the date tag; that will surely be enough, as I'm certain that I will not add more than one file within the same minute!!. |
|
10-28-2011, 11:31 AM | #14 |
Grand Sorcerer
Posts: 11,914
Karma: 7076769
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Sorry, the only way to get the time into the string is to use the complicated 'iso' format. The problem you are having is the reason I chose iso to begin with.
|
10-28-2011, 12:06 PM | #15 | |
Connoisseur
Posts: 52
Karma: 8860
Join Date: Jul 2009
Location: Madrid, Spain, EU
Device: Sony PRS-505, Sony PRS-T1, Sony PRS-T3
|
Quote:
I'll stop trying all sort of stupid code combinations and take your word: That's why you're a Wizard, after all |
|
Tags |
custom column, dates, file versions |
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
"Date Added" custom column? | cheechwhiz | Library Management | 1 | 08-20-2011 10:25 AM |
Can't clear "custom" date field? | joegearhart | Calibre | 5 | 12-20-2010 03:32 AM |
Adding a "read" column | French | Calibre | 3 | 08-21-2010 12:29 PM |