- By default, the controlled vocabulary functionality is disabled since it is not compatible with WAI Guidelines. To enable it, uncomment the following line in your dspace.cfg:#webui.controlledvocabulary.enable = true
- DSpace only has the license to redistribute the following controlled vocabularies:
- Norwegian Science Index (nsi.xml) - By default, this vocab is not used
- Swedish Research Subject Categories (srsc.xml) - When enabled, this vocab is used with the Subject ( ) metadata field.
- Each of the above controlled vocabularies is defined (in dspace/config/controlled-vocabularies/) via an XML with structure similar to:
- The above XML structure would generate a hierarchical controlled vocabulary with the following structure:
- Using this structure, if a submitter selected in the above hierarchy, the item would be assigned a subject which is an aggregation of all terms above the selected term in the hierarchy, e.g.
- You may create your own custom controlled vocabulary by generating an XML structure for it similar to above. Once created, place your custom controlled vocabulary alongside the preexisting controlled vocabularies in dspace/config/controlled-vocabularies/
- There is a schema provided at dspace-source/docs/controlledvocabulary.xsd. The following fields are currently available in this XML Structure (optional attributes/fields are marked)
- - represents a single term in the hierarchy
- (optional) - a unique identifier for this term
- - a label for this term. This is the actual controlled text displayed in DSpace and stored in the metadata for an item.
- (optional)- represents the "composed by" relationship between terms. So, in the example on the previous page, is specified as being composed by and
- (optional) - similar to , but represents the "is related to" relationship between terms.
- (optional) - specifies a note related to a term. This is never displayed but is useful for your own documentation/notes.
- To actually use a controlled vocabulary with the submission input forms (see image on previous page), you must specify the controlled vocabulary to use for a specific metadata field. This can be achieved using the Alter submission input forms tag within input-forms.xml. For more information, see the notes on the tag in the section
- Stop and restart Tomcat (See Quick Restart in Rebuild DSpace).