|
1 | 1 | {%- if include.content.from_book -%}{%- assign book = site.content | where: "slug", include.content.from_book | where: "category", "monographs" | first -%}{%- else -%}{%- assign book = nil -%}{%- endif -%} |
2 | 2 | {%- assign series = site.series | find: "slug", include.content.series -%} |
3 | | -{%- assign publisher = include.content.publisher | default: book.publisher | default: series.publisher -%}{%- assign publisher = site.publishers | find: "slug", publisher | default: publisher -%} |
| 3 | +{%- assign journal = site.journals | find: "slug", include.content.journal -%} |
| 4 | +{%- assign publisher = include.content.publisher | default: book.publisher | default: series.publisher | default: journal.publisher -%}{%- assign publisher = site.publishers | find: "slug", publisher | default: publisher -%} |
4 | 5 | {%- assign author = nil -%} |
5 | 6 | {%- assign curlyspace = "} " -%} |
6 | 7 | {%- assign curly = "}" -%} |
|
17 | 18 | {% endif %}{% if include.content.editor %} editor={% assign editors = include.content.editor | split: " and " %}{% if include.useslugs %}{% for t in editors %}{% if t contains " " %}"{{ t }}"{% else %}{{ t }}{% endif %}{% unless forloop.last %} # " and " # {% endunless %}{% endfor %}{% else %}{% raw %}{{% endraw %}{% capture t %}{% include_cached content_authors_string.html authors=editors %}{% endcapture %}{{ t | strip | replace: ", and ", " and " | replace: ", ", " and " }}}{% endif %}, |
18 | 19 | {% endif %}{% if include.content.publisher or publisher %} publisher={% raw %}{{% endraw %}{% if publisher %}{{ publisher.title | default: publisher | replace: "&", escand }}{% else %}{{ include.content.publisher | replace: "&", escand }}{% endif %}}, |
19 | 20 | {% endif %}{% if include.content.school %} school={% raw %}{{% endraw %}{{ include.content.school }}}, |
20 | | -{% endif %}{% if include.content.address or publisher.address %} address={% raw %}{{% endraw %}{{ include.content.address | default: publisher.address }}}, |
| 21 | +{% endif %}{% if include.content.address or publisher.address or journal.address %} address={% raw %}{{% endraw %}{{ include.content.address | default: journal.address | default: publisher.address }}}, |
21 | 22 | {% endif %}{% if include.content.year %} year={{ include.content.year }}, |
22 | 23 | {% endif %}{% if include.content.month %} month={{ include.content.month }}, |
23 | | -{% endif %}{% if include.content.journal %} journal={% raw %}{{% endraw %}{% assign journal = site.journals | find: "slug", include.content.journal %}{% if journal %}{{ journal.title | replace: "&", escand }}{% else %}{{ include.content.journal | replace: "&", escand }}{% endif %}}, |
| 24 | +{% endif %}{% if include.content.journal %} journal={% raw %}{{% endraw %}{% if journal %}{{ journal.title | replace: "&", escand }}{% else %}{{ include.content.journal | replace: "&", escand }}{% endif %}}, |
24 | 25 | {% endif %}{% if include.content.volume %} volume={{ include.content.volume }}, |
25 | 26 | {% endif %}{% if include.content.series %} series={% raw %}{{% endraw %}{% if series %}{{ series.title }}{% else %}{{ include.content.series }}{% endif %}}, |
26 | 27 | {% endif %}{% if include.content.number %} number={{ include.content.number }}, |
|
0 commit comments