|
4 | 4 | {%- endunless -%} |
5 | 5 | {%- if include.content.from_book -%}{%- assign book = site.content | where: "slug", include.content.from_book | where: "category", "monographs" | first -%}{%- else -%}{%- assign book = nil -%} |
6 | 6 | {%- assign series = site.series | find: "slug", include.content.series -%} |
7 | | -{%- assign publisher = include.content.publisher | default: book.publisher | default: series.publisher -%}{%- assign publisher = site.publishers | find: "slug", publisher -%} |
| 7 | +{%- assign publisher = include.content.publisher | default: book.publisher | default: series.publisher -%}{%- assign publisher = site.publishers | find: "slug", publisher | default: publisher -%} |
8 | 8 | {%- assign author = nil -%} |
9 | 9 | {%- assign curlyspace = "} " -%} |
10 | 10 | {%- assign curly = "}" -%} |
|
19 | 19 | {% endif %}{% if include.content.booktitle %} booktitle={% raw %}{{% endraw %}{{ include.content.booktitle }}}, |
20 | 20 | {% elsif book %} booktitle={% raw %}{{% endraw %}{{ book.title | replace: "_", "" | replace: "*", "" }}}, |
21 | 21 | {% endif %}{% endif %}{% if include.content.editor %} editor={% if include.useslugs %}{% if include.content.editor contains " " %}"{{ include.content.editor }}"{% else %}{{ include.content.editor }}{% endif %}{% else %}{% raw %}{{% endraw %}{% if include.content.editor contains " " %}{{ include.content.editor }}{% else %}{% assign editor = site.authors | find: "slug", include.content.editor %}{% if editor %}{{ editor.title }}{% else %}{{ include.content.editor }}{% endif %}{% endif %}}{% endif %}, |
22 | | -{% endif %}{% if include.content.publisher or publisher %} publisher={% raw %}{{% endraw %}{% if publisher %}{{ publisher.title }}{% else %}{{ include.content.publisher }}{% endif %}}, |
| 22 | +{% endif %}{% if include.content.publisher or publisher %} publisher={% raw %}{{% endraw %}{% if publisher %}{{ publisher.title | default: publisher }}{% else %}{{ include.content.publisher }}{% endif %}}, |
23 | 23 | {% endif %}{% if include.content.school %} school={% raw %}{{% endraw %}{{ include.content.school }}}, |
24 | 24 | {% endif %}{% if include.content.address or publisher.address %} address={% raw %}{{% endraw %}{{ include.content.address | default: publisher.address }}}, |
25 | 25 | {% endif %}{% if include.content.year %} year={{ include.content.year }}, |
|
0 commit comments