Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-15-2011, 07:48 AM   #1
Robmonster
Wizard!
Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 521000
Join Date: Nov 2011
Device: Kindle 4 and Paperwhite
Search And Replace using Series value?

Hi there,

I would like to retitle some items in my library so that the name is suffixed with the contents of the Series field.

Is this possible to do? It looks like it should be a simple job, presumably I need some tag or other to put into the Replace field that substitutes the series data..?

Rob
Robmonster is offline   Reply With Quote
Old 11-15-2011, 09:11 AM   #2
chaley
"chaley", not "charley"
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: 5,193
Karma: 821512
Join Date: Jan 2010
Location: France
Device: Many android devices
The first question is why? What are you trying to do? There might be a better way to accomplish whatever that is. For example, if you want to do this because it will be better on your device, metadata plugboards could be a better answer.

Assuming you really want to do this, then there are two ways, both using bulk metadata search replace. Both use regular expression mode. First, back up your library in case something goes wrong. Next, select the books to change, then:

Method 1:
Source field: series
Destination field: title
Search for: (.*)
Replace with: whatever you want to add after the title, with \1 standing in for the series name
Mode: append to field.
Split result: unchecked

Method 2:
Source field: {template}
Template: {title} - {series} (or whatever you want the result to look like)
Destination field: title
Search for: empty
Replace with: empty
Mode: Replace field

In both cases, check the test results to be sure that you are getting the result you wish.
chaley is offline   Reply With Quote
 
Enthusiast
Old 11-15-2011, 10:18 AM   #3
Robmonster
Wizard!
Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 521000
Join Date: Nov 2011
Device: Kindle 4 and Paperwhite
Thanks for the reply.

Here is what I am trying to do, perhaps you can suggest a better way of going about it.

I have downloaded an archive of archives from a chess website called Novice Nook. They zip up PDF's of their monthly column. When I drag the PDF's into Calibre they all come in titled 'Novice Nook'. ( I have to tell calibre to allow duplicates or else I just get one book added to the library)

Ultimately I want them all the be named in a way that shows which year and month the article is from. I thought I would use the series feature since that easily gives each one a unique number assuming I create a series for each year. I had then hoped to use the Search And Replace feature on the title field to change the titled from 'Novice Nook' to 'Novice Nook 2010 1' or something similar.

The Series feature worked quite happily, automatically numbering the articles so my series field now reads 2010 1, 2010 2 and so on. I couldn’t find any way of automatically renaming them though, so I've been manually re3naming each in turn which is time consuming.

My initial plan was to quickly get the series data entered ad then Search And Replace the Title fields all in one go.

I've only just started using Calibre so there is probably a much better way to do this that I do not yet know about.

Rob
Robmonster is offline   Reply With Quote
Old 11-15-2011, 10:36 AM   #4
theducks
Grand Sorcerer
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: 14,439
Karma: 5560777
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
@robomonster
Have you looked at the "Manage Series" Plugin?

Have you thought about Title - Author naming (Duplicate name Issue)?
I ended up including mm yyyy in the title for my Analog collection to avoid that problem. (Series index is used to sort within a year)
theducks is online now   Reply With Quote
Old 11-15-2011, 10:39 AM   #5
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by Robmonster View Post
My initial plan was to quickly get the series data entered ad then Search And Replace the Title fields all in one go.
Magazines and similar items issued monthly are a good candidate for what you want to do. I do something similar for some magazines I collect, and the recipe system also inserts the date into the title of most newspapers and magazines.

I'd suggest chaley's second option and set the template as:
Code:
Template: {title} - {series} {series_index}
You can then save this 'search and replace' for reuse at some later time. You might also find that a recipe could be written to do this automatically (fetch the books on a scheduled basis).
Starson17 is offline   Reply With Quote
Old 11-15-2011, 10:43 AM   #6
Starson17
Wizard
Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.Starson17 can program the VCR without an owner's manual.
 
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
Quote:
Originally Posted by theducks View Post
I ended up including mm yyyy in the title for my Analog collection to avoid that problem. (Series index is used to sort within a year)
This is how I do it. The series is the year, the index is the month. I've got a search and replace that replaces month numbers with month names and adds the series(year) and month(number converted to name) to the title.

I need to look at the "Manage Series" plugin.
Starson17 is offline   Reply With Quote
Old 11-15-2011, 10:45 AM   #7
Robmonster
Wizard!
Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.Robmonster ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 521000
Join Date: Nov 2011
Device: Kindle 4 and Paperwhite
Quote:
Originally Posted by theducks View Post
@robomonster
Have you looked at the "Manage Series" Plugin?

Have you thought about Title - Author naming (Duplicate name Issue)?
I ended up including mm yyyy in the title for my Analog collection to avoid that problem. (Series index is used to sort within a year)
Than you, I'll have a look at that plugin when I get home,

The author of this column is always the same person, so I do not think that would get around the duplicate problem, unless I have misunderstood what you mean.

Rob
Robmonster is offline   Reply With Quote
Old 11-15-2011, 10:59 AM   #8
theducks
Grand Sorcerer
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: 14,439
Karma: 5560777
Join Date: Aug 2009
Location: The (original) Silicon Valley, USA
Device: Galaxy Tab 2, Astak Pocket Pro, K4NT
Quote:
Originally Posted by Robmonster View Post
Than you, I'll have a look at that plugin when I get home,

The author of this column is always the same person, so I do not think that would get around the duplicate problem, unless I have misunderstood what you mean.

Rob
Duplicate detection issue is when Both match.

Analog - Various << has issues
Analog 06 2000 - Various << has none
theducks is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Search and replace TdeV Sigil 1 10-30-2011 04:45 PM
search and replace - drops blanks in replace ? cybmole Conversion 10 03-13-2011 03:07 AM
Setting series index in bulk metadata search&replace bubak Calibre 4 12-19-2010 04:04 PM
Search and replace in 0.2.0 paulpeer Sigil 7 03-13-2010 11:59 AM
Why no search and replace? charleski Sigil 10 11-24-2009 04:13 PM


All times are GMT -4. The time now is 08:27 PM.


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