Community:OnRamp/documentation/usagedocs/sysadmin/howto/add NSDL DC

From NSDLWiki

Jump to: navigation, search

Community:OnRamp -> Usage Documents

Contents

[hide]


Conventions

Bold Values - should be used exactly as shown.
Italic Values - are suggested values to use.


HOW TO: Add NSDL_DC to a Document Type

  • goto Administration -> Manage Document Type XSDs
  • click Edit Displays for Fedora Object XML
  • click Edit for document type you want to update


Add Datastream

  • click datastream in the left hand tree
  • at the bottom of the form in Manage XSD Looping Subelement, add a subelement loop with the following...
Field Value
XSD Subelement Loop Title: NSDL_DC
Subelement Loop Type: Hardset (One Loop)
Indicator: Indicator Off
Indicator Value: leave blank
Order: 1+largest order number (ex. 6) !!! REQUIRED - will not add if this is left blank !!!
  • click button Add XSD Looping Subelement


Add Datastream Version Field

  • click datastreamVersion under datastream
  • click Link in NSDL_DC row
  • set fields as follows...
Field Value
Field Type: Hidden Static Text
All remaining fields use defaults
  • click button Create XSD Element to HTML Element Match


Add XML Content Field

  • click xmlContent under datastream -> datastreamVersion
  • click Link in NSDL_DC row
  • set fields as follows...
Field Value
Field Type: XSD Reference(s)
All remaining fields use defaults
  • click button Create XSD Element to HTML Element Match (remaining fields use defaults)
  • in Manage XSD Display References area, add a display reference with the following...
Field Value
XSD Display: NSDL DC Display (CVs) Version 1.0
Order: 1
  • click button Add XSD Display Reference


contentLocation AND binaryContent Fields

Do not modify contentLocation nor binaryContent Fields. These are special fields for handling external reference links and uploaded content, respectively.


Add remaining Hidden Static Fields

The remaining fields are all setup the same, except for the actual static text value. For all remaining fields that already have a definition (see table below)...

  • click the element in the tree
  • click Link in NSDL_DC row
  • set fields as follows...
Field Value
Field Type: Hidden Static Text
Enabled in Form? checked
Show in View Details? UNCHECKED
Value in Tag check
Static Text set value according to table below
All remaining fields use defaults
  • click button Create XSD Element to HTML Element Match

List of Static Text Values for Hidden Static Fields

Tree Parents Field Static Text
datastream -> datastreamVersion ID NSDL_DC1.0
datastream -> datastreamVersion LABEL NSDL Dublin Core
datastream -> datastreamVersion MIMETYPE text/xml
datastream ID NSDL_DC
datastream CONTROL_GROUP X
datastream STATE A
datastream VERSIONABLE true

Note: The first part of the datastreamVersion ID and the datastream ID should be identical.

Personal tools