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-15-2022, 10:40 AM   #16
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
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.
I tested it. Changing only the case of an author or series changes it for all books. The same for all the other columns I mentioned in post #13.

The reason that only one case version can exist in the database is the one DaltonST gave in post 4. The database is configured to ignore case when selecting/joining. Given that design choice, only two behaviors are possible when entering a value that differs only in case: use the existing case or use the new case.
chaley is offline   Reply With Quote
Old 06-15-2022, 10:48 AM   #17
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,064
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
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.
I have many books I have have 2 versions of the same Author.
Author and Author (ed)
theducks is offline   Reply With Quote
Advert
Old 06-15-2022, 01:06 PM   #18
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,054
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by chaley View Post
I tested it. Changing only the case of an author or series changes it for all books. The same for all the other columns I mentioned in post #13..
I understand why that is. Obviously I've only ever changed spellings before and not case so I didn't realise initially why 48 extra books showed as modified when I happened to edit the tag case on a book I'd just added.

Actually historically case is comparatively recent in Western Europe enabled by adoption of miniscule script invented by Irish monks and made widespread by Charles the Great of the Franks (Charlemagne). Many languages still don't really have it. I think German maybe capitalises nouns more often than English.

I'll only edit case only in a shared field if it really needs it, I think e e cummings is the only author I know not using Title Case. If its someone with a von or similar I don't mind all the instances updating if they where Somename Von Somebody and I change it to von. Names of books imported with a middle de can be inconsistent; would case of first or last import win?

I don't mind how the tags and case insensitivity works. Some how I've managed to use Calibre for years and not notice this. I just initially couldn't understand what had happened!
Quoth is offline   Reply With Quote
Old 06-15-2022, 01:24 PM   #19
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,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Quoth View Post
I installed "Last Modified", but I can't see how I should configure it to ignore tag edits.
I think it's these two options, if you mean editing from the tag browser
Attached Thumbnails
Click image for larger version

Name:	2022-06-15 14_23_17-Settings.png
Views:	304
Size:	10.2 KB
ID:	194387  
ownedbycats is offline   Reply With Quote
Old 06-15-2022, 01:34 PM   #20
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,054
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by ownedbycats View Post
I think it's these two options, if you mean editing from the tag browser
Where is that Settings menu?
Quoth is offline   Reply With Quote
Advert
Old 06-15-2022, 01:36 PM   #21
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,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Quoth View Post
Where is that Settings menu?
There's a 'Last Modified' option to add to the menus.
Attached Thumbnails
Click image for larger version

Name:	2022-06-15 14_37_03-calibre - Preferences - Toolbars & menus.png
Views:	335
Size:	68.4 KB
ID:	194389  
ownedbycats is offline   Reply With Quote
Old 06-15-2022, 02:10 PM   #22
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
Names of books imported with a middle de can be inconsistent; would case of first or last import win?
Oh yes, 'de' etc can be maddening. Is it a particle (de) or just part of someone's name (De)? Is the person living, and if so how do they spell it? I have seen long arguments about whether to use Charles De Gaulle or Charles de Gaulle. One side argues that it isn't a title and so should be De. Others say the opposite. Aaargh.

As for imports, I suspect from looking at the code that what's in the database would win (first import) but I haven't ever tested it.
chaley is offline   Reply With Quote
Old 06-15-2022, 02:19 PM   #23
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,054
Karma: 105092227
Join Date: Jun 2017
Location: Ireland
Device: All 4 Kinds: epub eink, Kindle, android eink, NxtPaper
Quote:
Originally Posted by ownedbycats View Post
There's a 'Last Modified' option to add to the menus.
Yes. I added Last Modified to the Menu & toolbar etc. But clicking on it after restart had no settings or checkboxes.
Quoth is offline   Reply With Quote
Old 06-15-2022, 02:29 PM   #24
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,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by Quoth View Post
Yes. I added Last Modified to the Menu & toolbar etc. But clicking on it after restart had no settings or checkboxes.
Click image for larger version

Name:	2022-06-15 15_28_42-Last Modified Dialog.png
Views:	66
Size:	14.2 KB
ID:	194391
ownedbycats is offline   Reply With Quote
Old 06-15-2022, 07:19 PM   #25
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 893
Karma: 810834
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
Quote:
Originally Posted by ownedbycats View Post
There's a 'Last Modified' option to add to the menus.
It's a "last modified" plugin because I don't see it in my calibre.
I answer myself, if it is a plugin

Last edited by dunhill; 06-15-2022 at 07:20 PM. Reason: search plugin
dunhill is offline   Reply With Quote
Old 06-15-2022, 07:25 PM   #26
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,977
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Yes, it's a plugin. Follow the quoted posts and it's mentioned.
ownedbycats is offline   Reply With Quote
Old 06-15-2022, 08:45 PM   #27
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,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
I have a vague memory of someone telling me that the reason the built-in last_modified date exists and behaves as it does is/was related to synchronising the metadata in a calibre library with the metadata on devices.

BR
BetterRed is offline   Reply With Quote
Old 06-15-2022, 10:37 PM   #28
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 BetterRed View Post
I have a vague memory of someone telling me that the reason the built-in last_modified date exists and behaves as it does is/was related to synchronising the metadata in a calibre library with the metadata on devices.
I don't know of any devices that do that. But, it wouldn't be unreasonable to. And I considered it for the KoboTouch driver. The issue is knowing when the device was last connected. That isn't stored anywhere. There is a last connection date in the driveinfo.calibre file, but, it is updated as soon as the device is connected. Which isn't useful for working out the changes since the last time the device was connected.

But, the modified date is used as part of the backup of metadata to the OPF files in the book directories. Changing a tag like has been discussed will trigger the update of the modified date and then OPFs to be updated.
davidfor is offline   Reply With Quote
Old 06-16-2022, 01:46 AM   #29
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,731
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by davidfor View Post
I don't know of any devices that do that. But, it wouldn't be unreasonable to. And I considered it for the KoboTouch driver. The issue is knowing when the device was last connected. That isn't stored anywhere. There is a last connection date in the driveinfo.calibre file, but, it is updated as soon as the device is connected. Which isn't useful for working out the changes since the last time the device was connected.

But, the modified date is used as part of the backup of metadata to the OPF files in the book directories. Changing a tag like has been discussed will trigger the update of the modified date and then OPFs to be updated.
I can't see a last_modified date element in the book metadata,opf file. So, what is the database last_modified value compared against to trigger the write of a fresh book data metadata.opf file?

I added 'calibre' as a tag to the Quick Start Guide at 2022-06-16 15:05:54, but I can't see anything like that date in the .opf.

Click image for larger version

Name:	Screenshot 2022-06-16 150901.jpg
Views:	547
Size:	348.1 KB
ID:	194397

Its not the file system date_modified either. I changed that to 2022-07-16, and then added another tag - and a fresh opf file was written.

Click image for larger version

Name:	Screenshot 2022-06-16 152543.jpg
Views:	80
Size:	353.6 KB
ID:	194398

BR

Last edited by BetterRed; 06-16-2022 at 01:56 AM.
BetterRed is offline   Reply With Quote
Old 06-16-2022, 02:52 AM   #30
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 BetterRed View Post
I can't see a last_modified date element in the book metadata,opf file. So, what is the database last_modified value compared against to trigger the write of a fresh book data metadata.opf file?

I added 'calibre' as a tag to the Quick Start Guide at 2022-06-16 15:05:54, but I can't see anything like that date in the .opf.

Attachment 194397

Its not the file system date_modified either. I changed that to 2022-07-16, and then added another tag - and a fresh opf file was written.

Attachment 194398

BR
I have never looked for the last modified date in the OPF. And with the way calibre handles it, it would make no sense. If you needed to use these to rebuild your library, the last modified date would be set to the current time. Or when the book was added to the rebuild library.

But, that wasn't really what I was meaning. Triggering writing of the OPF is done when the metadata is change. The data gets marked as "dirty", the modified time is updated and then the book is put into the queue for the backup. If you do a lot of changes quickly, such as changing a common tag, you can see the the last thing happening in the "Library metadata backup status" under "Library Maintenance". That shows how many are to be written.
davidfor 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 05:28 PM.


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