Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-14-2022, 11:04 AM   #1
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,045
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Modified Date on Titles.

I updated two books this morning, but next time I opened Calibre in the afternoon I didn't see them at the top when I clicked on "Modified" Column.

It was because they now show as oldest of 50 books modified TODAY and many of those titles not touched for ages!

What has happened?
Quoth is offline   Reply With Quote
Old 06-14-2022, 11:12 AM   #2
itimpi
Wizard
itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.itimpi ought to be getting tired of karma fortunes by now.
 
Posts: 4,553
Karma: 950151
Join Date: Nov 2008
Device: Sony PRS-950, iphone/ipad (Marvin/iBooks/QuickReader)
I have seen this if you accidentally change the case of a tag. All books using that tag will get their modified date updated.
itimpi is offline   Reply With Quote
Advert
Old 06-14-2022, 11:25 AM   #3
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,045
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
I changed "Short story" to "short story" on tag on one book. I see all 48 extra ones have "short story" as one of the tags. This seems like strange behaviour. Would it change the "short story" tag to novella on ALL books if I edited one book/title?
Also it's only one of the tags on those books.

Is there some logic to this I don't understand? If I edit a Series name or a Collection name it doesn't change all the books with the original match unless I select all the matching books and do Edit Meta data in Bulk.

I don't like this behaviour. Your explanation certainly seems correct.
Quoth is offline   Reply With Quote
Old 06-14-2022, 02:57 PM   #4
DaltonST
Deviser
DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.DaltonST ought to be getting tired of karma fortunes by now.
 
DaltonST's Avatar
 
Posts: 2,265
Karma: 2090983
Join Date: Aug 2013
Location: Texas
Device: none
collate nocase

In SQLite, you can indicate that a column should be case insensitive when you create the table by specifying collate nocase in the column definition.

Tags have always been 'collate nocase' in Calibre.


DaltonST
DaltonST is offline   Reply With Quote
Old 06-14-2022, 03:00 PM   #5
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,220
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by Quoth View Post
I changed "Short story" to "short story" on tag on one book. I see all 48 extra ones have "short story" as one of the tags. This seems like strange behaviour. Would it change the "short story" tag to novella on ALL books if I edited one book/title?
Also it's only one of the tags on those books.
Tags are not tied to a book. And yes, if you modify a tag, the modified tag will show on all books that use that tag and the modified date for all books using that tag will change.

So if you edited short story to novella as a tag on one book, it would edit the tag for all books using that tag. Adding a new tag (novella) and deleting the old tag (short story) from the book is the procedure I follow.
DNSB is offline   Reply With Quote
Advert
Old 06-14-2022, 03:08 PM   #6
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,045
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Right, now I know. Delete and add, don't edit.

Thanks, DNSB
Quoth is offline   Reply With Quote
Old 06-14-2022, 04:15 PM   #7
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Quoth View Post
Right, now I know. Delete and add, don't edit.

Thanks, DNSB
If I am following the thread correctly, that won't do what you want.

The "problem" is that as DaltonST points out, there can be at most one instance of a tag with a given spelling, ignoring case. If you delete the tag from a book then add it with a new case then if that tag exists on other books with different case then the tag will also change its case. You have only 2 choices:
  • use the existing tag (with its letter case) so nothing changes other than adding the tag to the book.
  • use the same spelling with different letter case, in which case the tag will change on all books with that tag.
To do what it seems you want then you must change its spelling.

I think there is zero chance that this behavior will change.
chaley is offline   Reply With Quote
Old 06-14-2022, 08:40 PM   #8
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,905
Karma: 47303824
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by chaley View Post
If I am following the thread correctly, that won't do what you want.

The "problem" is that as DaltonST points out, there can be at most one instance of a tag with a given spelling, ignoring case. If you delete the tag from a book then add it with a new case then if that tag exists on other books with different case then the tag will also change its case. You have only 2 choices:
  • use the existing tag (with its letter case) so nothing changes other than adding the tag to the book.
  • use the same spelling with different letter case, in which case the tag will change on all books with that tag.
To do what it seems you want then you must change its spelling.

I think there is zero chance that this behavior will change.
This is one of the few points I strongly disagree with Kovid about calibre behaviour. That and updating the modified timestamp for all books when adding or removing a custom column. Both go against everything I've ever done with database migrations and updating. I have spent to much time turning off the automatic updating while modifying the database schema to agree with this.

@Quoth: There is option or tweak that related to this. If you set it, it is a little harder to accidentally change the case of a tag in the metadata editor. Unfortunately, I can't quickly see what it is. I think I have it set at home, so I'd have to check there.
davidfor is offline   Reply With Quote
Old 06-14-2022, 09:14 PM   #9
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,726
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
There are some tools in the JobSpy PI that wrangle the Modified Date.

Click image for larger version

Name:	Screenshot 2022-06-15 105302.jpg
Views:	356
Size:	158.9 KB
ID:	194374

And there's a Last Modified plugin from capink

That's as much as I know about them.

When I realised how calibre's Modified Date was used I decided to ignore its existence. In one of my libraries I have a Last Changed Date column, I edit metadata in the book list which means its easy to tab into that column and hit '=' when I deem it worthwhile.

BR
BetterRed is online now   Reply With Quote
Old 06-15-2022, 12:45 AM   #10
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by BetterRed View Post
And there's a Last Modified plugin from capink
Personally, I use this. It's very customizable and you can temporarily disable it when needed (e.g. making a change to every book in the library).
ownedbycats is offline   Reply With Quote
Old 06-15-2022, 07:28 AM   #11
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,045
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Ah, so deletion & adding will STILL modify ALL the books with case-sensitive string match for the tag. Strange behaviour!
Quoth is offline   Reply With Quote
Old 06-15-2022, 07:35 AM   #12
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,045
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by BetterRed View Post
And there's a Last Modified plugin from capink
I installed "Last Modified", but I can't see how I should configure it to ignore tag edits.

Also what if I wanted the the same tag text in two or more variations of case? I don't understand why the tag editing behaves like this. No other column does?
Quoth is offline   Reply With Quote
Old 06-15-2022, 08:36 AM   #13
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by Quoth View Post
Also what if I wanted the the same tag text in two or more variations of case?
You can't.
Quote:
I don't understand why the tag editing behaves like this. No other column does?
All many-to-(one/many) calibre columns have this behavior. Examples: authors, series, tags, publisher, custom tags-like columns, custom text shown in tag browser, custom series columns, and custom enumerations. Custom composite columns do not share this behavior because their value is not stored in the database.
chaley is offline   Reply With Quote
Old 06-15-2022, 10:00 AM   #14
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,062
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by Quoth View Post
Ah, so deletion & adding will STILL modify ALL the books with case-sensitive string match for the tag. Strange behaviour!
It is a Relational Database, so it is not strange.

When you add a new tag, its name goes into the 'Tags' table and it is assigned an index-number. To make data management/searching easy, the entry is normalized (case insensitive).

All the books refer to that Index-Number.
FWIW almost all other lookup equipped fields do similar (just no case insensitivity).
theducks is offline   Reply With Quote
Old 06-15-2022, 10:26 AM   #15
Quoth
Still reading
Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.Quoth ought to be getting tired of karma fortunes by now.
 
Quoth's Avatar
 
Posts: 14,045
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
I spent 20+ years designing & implementing Relational databases. The difference in how tags work vs editing a Series name or an Author name isn't inherent to using SQL, it's a design decision. It could create a new entry in the tag table rather than change the entry, that naturally all the titles use. I've not seen this behaviour on other columns. There may be sound logic to it. I don't really use tags and thus I haven't thought about it.

Editing an Author or Series only changes the title being edited, though perhaps I've never ONLY edited the case and maybe that behaves the same.

Last edited by Quoth; 06-15-2022 at 10:29 AM.
Quoth is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Modified date column annoporci Calibre 5 06-04-2020 09:51 PM
Modified date Klaas Vaak Calibre 11 06-25-2017 11:55 PM
Can you search using Date Modified? Miss A Library Management 2 03-28-2013 11:59 PM
Date Added vs. Date Modified aglaia761 Calibre 5 11-28-2010 05:34 AM
Last Modified Date jjansen Calibre 1 09-12-2010 10:16 PM


All times are GMT -4. The time now is 06:47 PM.


MobileRead.com is a privately owned, operated and funded community.