1.38 Archive
A separate area in the configuration file is available for configuring the display of archival material:
config_viewer.xml
<archives enabled="false">
<metadataList>
<metadata xpath="./ead:control/ead:maintenanceagency/ead:agencycode"
xpathType="element"
label="agencycode"
type="1" />
</metadataList>
<nodeTypes>
<node name="collection" icon="fa fa-folder-open-o" />
<node name="folder" icon="fa fa-folder-open-o" />
<node name="class" icon="fa fa-folder-open-o" />
<node name="file" icon="fa fa-file-text-o" />
<node name="image" icon="fa fa-file-image-o" />
<node name="audio" icon="fa fa-file-audio-o" />
<node name="video" icon="fa fa-file-video-o" />
<node name="other" icon="fa fa-file-o" />
</nodeTypes>
</metadata>
The enabled attribute enables or disables the archive view.
If active, a URL to a BaseX instance must also be configured. See Chapter 1.4
In the <metadataList/> the display of the metadata is configured. The individual attributes mean:
Setting
Description
xpath
This sets the XPATH expression for the desired metadata.
xpathType
Defines from where the value is to be read. Allowed values are element, attribute and text.
label
Defines the message key to be used for displaying the metadata.
type
The attribute can be used to group different metadata.
In the <nodeTypes /> section, the icons for the individual nodes in the archive plan can be defined:
Setting
Description
name
The name comes from the otherlevel attribute or the level attribute of the EAD file.
icon
Defines the CSS classes for the Font-Awesome icons to be used.
Copy link