Conditional literal string output based on additional field?
Posted: Fri Aug 15, 2014 12:21 pm
Hello,
I want to output different strings in the bibliography based on the language of the title. Thinking that a field could be used as a flag for conditional groups, somehow. Original(English):
a. (d). t `(`u3*~, Trans.~`).` ` In `e$ (Ed++.), $v `(`u2~ ed.~$, $~Vol. ~u14|~, p. ^, pp. ~p-`). `l: u`.`
If the User 8-field u8 contains e.g. 'English' (guessing that conditionals cannot be based on contents of a field) I want the above output. If it is empty I want(Swedish):
a. (d). t `(`u3*~, Översättn~`).` ` I `e$ (Red++.), $v `(`u2~ utg.~$, $~Vol. ~u14|~, s. ~p-`). `l: u`.`
Imagining conditional groups {Ed if u8'language flag'}{Red 'default as last group in chain if no other is used'} and corresponding chains for the others strings.
How would I go about achieving this?
Thanks,
Martin
I want to output different strings in the bibliography based on the language of the title. Thinking that a field could be used as a flag for conditional groups, somehow. Original(English):
a. (d). t `(`u3*~, Trans.~`).` ` In `e$ (Ed++.), $v `(`u2~ ed.~$, $~Vol. ~u14|~, p. ^, pp. ~p-`). `l: u`.`
If the User 8-field u8 contains e.g. 'English' (guessing that conditionals cannot be based on contents of a field) I want the above output. If it is empty I want(Swedish):
a. (d). t `(`u3*~, Översättn~`).` ` I `e$ (Red++.), $v `(`u2~ utg.~$, $~Vol. ~u14|~, s. ~p-`). `l: u`.`
Imagining conditional groups {Ed if u8'language flag'}{Red 'default as last group in chain if no other is used'} and corresponding chains for the others strings.
How would I go about achieving this?
Thanks,
Martin