"A behavior section can be used to associate executable behaviors with content in the METS object.
A behavior section has an interface definition element that represents an abstract definition of the
set of behaviors represented by a particular behavior section. A behavior section also has an behavior
mechanism which is a module of executable code that implements and runs the behaviors defined abstractly
by the interface definition." (from LOC)
SobekCM Rules
The use of the behavior sec within SobekCM METS files is completely optional. However, they can be used
to set possible web skins to an item and to set the possible views for an item. One behaviorSec should be used for viewers
and a seperate one should be used for web skins (or interfaces).
Viewers should closely follow the example below. If no viewers are specified in the behaviorSec, the system will
apply system-wide defaults based on the files included within the METS document.
The example below adds three views to the item:
<METS:behaviorSec ID="VIEWS" LABEL="Options available to the user for viewing this item" >
<METS:behavior GROUPID="VIEWS" ID="VIEW1" STRUCTID="STRUCT1" LABEL="Default View">
<METS:mechanism LABEL="Viewer for JPEGs" LOCTYPE="OTHER" OTHERLOCTYPE="SobekCM Procedure" xlink:type="simple" xlink:title="JPEG_Viewer()" />
</METS:behavior>
<METS:behavior GROUPID="VIEWS" ID="VIEW2" STRUCTID="STRUCT1" LABEL="Alternate View">
<METS:mechanism LABEL="Viewer for zoomable JPEG2000s" LOCTYPE="OTHER" OTHERLOCTYPE="SobekCM Procedure" xlink:type="simple" xlink:title="JP2_Viewer()" />
</METS:behavior>
<METS:behavior GROUPID="VIEWS" ID="VIEW3" STRUCTID="STRUCT1" LABEL="Alternate View">
<METS:mechanism LABEL="Page turner style viewer" LOCTYPE="OTHER" OTHERLOCTYPE="SobekCM Procedure" xlink:type="simple" xlink:title="PageTurner_Viewer()" />
</METS:behavior>
</METS:behaviorSec>
If no web skins are defined in a behaviorSec, an item can appear under any web skin. If some are indicated, however, the
item is restricted to appearing under that set of skins.
The example below defines two web skins (interfaces):
The behaviors indicated in the METS file are only applied the first time the item is loaded. To make changes after an
item has already loaded, use the options to edit the behavior online at the item and title level.