Child pages
  • Asset Definition Example

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Below is the (outdated) agreement among the major Fedora users about the format of an asset definition. This format is still being modified, but it provides an outline of the types of behaviors every object should exhibit.

No Format
default infoField definitions:

   getFullAssetDefintion: returns the current version of the asset defintition.
   getPreview: returns the appropriate view of the resource that can share the viewing space with other previews.
   getLabel: returns the appropriate string of plain text that can be included in a list of labels.
   getDescription: returns an XML (OAI-DC?) Dublin core record.
   getFullView: returns the appropriate view of the resource when it has the whole viewing space to itself.
   getDefaultContent: returns a byte stream of raw content for the resource.

basicImage infoField definitions:

   getThumbnail: returns an image that can share the viewing space with other images.
   getScreenSize: returns an image that assumes the entire viewing space.
   getMaxSize: returns the largest image that will be made available.
   getDynamicView: returns the image in an interactive setting, such as a viewing applet or embedded in a web page.

metadata infoField definitions:
  
  getDescMetadata: get metadata that describes the intellectual content of the resource.
  getAdminMetadata: get metadata that describes the history, format information and policies associated with the resource.

{code:xml}
<assetDefinition>
<!-- This asset is an object with an XML file that represents the Piazza D'Oro at Hadrian's Villa in Italy. --> 
   <infoRecord label="default">
      <infoField label="Asset Definition" name="getFullAssetDef" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:109/getAssetDefs?childPid=uva-lib:93374" mime="text/XML"/>
      <infoField label="Preview" name="getPreview" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:93374/uva-lib-bdef:100/getPreview" mime="text/plain"/>
      <infoField label="Label" name="getLabel" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:93374/uva-lib-bdef:100/getLabel" mime="text/plain"/>
      <infoField label="Description" name="getDescription" action=http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:93374/uva-lib-bdef:101/getDC" mime="text/XML"/>
      <infoField label="Full View" name="getFullView" action=http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:93374/uva-lib-bdef:100/getFullView?pid=uva-lib:93374 mime="text/html"/>
      <infoField label="Default Content" name="getDefaultContent" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:93374/uva-lib-bdef:100/getDefaultContent" mime="text/XML"/>
   </infoRecord>
   <infoRecord label="metadata">
      <infoField label="Descriptive Metadata" name="getDescMetadata" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:93374/uva-lib-bdef:101/getDescMeta" mime="text/XML"/>
      <infoField label="Administrative Metadata" name="getAdminMetadata" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:93374/uva-lib-bdef:101/getAdminMeta" mime="text/XML"/>
   </infoRecord>
</AssetDefinition>


<assetDefinition>
<!-- This asset is an image object that represents one view of the Piazza D'Oro at Hadrian's Villa in Italy. --> 
   <infoRecord label="default">
      <infoField label="Asset Definition" name="getFullAssetDef" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:109/getAssetDefs?parentPid=uva-lib:93374&childPid=uva-lib:95746" mime="text/XML"/>
      <infoField label="Preview" name="getPreview" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:100/getPreview" mime="image/jpeg"/>
      <infoField label="Label" name="getLabel" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:100/getLabel" mime="text/plain"/>
      <infoField label="Description" name="getDescription" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:101/getDC"/>
      <infoField label="Full View" name="getFullView" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:100/getFullView" mime="image/jpeg"/>
      <infoField label="Default Content" name="getDefaultContent" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:100/getDefaultContent" mime="image/MrSid"/>
   </infoRecord>

   <infoRecord label="basicImage">
      <infoField label="Thumbnail" name="getThumbnail" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:100/getPreview" mime="image/jpeg"/>
      <infoField label="Screen Size" name="getScreenSize" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:100/getFullView" mime="image/jpeg"/>
      <infoField label="Max Size" name="getMaxSize" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:100/getDefaultContent" mime="image/MrSid"/>
      <infoField label="Dynamic View" name="getDynamicView" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:102/getImageViewer?parentPid=uva-lib:93374&childPid=uva-lib:95746" mime="application/java"/>
   </infoRecord>
   <infoRecord label="metadata">
      <infoField label="Descriptive Metadata" name="getDescMetadata" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:93374/uva-lib-bdef:108/getChildDescMeta?childPid=uva-lib:95746&parentPid=uva-lib:93374" mime="text/xml"/>
      <infoField label="Administrative Metadata" name="getAdminMetadata" action="http://repo.lib.virginia.edu:18080/fedora/get/uva-lib:95746/uva-lib-bdef:101/getAdminMeta" mime="text/xml"/>
   </infoRecord>
</assetDefinition>