Field types

Hierarchical select list

The field type for values with levels, as a drop-down list with a tree view and a list view. In the selection when you create a field it is called treesvelecte. Data entry from the cataloguer’s side is described under Hierarchical select list .

Hierarchical select list Sammlung (collection) in Moliri: the chosen value in the field, below it the open drop-down list in tree view

Values, separators and storage form are the same as for the selection tree . That page also covers store_path, changing separators, the import behaviour and the formatting “Lowest level only”. This page lists the parameters in full and describes what is different.

Parameters

KeyValuesIf omittedEffect
valuesList of pathsemptyThe options
path_separatorString/Splits a value into levels. Empty gives a flat list
multipletrue, falsefalseSeveral values can be chosen
dividerString,Joins several values in the stored text
save_as_jsontrue, falsefalseStores the selection as a JSON list
store_pathfull, leaffullThe whole path or only the last level
selectable_parentstrue, falsefalseIntermediate levels can be chosen themselves
creatabletrue, falsefalsePaths of your own allowed during entry
importabletrue, falsefalseThe Excel import may write paths outside the list; manual entry may not
dynamic_optionstrue, falsefalseAlso offers what this field holds on other objects
default_viewtree, listlistWhich view the drop-down list opens with
close_on_selecttrue, falsefalseCloses the drop-down list after each selection
clearabletrue, falsetrueThe selection can be cleared
placeholderStringemptyPlaceholder in the empty field
sorttrue, falsetrueSorts the levels alphabetically instead of in the order given in values
JSON
{
  "values": ["Europa/Deutschland/Berlin", "Europa/Frankreich/Paris", "Asien/Japan/Tokio"],
  "multiple": true,
  "creatable": false,
  "default_view": "tree",
  "close_on_select": false
}

How it differs from the selection tree

Selection treeHierarchical select list
DisplayThe tree is open in the fieldChosen values in the field, selection in the drop-down list
Space neededA lot, needs a large tileOne line
SearchSearch box above the tree (searchable)List view with fuzzy search
Upper limitmax_itemsnone
Suited toClassification systems you need to find your way around inMany values in a small space

close_on_select: false makes it easier to set several values one after another. For single selection close_on_select: true is more convenient.

creatable belongs only in fields with a growing vocabulary. A newly typed path creates its levels as well; with dynamic_options it is then available to all other objects. For closed classification systems creatable: false is right.