Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 05-25-2016, 09:24 AM   #1
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Adding <something> to metadata automatically for 1000s of books?

I read a lot of non-fiction. In order to make my life a bit easier I have gotten a membership at a company doing summaries of books.

The problem is that all the summaries (epub) have the same title and author metadata as the original books, thus making a mess/"duplicates" in the library.

What is the easiest way to change a metadata field for many books?

I'm thinking adding "company & " to the beginning of all author-fields. (I want to keep what's there as well (if not, this would be easy of course).)

So, if the author field was "John Doe" I want it to become "company & John Doe".

It doesn't matter if I do this before, during or after importing them into my Calibre library.
patrik is offline   Reply With Quote
Old 05-25-2016, 10:22 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: 31,059
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 patrik View Post
I read a lot of non-fiction. In order to make my life a bit easier I have gotten a membership at a company doing summaries of books.

The problem is that all the summaries (epub) have the same title and author metadata as the original books, thus making a mess/"duplicates" in the library.

What is the easiest way to change a metadata field for many books?

I'm thinking adding "company & " to the beginning of all author-fields. (I want to keep what's there as well (if not, this would be easy of course).)

So, if the author field was "John Doe" I want it to become "company & John Doe".

It doesn't matter if I do this before, during or after importing them into my Calibre library.
Start by adding those books to an (empty) 'Intake" Library.
Use Bulk mode Search and Replace to APPEND, the extra Author or Title info

Author (& Company)
or
Title (Notes)

( stuff ) at the end does not seem to count in the sort field, thus the 2 would sort nearby
theducks is offline   Reply With Quote
Old 05-25-2016, 10:22 AM   #3
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Select all the books you want to change, and click Edit Metadata. The Bulk Edit Metadata dialog will pop up.

You can set specific fields in bulk, or use the Search & Replace tab for fine-grained control.
eschwartz is offline   Reply With Quote
Old 05-25-2016, 10:37 AM   #4
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Quote:
Originally Posted by theducks View Post
Start by adding those books to an (empty) 'Intake" Library.
Use Bulk mode Search and Replace to APPEND, the extra Author or Title info

Author (& Company)
or
Title (Notes)

( stuff ) at the end does not seem to count in the sort field, thus the 2 would sort nearby
You mean to create another (temporary) calibre library and import the books into it? Do the changes and then import those books into the main library?

I have tried allt the options I can find, and have searched the calibre manual, but I can't find anything about APPEND. Please advise.



Quote:
Originally Posted by eschwartz View Post
Select all the books you want to change, and click Edit Metadata. The Bulk Edit Metadata dialog will pop up.

You can set specific fields in bulk, or use the Search & Replace tab for fine-grained control.
Yes, but I can't find a way to append data, only replace. Am I missing something obvious?


Thanks,
patrik is offline   Reply With Quote
Old 05-25-2016, 10:47 AM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Yes, you certainly are.

Find: (.*)
Replace: \1 New Stuff


There is even a plain old "append" mode, but not a "prepend" mode.
eschwartz is offline   Reply With Quote
Old 05-25-2016, 11:05 AM   #6
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Quote:
Originally Posted by eschwartz View Post
Yes, you certainly are.

Find: (.*)
Replace: \1 New Stuff
Fantastic, that worked!

I tried to replace with "Company & \1" which did the preappend I prefer.


How would a typical Calibre user find out how to use this? Is this "regex"-syntax?

Quote:
There is even a plain old "append" mode, but not a "prepend" mode.
As with this "special" syntax, or as a choosable function somewhere where I have yet to find it?




A follow up question of sorts... what would be a good best practise to include these summaries in the ordinary library? Separate as a virtual library? Or simple as a (custom) shelf/category/gengre (as I do with all my books)?
Since I have 1000s of these summaries, I would prefer to not see them at all unless I specifically choose to.



Thanks a bunch!!
patrik is offline   Reply With Quote
Old 05-25-2016, 11:13 AM   #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: 31,059
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 patrik View Post
You mean to create another (temporary) calibre library and import the books into it? Do the changes and then import those books into the main library?

I have tried allt the options I can find, and have searched the calibre manual, but I can't find anything about APPEND. Please advise.

Yes, but I can't find a way to append data, only replace. Am I missing something obvious?

Thanks,

Yes, to a 'working' Library. Use Copy To Library (right click ), not import. All the metadata will be used

Append is a mode on a pulldown on the right of Bulk S&R
theducks is offline   Reply With Quote
Old 05-25-2016, 11:31 AM   #8
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Quote:
Originally Posted by theducks View Post
Yes, to a 'working' Library. Use Copy To Library (right click ), not import. All the metadata will be used
Hmm, I'm thinking of importing all the summary-books into my ordinary library, and selecting them all, and then do the pre-append.

How is to import them first into a separate library a better option? I know you are very experienced, so I'm probably missing something obvious again.


Quote:
Append is a mode on a pulldown on the right of Bulk S&R
Ahh, how I have searched for such an option.... not finding it.... but now I see it's there. The "trick" was that one has to change Search mode from character match to regular expression in order for the new dropdown-menu to appear.
patrik is offline   Reply With Quote
Old 05-25-2016, 11:39 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: 31,059
Karma: 60358908
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
The advantage is you don't have to deal with 'Duplicates' at initial import time, which was your whole reason for adding to Author (or Title). Keeping things separate when doing major operations also means less chance of, "Oops!"


Sorry,
I always use REGEX mode. Never thought to check the other modes
theducks is offline   Reply With Quote
Old 05-25-2016, 12:28 PM   #10
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by patrik View Post
Fantastic, that worked!

I tried to replace with "Company & \1" which did the preappend I prefer.


How would a typical Calibre user find out how to use this? Is this "regex"-syntax?
That is standard regex syntax as used in replacements. Less so when you are just searching.


Quote:
As with this "special" syntax, or as a choosable function somewhere where I have yet to find it?
Regular Expressions mode is kind of more powerful, as theducks elucidated.


Quote:
A follow up question of sorts... what would be a good best practise to include these summaries in the ordinary library? Separate as a virtual library? Or simple as a (custom) shelf/category/gengre (as I do with all my books)?
Since I have 1000s of these summaries, I would prefer to not see them at all unless I specifically choose to.



Thanks a bunch!!
I agree with theducks.
You can use a Virtual Library, tagging them all with "Summary" and separating those out, or go with a separate physical library.
But the primary difference will be not having to mess with duplicates when using separate physical libraries.
eschwartz is offline   Reply With Quote
Old 05-25-2016, 01:12 PM   #11
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 682
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Got it, Thanks! :-)
patrik is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Calibre not automatically adding books rhtq35h Library Management 42 11-01-2018 06:00 AM
Automatically adding books from a folder crissman Library Management 2 01-24-2015 05:36 PM
Automatically Adding books Canonshooter Calibre 5 06-29-2012 09:22 AM
Automatically remove tags when adding books garytshepherd Library Management 12 03-13-2012 11:16 AM
Metadata download - does it automatically search isbndb and Google books? OakIris Calibre 22 10-27-2010 12:54 AM


All times are GMT -4. The time now is 12:31 PM.


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