Hi,
I have books that have ISBN but no amazon: (ASIN) identifiers. For only those books I would like to populate the amazon: ID to be the same value as the ISBN. Other combinations should not be changed.
What's the easiest way to accomplish this? Can it be accomplished with a search/replace and with a regular expression with
this post as a starting point? I'm thinking not because there doesn't seem to be a way to search for more than one identifier type - my logic is:
Code:
if isbn: has non-blank value and amazon: is blank
then amazon: = isbn:
Or is it the sort of thing I'd have to do with functions in template program mode? Not quite sure if single function mode could accomplish this or can it?
Incidentally, I've added custom columns ISBN & ASIN so I can easily see which books have these values poplulated: ISBN: {identifiers:select(isbn)} and ASIN: {identifiers:select(amazon)}
Would the contents of my custom columns make it any easier to populate the missing values? I guess maybe I'm asking if there's a way to specify the contents of the second column as exactly the value of the first iff ASIN is blank and have that reflect in the metadata ids section as amazon:
...value from ISBN...?
thanks for any assistance!
Rob