Add a new datastream

From FezWiki

Jump to: navigation, search

The following example adds a new datastream, copyrightMD, to an existing FOXML display.


[edit] Create an XSD display for the new datastream

  • Add the XSD schema for the new datastream
    • Click Administration in the top right (or left, depending on your version of Fez) of the screen
    • Select Manage Document Type XSDs from under the Configuration menu
    • In the Manage Document Type XSDs dialog, enter the following details -
      • Title: copyrightMD (To avoid problems, use the title, including capitalisation, as found in the xmlns attribute in the XML schema)
      • Version: 1.0
      • Top element name: copyright (Use the top element name as per the XSD schema; in this case <xs:element name="copyright">)
      • XSD source file: (browse to the appropriate XSD schema file)
    • Click Add Document Type XSD. The new document type will now display under Existing Document Type XSDs.
  • Add an XSD display for the new datastream
    • Click Edit Displays for the new copyrightMD document type
    • In the Manage XSD Displays for XSD copyrightMD dialog, enter the following details -
      • Title: copyrightMD Display
      • Version: 1.0
      • Object Type: (4) Reference
      • Enabled: checked
    • Click Update XSD Display. The new display type will now appear under Existing XSD Displays
  • Customise the fields for the new datastream -
    • Click Edit against the new display. You can now customise fields as required in the HTML Match Editor.

[edit] Add the new datastream to a FOXML XSD display

  • Display the Manage Document Type XSDs screen
    • Click Administration in the top right (or left) of the screen
    • Select Manage Document Type XSDs from under the Configuration menu
  • Add the new copyrightMD datastream to the required document type (e.g. Journal Article) -
    • Choose Edit Displays for the Fedora Object XML
    • Ensure the relevant document type (e.g. Journal Article) has "yes" in the Enabled? column
    • Choose Edit against the relevant document type
    • In the document tree in HTML Matching Editor, click datastream to display the looping subelements
    • Add copyrightMD subelement -
      • Scroll down to Manage XSD Looping Subelements
      • Set the following values -
        • XSD Subelement Loop Title = copyrightMD (Note: ensure name matches xmlns name in XML schema, including capitalisation)
        • Loop Type=hardset
        • Indicator Off
        • Order=2 (or as relevant)
      • Click Add XSD Looping Subelement
    • Set the following values for the copyrightMD loop -
      • datastream!ID - Show in View unchecked - hidden static text = copyrightMD (Note: must match xmlns in schema, including capitalisation)
      • datastream!CONTROL_GROUP - Show in View unchecked - hidden static text = X
      • datastream!STATE - Show in View unchecked - hidden static text = A
      • datastream!VERSIONABLE - Show in View unchecked - hidden static text = true
      • datastreamVersion - Show in View unchecked - hidden static text =
      • datastreamVersion!ID - Show in View unchecked - hidden static text = copyrightMD.0 (Note capitalisation, spacing and versioning)
      • datastreamVersion!LABEL - Show in View unchecked - hidden static text = Copyright fields
      • datastreamVersion!MIMETYPE - Show in View unchecked - hidden static text = text/xml
      • datastreamVersion!xmlContent - Show in View checked - XSD Reference = copyrightMD Version 1.0, order=1
SourceForge

University of Queensland