Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents

DSpace System Documentation: DRI Schema Reference

Table of Contents
outlinetrue

Digital Repository Interface (DRI) is a schema that governs the structure of a Manakin DSpace page when encoded as an XML Document. It determines what elements can be present in the Document and the relationship of those elements to each other. This reference document explains the purpose of DRI, provides a broad architectural overview, and explains common design patterns. The appendix includes a complete reference for elements used in the DRI Schema, a graphical representation of the element hierarchy, and a quick reference table of elements and attributes.

...

Code Block
<document version=1.0>
  <meta> ... </meta>
   <body>
    <div n="division-example1"
	id="XMLExample.div.division-example1">
     ... 
    </div>
    <div n="division-example2" id="XMLExample.div.division-example2"
	interactive="yes" action="www.DRItest.com"
	method="post">
     ...
    </div>
     ...
   </body>
  <options> ... </options>
</document>

...

  • disabled: optionalAccepted values are √¨yes√Æ, √¨no√Æ. Determines whether the field allows user input. Rendering of disabled fields may vary with implementation and display media.
  • id: requiredA unique identifier for a field element.
  • n: requiredA non-unique local identifier used to differentiate the element from its siblings within an interactive division. This is the name of the field use when data is submitted back to the server.
  • rend: optionalA rendering hint used to override the default display of the element.
  • required: optionalAccepted values are √¨yes√Æ, √¨no√Æ. Determines whether the field is a required component of the form and thus cannot be left blank.
  • type: requiredA required attribute to specify the type of value. Accepted types are:
    • button: A button input control that when activated by the user will submit the form, including all the fields, back to the server for processing.
    • checkbox: A boolean input control which may be toggled by the user. A checkbox may have several fields which share the same name and each of those fields may be toggled independently. This is distinct from a radio button where only one field may be toggled.
    • file: An input control that allows the user to select files to be submitted with the form. Note that a form which uses a file field must use the multipart method.
    • hidden: An input control that is not rendered on the screen and hidden from the user.
    • password: A single-line text input control where the input text is rendered in such a way as to hide the characters from the user.
    • radio: A boolean input control which may be toggled by the user. Multiple radio button fields may share the same name. When this occurs only one field may be selected to be true. This is distinct from a checkbox where multiple fields may be toggled.
    • select: A menu input control which allows the user to select from a list of available options.
    • text: A single-line text input control.
    • textarea: A multi-line text input control.
    • composite: A composite input control combines several input controls into a single field. The only fields that may be combined together are: checkbox, password, select, text, and textarea. When fields are combined together they can posses multiple combined values.
      Code Block
      <p>
        <hi> ... </hi>
        <xref> ... </xref>
        <figure> ... </figure>
        ...
         <field id="XMLExample.field.name" n="name" type="text"
      	required="yes">
          <params size="16" maxlength="32"/>
          <help>Some help text with <i18n>localized
      	content</i18n>.</help>
          <value type="raw">Default value goes
      	here</value>
         </field>
      </p>
             
      

figure

Text Container

Structural Element

...

  • url: requiredA url to the external metadata file.
  • repositoryIdentifier: requiredA reference to the repositoryIdentifier of the repository.
  • type: optionalDescription of the reference object's type.
    Code Block
                <includeSet n="browse-list"
    	id="XMLTest.includeSet.browse-list">
                 <reference url="/metadata/handle/123/4/mets.xml"
    	repositoryID="123" type="DSpace
    	Item"/> <reference url="/metadata/handle/123/5/mets.xml"
    	repositoryID="123" />
                ...
                </includeSet>
             
    

referenceSet

Metadata Reference Element

...

  • authenticated: requiredAccepted values are "yes", "no". Determines whether the user has been authenticated by the system.
    Code Block
    <meta>
    
         <userMeta>
    
            <metadata element="identifier" qualifier="email">
    	
    
               bobJones@tamu.edu
    
            </metadata>
    
            <metadata element="identifier" qualifier="firstName"> Bob
    	</metadata>
    
            <metadata element="identifier" qualifier="lastName"> Jones
    	</metadata>
    
            <metadata element="rights"
    	qualifier="accessRights">user</metadata>
    
            <metadata ...> ... </metadata>
    
            ...
    
            <trail source="123456789/6"> A bread crumb item
    	</trail>
    
            <trail ...> ... </trail>
    
            ...
    
         </userMeta>
    
        <pageMeta> ... </pageMeta>
    
    </meta>
    

...

  • optionSelected: optionalAn optional attribute for select, checkbox, and radio fields to determine if the value is to be selected or not.
  • optionValue: optionalAn optional attribute for select, checkbox, and radio fields to determine the value that should be returned when this value is selected.
  • type: requiredA required attribute to specify the type of value. Accepted types are:
    • raw: The raw type stores the unprocessed value directly from the user of other source.
    • interpreted: The interpreted type stores the value in a format appropriate for display to the user, possibly including rich text markup.
    • default: The default type stores a value supplied by the system, used when no other values are provided.
      Code Block
      <p>
        <hi> ... </hi>
        <xref> ... </xref>
        <figure> ... </figure>
        <field id="XMLExample.field.name" n="name" type="text"
      	required="yes">
          <params size="16" maxlength="32"/>
          <help>Some help text with <i18n>localized
      	content</i18n>.</help>
           <value type="default">Author,
      	John</value>
        </field> 
      </p>
             
      

xref

Text Container

Structural Element

...