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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-23-2019, 04:31 PM   #1
meghane_e
Enthusiast
meghane_e began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Sep 2016
Device: Kindle
Bulk metadata Search/Replace: template function question

Happy New Year!
OK, I want to do a Bulk Edit/Replace on all of my anthologies to copy the list of individual authors from the authors field to my new column #various_authors. I've been trying to test it on a copy of one of the books. I tried the attached template function statement but nothing happens when I run it. Could I get some help on what it should be?

First step, I made a new column to put a list of authors in for an anthology using the "Ampersand separated text, shown in the Tag browser" choice in the "Preferences -> Make your own column" dialog. It works as expected for adding names manually, copy/pasting, etc. The tag/name manager browser works. Everything looks good.

Second step, I'm stuck on copying all the names to a new field (see the attached). Also what do I need to do to remove the individuals' names from authors, should I write a Template Function or can I still write it in the Metadata Search/Replace?

For future, can someone clarify when and how to use a single-function template {} vs a program: 'function()' in the Edit Metadata browser. I'm not finding the documentation clear on the specific differences using the template language in the Bulk Search/Replace and the Template Function browsers. The template language is the same but the info needed in the surrounding data fields is different. Thank you for any help!
Attached Thumbnails
Click image for larger version

Name:	2019-01-23 (3).png
Views:	37
Size:	44.1 KB
ID:	169260  

Last edited by meghane_e; 01-23-2019 at 04:35 PM.
meghane_e is offline   Reply With Quote
Old 01-24-2019, 03:50 AM   #2
BetterRed
null operator
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: 12,200
Karma: 10633638
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Try:

Click image for larger version

Name:	1.jpg
Views:	26
Size:	123.9 KB
ID:	169270

BR
BetterRed is offline   Reply With Quote
Old 01-24-2019, 05:37 AM   #3
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: 22,636
Karma: 22515576
Join Date: Aug 2009
Location: (The original) Silicon Valley, USA
Device: K4NT, Galaxy Tab A, Kobo Aura2
I think you want Step 2 to determine WHICH books get this treatment.
That is done BEFORE entering Bulk Mode MDE. A Search (criteria) is the typical way
Step 3 is Select All (results of #2)
Step 4 is the 'copying' of the old Authors -> #various_authors as BR has shown
Step 5(a,b) is to replace the old Authors with a severely truncated value. I use Editors_name (ed) or <Various> in the Authors field when the original list of Authors is >2 (I started using Calibre with A filename based reader device and needed a reasonable length file name)
theducks is offline   Reply With Quote
Old 01-24-2019, 10:32 PM   #4
meghane_e
Enthusiast
meghane_e began at the beginning.
 
Posts: 27
Karma: 10
Join Date: Sep 2016
Device: Kindle
Thanks! I did a regular search on "authors:#>2" and made the copy on those. That worked.
meghane_e is offline   Reply With Quote
Reply

Tags
bulk search & replace, metadata authors, template language

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bulk Metadata Edit search replace Question Paltieldav Library Management 5 03-01-2016 07:12 AM
Regex search and replace in bulk metadata help slantybard Library Management 7 08-20-2015 07:30 PM
Edit metadata in bulk vs search and replace inl1ner Library Management 6 07-14-2014 07:58 PM
Bulk search & replace question Capricorn Calibre 0 08-23-2013 06:12 AM
Bulk search and replace operations - question SFD1968 Calibre 1 03-01-2013 10:23 AM


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


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