Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,18 @@ e.g. only 2 INSPIRE themes:
</thesaurusList>
```

The `<thesaurus>` element supports the following attributes:

| Attribute | Description |
|-----------|-------------|
| `key` | (Required) The thesaurus identifier (e.g. `external.theme.httpinspireeceuropaeutheme-theme`). |
| `maxtags` | Maximum number of keywords that can be selected. Unlimited if not set. |
| `orderById` | When `true`, keywords are ordered by their identifier instead of by label. Defaults to `false`. |
| `fieldset` | When `false`, the widget is rendered as a simple field instead of being boxed in a fieldset. |
| `browsable` | When `false`, the keyword browse/tree control is hidden and keywords can only be searched. Defaults to `true`. |
| `transformations` | Comma-separated list of allowed encodings for the keywords (see `convert/thesaurus-transformation.xsl`). Falls back to the `defaultTransformation` defined on `<thesaurusList>` when empty. |
| `mandatory` | When `true`, the field is flagged as required in the editor (displays the required indicator). Note this is a visual indicator only; it does not enforce keyword selection on save. Defaults to `false`. |

## Configuring the side panel {#creating-custom-editor-sidePanel}

The side panel is configured by adding `<text>` elements or `<directive>` elements to the `<sidePanel>` element within a `<view>`.
Expand Down
1 change: 1 addition & 0 deletions schemas/config-editor.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -1022,6 +1022,7 @@ Conversion are defined in `convert/thesaurus-transformation.xsl`.
<xs:attribute name="fieldset" type="xs:string" use="optional" fixed="false"/>
<xs:attribute name="browsable" type="xs:string" use="optional" fixed="false"/>
<xs:attribute name="transformations" type="xs:string" use="optional"/>
<xs:attribute name="mandatory" type="xs:string" use="optional" default="false"/>
</xs:complexType>
</xs:element>
</xs:sequence>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@
data-max-tags="{$maxTags}"
data-browsable="{not($thesaurusConfig/@browsable)
or $thesaurusConfig/@browsable != 'false'}"
data-required="{if ($thesaurusConfig/@mandatory = 'true') then 'true' else 'false'}"
data-order-by-id="{$orderById}"
data-lang="{$metadataOtherLanguagesAsJson}"
data-textgroup-only="false">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@
data-max-tags="{$maxTags}"
data-browsable="{not($thesaurusConfig/@browsable)
or $thesaurusConfig/@browsable != 'false'}"
data-required="{if ($thesaurusConfig/@mandatory = 'true') then 'true' else 'false'}"
data-order-by-id="{$orderById}"
data-lang="{$metadataOtherLanguagesAsJson}"
data-textgroup-only="false">
Expand Down
Loading