View Single Post
Old 01-19-2011, 01:19 PM   #9
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,626
Karma: 857074
Join Date: Jan 2010
Location: France
Device: Many android devices
Quote:
Originally Posted by flopis View Post
By the way, the & character is not subject to search and replace, not even with \...
Is that a bug, or am I doing something wrong?
Are you trying to replace the & in an authors field?

S/R knows whether a field is a multi-value field or not. If a field is multi-valued, then S/R operates on one value at a time. The result of editing each individual value is written to the DB.

The separation character you see for authors is &. That character doesn't really exist, but is instead used to indicate the end of one author and the start of another. That is why you can't edit it -- it isn't there. The same thing is true for commas and tags.

There is no issue when editing single-value fields, such as title.

One of the reasons I supplied template input mode was to permit a multiple field to be operated on as a single string instead of as a set of values. If you use the template {authors} as the input field and authors as the output field, then you can add and remove & characters. This feature can be used to join names back together for some reason split apart, or to split authors into two (or more).

You don't need template mode to split an author. Just stick ' & ' (space ampersand space) somewhere in the middle of an author.
chaley is offline   Reply With Quote