Skip to content

Commit

Permalink
Fix editor reference (#96)
Browse files Browse the repository at this point in the history
Fix #94
  • Loading branch information
zepinglee authored Dec 12, 2023
1 parent ee32910 commit 1184946
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/csl/taxonomy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,13 @@ impl EntryLike for Entry {
"p",
)
.map(|e| e.affiliated_with_role(PersonRole::Director)),
NameVariable::Editor => self.editors().map(|a| a.iter().collect()),
NameVariable::Editor => {
self.editors().map(|a| a.iter().collect()).or_else(|| {
self.get_container()
.and_then(|e| e.editors())
.map(|a| a.iter().collect())
})
}
NameVariable::EditorialDirector => None,
NameVariable::EditorTranslator => {
let translator = self.affiliated_with_role(PersonRole::Translator);
Expand Down

0 comments on commit 1184946

Please sign in to comment.