mySobek Home   |   Help
Skip Navigation Links.
MISSING BANNER

SobekCM METS Files: Behavior Sections

Overview

"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):

<METS:behaviorSec ID="INTERFACES" LABEL="Banners or webskins which this resource can appear under" >
<METS:behavior GROUPID="INTERFACES" ID="INT1" LABEL="Default Interface">
<METS:mechanism LABEL="PALMM Interface" LOCTYPE="OTHER" OTHERLOCTYPE="SobekCM Procedure" xlink:type="simple" xlink:title="PALMM_Interface_Loader" />
</METS:behavior>
<METS:behavior GROUPID="INTERFACES" ID="INT2" LABEL="Alternate Interface">
<METS:mechanism LABEL="UFDC Interface" LOCTYPE="OTHER" OTHERLOCTYPE="SobekCM Procedure" xlink:type="simple" xlink:title="UFDC_Interface_Loader" />
</METS:behavior>
</METS:behaviorSec>

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.