Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-699

ChoiceAuthority plugin for old-style controlled vocabularies

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.2
    • Fix Version/s: 1.7.0
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      2
    • Comments:
      10
    • Documentation Status:
      In Description

      Description

      Since XMLUI is lacking support for the JSPUI controlled vocabulary browser, I implemented a self-named plugin that publishes a ChoiceAuthority plugin for each file in ${dspace.dir}/controlled-vocabularies. The plugin has the same name as the basename of the file; e.g., controlled-vocabularies/srsc.xml is published as "srsc". Each node of the vocabulary's hierarchy is then available as an auto-completable term for that plugin/authority.

      To activate the plugin, add the following to dspace.cfg:

      plugin.selfnamed.org.dspace.content.authority.ChoiceAuthority = org.dspace.content.authority.DSpaceControlledVocabulary

      Then, to attach the Research Subject Categories vocabulary to the dc.subject field:

      choices.plugin.dc.subject = srsc
      choices.presentation.dc.subject = suggest

      Since the ChoiceAuthority plugin system binds a vocabulary to a particular metadata field system-wide, instead of making it configurable per collection (as the old controlled vocabulary system does), you'll need to either make sure that you really want it to be a global authority, or create a vocabulary-specific metadata field and use it instead.

        Attachments

          Activity

            People

            • Assignee:
              jtrimble Jeffrey Trimble
              Reporter:
              mbklein Michael B. Klein
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: