How to create a conditional citation with relevant years?
Posted: Sun Jul 28, 2024 5:49 pm
I’m having a problem with creating a conditional citation in the subsequent optional field. I have read about Conditional groups on p. 242 in the User Guide, but that didn’t solve the problem.
The books I keep in Bookends often have 3 or even 5 different publishing dates; and as someone who works in the humanities, they are all important to me. I’m talking about
1) The year in which the book I’m citing was published
2) The year the edition I’m citing was first published
3) The year the book (not necessarily the edition I’m using) was first published in my country
4) The year it was first published abroad, in case it was translated.
5) The year it was first published worldwide. This may or may not be the same as 4)
The following example should explain what I mean:
Borowitch, Nicolai: The Present Situation in the Ukraine. Transl. from the German by Ole Arnold. London: MacMillan 2015.
This edition was first published 1972 in Great Britain.
The book itself was first published in Manchester, England, in 1912.
In Germany, this edition, including the foreword, was first published in 1814.
Originally, the book itself was first published in Leipzig in 1674.
So the The Present Situation in the Ukraine is a book about the Ukraine in the 17th century! I like to make this clear by using a superscript. This is how I want the formatted citation in the field to look like:
The custom fields involved are:
d = Year = 2015
u4 = ThisEditionFirst = 1972
u19 = Orig Year [in this country] = 1912
u20 = FirstPublished [worldwide] = 1674
And now we come to the most important part. The ‘subsequent field’ should first output d (the year in which the cited book was published), and then u20 = FirstPublished [worldwide] with superscripted “1” before the year to indicate that it’s a first edition. Now, if u20 is empty, then output u19 = Orig Year [in this country] with superscripted “1”. If that field is empty, then output u4 = ThisEditionFirst with superscripted “1”. If this field is empty, then output only d.
This is the closest I have managed to get:
a: s. ~[~d ^1^u20~].~ ^1^u4~].~
If I enter this
a: s. ~[~d {^1^u20~].~ ^1^u19~ ^1^u4~].~}
only d is output.
If all fields are empty, except d, I get this:
and the closing bracket after the year is missing.
Using ^ inside curly brackets is supposed to build a conditional group, but in the group I’m creating ^1^ will also superscript the number “1”. And ^ is also used in Bookends to adjust text to # of pages cited. So I may be using the same character ^ for multiple actions. Is that perhaps bound to fail?
The books I keep in Bookends often have 3 or even 5 different publishing dates; and as someone who works in the humanities, they are all important to me. I’m talking about
1) The year in which the book I’m citing was published
2) The year the edition I’m citing was first published
3) The year the book (not necessarily the edition I’m using) was first published in my country
4) The year it was first published abroad, in case it was translated.
5) The year it was first published worldwide. This may or may not be the same as 4)
The following example should explain what I mean:
Borowitch, Nicolai: The Present Situation in the Ukraine. Transl. from the German by Ole Arnold. London: MacMillan 2015.
This edition was first published 1972 in Great Britain.
The book itself was first published in Manchester, England, in 1912.
In Germany, this edition, including the foreword, was first published in 1814.
Originally, the book itself was first published in Leipzig in 1674.
So the The Present Situation in the Ukraine is a book about the Ukraine in the 17th century! I like to make this clear by using a superscript. This is how I want the formatted citation in the field to look like:
The custom fields involved are:
d = Year = 2015
u4 = ThisEditionFirst = 1972
u19 = Orig Year [in this country] = 1912
u20 = FirstPublished [worldwide] = 1674
And now we come to the most important part. The ‘subsequent field’ should first output d (the year in which the cited book was published), and then u20 = FirstPublished [worldwide] with superscripted “1” before the year to indicate that it’s a first edition. Now, if u20 is empty, then output u19 = Orig Year [in this country] with superscripted “1”. If that field is empty, then output u4 = ThisEditionFirst with superscripted “1”. If this field is empty, then output only d.
This is the closest I have managed to get:
a: s. ~[~d ^1^u20~].~ ^1^u4~].~
If I enter this
a: s. ~[~d {^1^u20~].~ ^1^u19~ ^1^u4~].~}
only d is output.
If all fields are empty, except d, I get this:
and the closing bracket after the year is missing.
Using ^ inside curly brackets is supposed to build a conditional group, but in the group I’m creating ^1^ will also superscript the number “1”. And ^ is also used in Bookends to adjust text to # of pages cited. So I may be using the same character ^ for multiple actions. Is that perhaps bound to fail?