Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-29-2012, 06:09 AM   #1
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,648
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Copy columns

How can I copy one column to another

Specifically I want to copy the standard Calibre column Modified (last_modified) which is a date, to a Custom Column MyModified (mymodified) which is a date.

I want it do it to all books in the library

thanks BR

ps : I have the feeling this is a question to which I once knew the answer
BetterRed is offline   Reply With Quote
Old 11-29-2012, 06:40 AM   #2
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: 30,925
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 BetterRed View Post
How can I copy one column to another

Specifically I want to copy the standard Calibre column Modified (last_modified) which is a date, to a Custom Column MyModified (mymodified) which is a date.

I want it do it to all books in the library

thanks BR

ps : I have the feeling this is a question to which I once knew the answer
did you peek at search and replace in bulk meta-edit?
theducks is online now   Reply With Quote
Advert
Old 11-29-2012, 07:05 AM   #3
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,648
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by theducks View Post
did you peek at search and replace in bulk meta-edit?
It only seems to deal with strings - eg in Title replace "Pirate" with "Pilate"

Or am I missing something

BR
BetterRed is offline   Reply With Quote
Old 11-29-2012, 07:20 AM   #4
mbovenka
Wizard
mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.mbovenka ought to be getting tired of karma fortunes by now.
 
Posts: 2,075
Karma: 14079267
Join Date: Oct 2007
Location: Almere, The Netherlands
Device: Kobo Sage
Quote:
Originally Posted by BetterRed View Post
It only seems to deal with strings - eg in Title replace "Pirate" with "Pilate"

Or am I missing something

BR
Yes Set the 'Search mode' to 'Regular Expression' and be amazed at what you can do with it.

Read this for info on REs.
mbovenka is offline   Reply With Quote
Old 11-29-2012, 08:58 AM   #5
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: 30,925
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 BetterRed View Post
It only seems to deal with strings - eg in Title replace "Pirate" with "Pilate"

Or am I missing something

BR
Lots

Mbovenka beat me.
(.+) in the source
\1 into the destination
theducks is online now   Reply With Quote
Advert
Old 11-29-2012, 10:20 AM   #6
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,648
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Thanks mbovenka

I already wrote a SQL script (I'm better at them than I am at RE's) - it seems to have worked. And I will understand it tomorrow when I'll adapt it to copy from last weeks database last_modified to this weeks database mymodified where this weeks last_modified is a 2012-11-24 13:21:35

I thought there was a simple way to copy like typed fields, I must have dreamt it.

BR
BetterRed is offline   Reply With Quote
Old 11-29-2012, 06:33 PM   #7
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: 30,925
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 BetterRed View Post
Thanks mbovenka

I already wrote a SQL script (I'm better at them than I am at RE's) - it seems to have worked. And I will understand it tomorrow when I'll adapt it to copy from last weeks database last_modified to this weeks database mymodified where this weeks last_modified is a 2012-11-24 13:21:35

I thought there was a simple way to copy like typed fields, I must have dreamt it.

BR
You are ignoring my solution???
theducks is online now   Reply With Quote
Old 11-29-2012, 09:39 PM   #8
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,648
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Thumbs up

Quote:
Originally Posted by theducks View Post
You are ignoring my solution???
I don't think I am mate, but cryptic crossword puzzles aren't my cup of tea.

I've done what I wanted via an SQL Script. Read last_modified from last fridays metadata.db and wrote it to #mymodified in the current metadata.db.

Maybe a Bulk Metadata Edit RegExp could have done that - read one instance of a database and written to another - with a different schema - but I had neither the time or inclination to figure out how - considering the SQL tools & skills I have 'at my fingertips'.

So, I now have what I set out to do yesterday - a #mymodified TIMESTAMP column populated with the last_modified TIMESTAMP column as of last Friday. When I want to change a #mymodified value, I would normally also change the #bookstatus value; I already do that via metadata edit, so its no hardship to click the Set 'My Modified' to today button, which btw also updates the time element

I am wondering if my 'problem' had something to do with the fact that I start calibre in View Managers Default configuration which up until half an hour ago had last_modified as its secondary sort field. I have the impression that not many of us use View Manager, and even fewer sort on a custom column (#bookstatus) and last_modified date (now changed to #mymodified).

For me at least this matter is resolved

BR

Last edited by BetterRed; 11-29-2012 at 11:15 PM. Reason: spelling error
BetterRed is offline   Reply With Quote
Old 11-30-2012, 03:59 AM   #9
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: 30,925
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
theducks is online now   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Copy to Libary (delete after copy)" - Placement Suggestion plib Library Management 8 07-17-2012 09:53 PM
Columns raiderkilo Calibre 5 01-21-2012 05:53 PM
Columns darkpoet ePub 8 09-09-2009 10:17 PM
soft copy vs. hard copy no more. smokey News 4 12-02-2007 02:57 PM
gmail copy (gmcp) - Perl script to copy files to/from Gmail Colin Dunstan Lounge 0 09-04-2004 01:24 PM


All times are GMT -4. The time now is 06:37 AM.


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