29 private $subsequentAuthorSubstitute;
37 private $subsequentAuthorSubstituteRule;
43 private $hangingIndent =
false;
51 private $secondFieldAlign;
66 private $entrySpacing;
72 foreach ($node->attributes() as $attribute) {
73 switch ($attribute->getName()) {
74 case 'subsequent-author-substitute':
75 $this->subsequentAuthorSubstitute = (string) $attribute;
77 case 'subsequent-author-substitute-rule':
80 case 'hanging-indent':
81 $this->hangingIndent =
"true" === (string) $attribute ?
true :
false;
83 case 'second-field-align':
84 $this->secondFieldAlign = (string) $attribute;
87 $this->lineSpacing = (string) $attribute;
90 $this->entrySpacing = (string) $attribute;
93 if (empty($this->subsequentAuthorSubstituteRule)) {
94 $this->subsequentAuthorSubstituteRule =
new SubsequentAuthorSubstituteRule(
"complete-all");
103 return $this->subsequentAuthorSubstitute;
111 $this->subsequentAuthorSubstitute = $subsequentAuthorSubstitute;
119 return $this->subsequentAuthorSubstituteRule;
127 $this->subsequentAuthorSubstituteRule = $subsequentAuthorSubstituteRule;
135 return $this->hangingIndent;
143 $this->hangingIndent = $hangingIndent;
151 return $this->secondFieldAlign;
159 $this->secondFieldAlign = $secondFieldAlign;
167 return $this->lineSpacing;
175 $this->lineSpacing = $lineSpacing;
183 return $this->entrySpacing;
191 $this->entrySpacing = $entrySpacing;