# Fields to be used in templates

This section contains a list of all fields you can currently use in templates.

Notation: List&lt;Person&gt; = a list of values with the type Person,

## Project Metadata

**Prefix: `metadata.`**   
(e.g. `metadata.title` prints the book title)

<table border="1" id="bkmrk-field-type-%28string%2Fn" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 16.8057%;"></col><col style="width: 18.9511%;"></col><col style="width: 20.739%;"></col><col style="width: 43.5042%;"></col></colgroup><tbody><tr><td>**Field**  
</td><td>**Type (string/number/list/type/bool)**  
</td><td>**Optional (true/false)**  
</td><td>**Description**  
</td></tr><tr><td>title  
</td><td>string  
</td><td>**false**  
</td><td>Project title  
</td></tr><tr><td>subtitle  
</td><td>string  
</td><td>true  
</td><td>Project subtitle  
</td></tr><tr><td>authors  
</td><td>List&lt;PersonOrString&gt;  
</td><td>**false** (but may be empty)  
</td><td>List of all authors, either added to the project or to one of the (sub)sections  
</td></tr><tr><td>editors  
</td><td>List&lt;PersonOrString&gt;  
</td><td>**false** (but may be empty)  
</td><td>List of all editors, either added to the project or to one of the (sub)sections  
</td></tr><tr><td>web\_url  
</td><td>string  
</td><td>true  
</td><td>URL to a web version of this project (e.g. blog symposium)</td></tr><tr><td>identifiers  
</td><td>List&lt;Identifier&gt;  
</td><td>true  
</td><td>List of identifiers, e.g. ISBNs, DOIs, etc.  
</td></tr><tr><td>published</td><td>DetailedDate</td><td>true  
</td><td>publish date</td></tr><tr><td>languages  
</td><td>List&lt;Language&gt;  
</td><td>true  
</td><td>project language(s)  
</td></tr><tr><td><span style="color: rgb(149, 165, 166);">number\_of\_pages</span>  
</td><td><span style="color: rgb(149, 165, 166);">number</span>  
</td><td><span style="color: rgb(149, 165, 166);">true</span>  
</td><td><span style="color: rgb(149, 165, 166);">currently not used</span></td></tr><tr><td>short\_abstract  
</td><td>string  
</td><td>true  
</td><td>short abstract / content summary  
</td></tr><tr><td>long\_abstract  
</td><td>string  
</td><td>true  
</td><td>long abstract / content summary  
</td></tr><tr><td>keywords  
</td><td>List&lt;Keyword&gt;  
</td><td>true  
</td><td>List of keywords with optional gnd identifier  
</td></tr><tr><td>ddc  
</td><td>string  
</td><td>true</td><td>DDC class  
</td></tr><tr><td>license  
</td><td>License  
</td><td>true  
</td><td>License of the publication - either Creative Commons or a custom license.

Variants:

- CC0
- CC\_BY\_4
- CC\_BY\_SA\_4
- CC\_BY\_ND\_4
- CC\_BY\_NC\_4
- CC\_BY\_NC\_SA\_4
- CC\_BY\_NC\_ND\_4
- other (contains a string)

</td></tr><tr><td>series  
</td><td>string  
</td><td>true  
</td><td>Series this publication belongs to  
</td></tr><tr><td>volume  
</td><td>string  
</td><td>true  
</td><td>Volume this publication belongs to  
</td></tr><tr><td>edition  
</td><td>string  
</td><td>true  
</td><td>Edition of this publication  
</td></tr><tr><td>publisher  
</td><td>string  
</td><td>true  
</td><td>Publisher of this publication  
</td></tr></tbody></table>

#### PersonOrString

One of these variants:

- Person -&gt; type Person
- NameString -&gt; type String

#### Person

<table border="1" id="bkmrk-field-type-%28string%2Fn-1" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr><td>**Field**  
</td><td>**Type (string/number/list/type/bool)**  
</td><td>**Optional (true/false)**  
</td><td>**Description**  
</td></tr><tr><td>id  
</td><td>string  
</td><td>true  
</td><td>internal unique id</td></tr><tr><td>first\_names  
</td><td>string  
</td><td>true  
</td><td>one or more first names</td></tr><tr><td>last\_names  
</td><td>string  
</td><td>**false**  
</td><td>one or more last names  
</td></tr><tr><td>orcid  
</td><td>Identifier  
</td><td>true  
</td><td>ORCID (Open Researcher and Contributor ID)  
</td></tr><tr><td>gnd  
</td><td>Identifier  
</td><td>true  
</td><td>GND (Gemeinsame Normdatei)  
</td></tr><tr><td>bios  
</td><td>List&lt;Biography&gt;  
</td><td>true  
</td><td>list of biographies for this person, with specified language  
</td></tr><tr><td>ror  
</td><td>Identifier</td><td>true  
</td><td>ROR (Research Organization Registry ID)  
</td></tr></tbody></table>

#### Identifier

<table border="1" id="bkmrk-field-type-%28string%2Fn-2" style="border-collapse: collapse; width: 100%; height: 76.4px;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr style="height: 46.6px;"><td style="height: 46.6px;">**Field**  
</td><td style="height: 46.6px;">**Type (string/number/list/type/bool)**  
</td><td style="height: 46.6px;">**Optional (true/false)**  
</td><td style="height: 46.6px;">**Description**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">id  
</td><td style="height: 29.8px;">string  
</td><td style="height: 29.8px;">true  
</td><td style="height: 29.8px;">internal unique id  
</td></tr><tr><td>name  
</td><td>string  
</td><td>**false**  
</td><td>custom name of the identifier (e.g. "ebook ISBN)</td></tr><tr><td>value  
</td><td>string  
</td><td>**false** </td><td>value of the identifier (e.g. the ISBN)</td></tr><tr><td>identifier\_type  
</td><td>IdentifierType  
</td><td>**false** </td><td>Identifier Type - one of these variants:  
- DOI
- ISBN
- ISSN
- URL
- URN
- ORCID
- ROR
- GND
- Other (contains a string)

</td></tr></tbody></table>

#### Language

One of these variants:

- DE
- EN

#### Biography

<table border="1" id="bkmrk-field-type-%28string%2Fn-3" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr><td style="height: 46.6px;">**Field**  
</td><td style="height: 46.6px;">**Type (string/number/list/type/bool)**  
</td><td style="height: 46.6px;">**Optional (true/false)**  
</td><td style="height: 46.6px;">**Description**  
</td></tr><tr><td>content  
</td><td>string  
</td><td>**false**  
</td><td>the biography  
</td></tr><tr><td>lang  
</td><td>Language  
</td><td>**true** </td><td>language of the biography</td></tr></tbody></table>

#### Keyword

<table border="1" id="bkmrk-field-type-%28string%2Fn-4" style="border-collapse: collapse; width: 100%; height: 106.2px;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr style="height: 46.6px;"><td style="height: 46.6px;">**Field**  
</td><td style="height: 46.6px;">**Type (string/number/list/type/bool)**  
</td><td style="height: 46.6px;">**Optional (true/false)**  
</td><td style="height: 46.6px;">**Description**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">title  
</td><td style="height: 29.8px;">string  
</td><td style="height: 29.8px;">**false**</td><td style="height: 29.8px;">the keyword</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">gnd  
</td><td style="height: 29.8px;">Identifier  
</td><td style="height: 29.8px;">true  
</td><td style="height: 29.8px;">GND belonging to this keyword  
</td></tr></tbody></table>

#### DetailedDate


<table border="1" id="bkmrk-field-type-%28string%2Fn-5" style="border-collapse: collapse; width: 100%; height: 106.2px;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr style="height: 46.6px;"><td style="height: 46.6px;">**Field**  
</td><td style="height: 46.6px;">**Type (string/number/list/type/bool)**  
</td><td style="height: 46.6px;">**Optional (true/false)**  
</td><td style="height: 46.6px;">**Description**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">year</td><td style="height: 29.8px;">number</td><td style="height: 29.8px;">false</td><td style="height: 29.8px;">the year</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">month</td><td style="height: 29.8px;">number</td><td style="height: 29.8px;">true</td><td style="height: 29.8px;">month as number without leading zero</td></tr><tr><td>month\_leading\_zero</td><td>string</td><td>true</td><td>month as string with leading zero</td></tr><tr><td>month\_name</td><td>MonthName</td><td>true</td><td>Matches one of these variants:

- january
- february
- march
- april
- may
- june
- july
- august
- september
- october
- november
- december

</td></tr><tr><td>day</td><td>number</td><td>true</td><td>day as number without leading zero

</td></tr><tr><td>day\_leading\_zero</td><td>string</td><td>true</td><td>day as string with leading zero

</td></tr><tr><td>day\_weekday</td><td>Weekday</td><td>true</td><td>Matches one of these variants:

- monday
- tuesday
- wednesday
- thursday
- friday
- saturday
- sunday

</td></tr></tbody></table>

## Project Settings

**Prefix: `settings.`**   
(e.g. `settings.cover_image_path`)

Note: settings is an optional field

<table border="1" id="bkmrk-field-type-%28string%2Fn-6" style="border-collapse: collapse; width: 100%; height: 242.2px;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr style="height: 46.6px;"><td style="height: 46.6px;">**Field**  
</td><td style="height: 46.6px;">**Type (string/number/list/type/bool)**  
</td><td style="height: 46.6px;">**Optional (true/false)**  
</td><td style="height: 46.6px;">**Description**  
</td></tr><tr style="height: 46.6px;"><td style="height: 46.6px;">toc\_enabled  
</td><td style="height: 46.6px;">bool  
</td><td style="height: 46.6px;">false  
</td><td style="height: 46.6px;">Whetether a table of contents should be shown  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">csl\_style  
</td><td style="height: 29.8px;">string  
</td><td style="height: 29.8px;">true</td><td style="height: 29.8px;">name of the enabled csl (citation style language)  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">csl\_language\_code  
</td><td style="height: 29.8px;">string  
</td><td style="height: 29.8px;">true  
</td><td style="height: 29.8px;">used language code for csl  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">metadata\_page\_additional\_html  
</td><td style="height: 29.8px;">string  
</td><td style="height: 29.8px;">true  
</td><td style="height: 29.8px;">Information to be shown on the metadata/imprint page  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">cover\_image\_path  
</td><td style="height: 29.8px;">string  
</td><td style="height: 29.8px;">true  
</td><td style="height: 29.8px;">filename of the cover image. You can include the image with `<img src="uploads/{{settings.cover_image_path}}">`  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">backcover\_image\_path  
</td><td style="height: 29.8px;">string  
</td><td style="height: 29.8px;">true  
</td><td style="height: 29.8px;">filename of the backcover image. You can include the image with `<img src="uploads/{{settings.backcover_image_path}}">`  
</td></tr></tbody></table>

## Project Contents

**`sections` is a List of Sections**.

Example to print all section titles:

```
{{#each sections}}
<h1>{{metadata.title}}</h1>
{{/each}}
```

#### Section

<table border="1" id="bkmrk-field-type-%28string%2Fn-7" style="border-collapse: collapse; width: 100%;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr><td style="height: 46.6px;">**Field**  
</td><td style="height: 46.6px;">**Type (string/number/list/type/bool)**  
</td><td style="height: 46.6px;">**Optional (true/false)**  
</td><td style="height: 46.6px;">**Description**  
</td></tr><tr><td>id</td><td>string</td><td>false</td><td>unique section id</td></tr><tr><td>sub\_sections</td><td>List&lt;Section&gt;</td><td>false (but can be empty)</td><td>a (nested) list of sections</td></tr><tr><td>children</td><td>List&lt;ContentBlock&gt;</td><td>false (but can be empty)</td><td>content blocks of this section</td></tr><tr><td>metadata</td><td>SectionMetadata</td><td>false</td><td>Metadata of this section</td></tr><tr><td>visible\_in\_toc</td><td>bool</td><td>false</td><td>whetether this section should be shown in the toc   
</td></tr><tr><td>endnotes</td><td>List&lt;Endnote&gt;</td><td>false (but can be empty)</td><td>list of endnotes used in this section  
</td></tr></tbody></table>

#### ContentBlock

<table border="1" id="bkmrk-field-type-%28string%2Fn-8" style="border-collapse: collapse; width: 100%; height: 88.4px;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr style="height: 28.8px;"><td style="height: 46.6px;">**Field**  
</td><td style="height: 46.6px;">**Type (string/number/list/type/bool)**  
</td><td style="height: 46.6px;">**Optional (true/false)**  
</td><td style="height: 46.6px;">**Description**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">id</td><td style="height: 29.8px;">string</td><td style="height: 29.8px;">false</td><td style="height: 29.8px;">unique content block id</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">block\_type</td><td style="height: 29.8px;">BlockType</td><td style="height: 29.8px;">false</td><td style="height: 29.8px;">BlockType variants:

- Paragraph
- Heading
- Raw
- List
- Quote
- Image

</td></tr><tr><td>html</td><td>string</td><td>false</td><td>content of this block as html

</td></tr></tbody></table>

#### SectionMetadata

<table border="1" id="bkmrk-field-type-%28string%2Fn-9" style="border-collapse: collapse; width: 100%; height: 398.8px;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr style="height: 46.6px;"><td style="height: 46.6px;">**Field**  
</td><td style="height: 46.6px;">**Type (string/number/list/type/bool)**  
</td><td style="height: 46.6px;">**Optional (true/false)**  
</td><td style="height: 46.6px;">**Description**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">title</td><td style="height: 29.8px;">string</td><td style="height: 29.8px;">false</td><td style="height: 29.8px;">title of this section</td></tr><tr style="height: 63.4px;"><td style="height: 63.4px;">toc\_title\_subtitle\_override</td><td style="height: 63.4px;">string</td><td style="height: 63.4px;">true</td><td style="height: 63.4px;">optional version of the title + subtitle for the table of contents</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">subtitle</td><td style="height: 29.8px;">string</td><td style="height: 29.8px;">true</td><td style="height: 29.8px;">subtitle of this section</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">authors</td><td style="height: 29.8px;">List&lt;PersonOrString&gt;</td><td style="height: 29.8px;">false (but can be empty)</td><td style="height: 29.8px;">authors of this section</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">editors</td><td style="height: 29.8px;">List&lt;PersonOrString&gt;</td><td style="height: 29.8px;">false (but can be empty)</td><td style="height: 29.8px;">editors of this section</td></tr><tr style="height: 46.6px;"><td style="height: 46.6px;">web\_url</td><td style="height: 46.6px;">string</td><td style="height: 46.6px;">true</td><td style="height: 46.6px;">url to web version of this section (e.g. blog post)</td></tr><tr style="height: 46.6px;"><td style="height: 46.6px;">identifiers</td><td style="height: 46.6px;">List&lt;Identifier&gt;</td><td style="height: 46.6px;">false (but can be empty)</td><td style="height: 46.6px;">identifiers of this section (e.g. chapter doi)</td></tr><tr style="height: 46.6px;"><td style="height: 46.6px;">published</td><td style="height: 46.6px;">DetailedDate</td><td style="height: 46.6px;">true</td><td style="height: 46.6px;">date the section was published</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">lang</td><td style="height: 29.8px;">Language</td><td style="height: 29.8px;">false</td><td style="height: 29.8px;">language of this section</td></tr></tbody></table>

#### Endnote

<table border="1" id="bkmrk-field-type-%28string%2Fn-10" style="border-collapse: collapse; width: 100%; height: 76.4px;"><colgroup><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col><col style="width: 25.0298%;"></col></colgroup><tbody><tr style="height: 46.6px;"><td style="height: 46.6px;">**Field**  
</td><td style="height: 46.6px;">**Type (string/number/list/type/bool)**  
</td><td style="height: 46.6px;">**Optional (true/false)**  
</td><td style="height: 46.6px;">**Description**  
</td></tr><tr style="height: 29.8px;"><td style="height: 29.8px;">num</td><td style="height: 29.8px;">number</td><td style="height: 29.8px;">false</td><td style="height: 29.8px;">number of the endnote in this section</td></tr><tr><td>id</td><td>string</td><td>false</td><td>unique id of the endnote</td></tr><tr><td>content</td><td>string</td><td>false</td><td>formatted endnote as html</td></tr></tbody></table>