❔
Sunbird inQuiry
  • LEARN
    • Overview
    • Capabilities
    • Components
    • Technical Architecture
    • Product & Developer Guide
      • Quick Starter Guide
        • inQuiry Components
          • Editor
          • Player
          • inQuiry Service
      • Question & Question Set Editor
        • Architecture
        • Features
        • Configuration
        • Source Code
        • APIs
        • FAQ's
      • Question & Question Set Service
        • Architecture
        • Features
        • Schema
          • Question Schema
          • QuestionSet Schema
        • APIs
          • V1
            • Question API's
              • Create Question
              • Read Question
              • Read Private Question
              • Update Question
              • Submit for Review Question
              • Publish Question
              • Retire Question
              • Question List
              • Import Question
              • Copy Question
              • Reject Question
            • QuestionSet API's
              • Create QuestionSet
              • Update QuestionSet
              • Read QuestionSet
              • Read Private QuestionSet
              • Review QuestionSet
              • Reject QuestionSet
              • Publish QuestionSet
              • Retire QuestionSet
              • Update Hierarchy QuestionSet
              • Read QuestionSet Hierarchy
              • Import QuestionSet
              • Copy QuestionSet
          • V2
            • Question API's
              • Create Question
              • Read Question
              • Read Private Question
              • Update Question
              • Submit for Review Question
              • Reject Question
              • Publish Question
              • Copy Question
              • Import Question
              • Question List
              • Retire Question
            • QuestionSet API's
              • Create QuestionSet
              • Read QuestionSet
              • Read Private QuestionSet
              • Update QuestionSet
              • Review QuestionSet
              • Reject QuestionSet
              • Publish QuestionSet
              • Update Hierarchy QuestionSet
              • Read QuestionSet Hierarchy
              • Import QuestionSet
              • Copy QuestionSet
              • Retire QuestionSet
        • Configuration
        • Source Code
        • FAQs
      • Question Set Player
        • Architecture
        • Configuration
        • Source Code
        • APIs
        • FAQ's
      • Analytics
      • Code Coverage Stats
    • 🚀Product Roadmap
  • ENGAGE
    • Discuss
  • Use
    • Overview
    • Developer Installation
      • Question & Question Set Service
        • Installation
        • Configuration
      • Question Set Editor
        • Installation
          • Object Category Definition
          • Sample Form Configuration
      • Question set Player
        • Installation
    • Release Plan & Calendar
      • Release calendar 5.2.0, 5.3.0, 5.4.0, 5.5.0, 5.6.0
      • Release calendar 5.7.0, 6.0.0,6.1.0 and 6.2.0
    • Release notes
      • inQuiry - Release v8.0.0 (Ongoing)
      • inQuiry - Release v7.0.0 (Latest)
      • inQuiry - Release v6.2.0
      • inQuiry - Release v6.1.0
      • inQuiry - Release v6.0.0
      • inQuiry - Release v5.7.0
      • inQuiry - Release v5.6.0
      • inQuiry - Release v5.5.0
      • inQuiry - Release v5.4.0
      • inQuiry - Release v5.3.0
      • inQuiry - Release v5.2.0
      • inQuiry - Release v5.1.0
      • inQuiry - Release v5.0.0
      • inQuiry - Release V 4.10.0
      • inQuiry - Release V 4.9.0
      • inQuiry - Release V 4.8.0
      • inQuiry - Release V 4.7.0
    • Deprecations
      • Release-5.6.0 (upcoming)
      • Release-5.5.0
    • Learn More
      • Dependencies
      • Delete User Functionality
        • User PII Cleanup
        • Asset Ownership Transfer
  • Guidelines or Best practices
    • Testing QA guidelines
    • Developer coding guidelines
  • Archived
    • Use Cases
    • Components
    • Server Installation
    • Capabilities
Powered by GitBook
On this page
  • Mode
  • Media Upload Config
  • Organize TOC
  • Add Collaborator
  • Question Linking Limit
  • Icon
  • Common Framework License URL
  • Content Policy URL

Was this helpful?

Edit on GitHub
  1. LEARN
  2. Product & Developer Guide
  3. Question & Question Set Editor

Features

PreviousArchitectureNextConfiguration

Last updated 1 year ago

Was this helpful?

Following are the features and related configuration to enable these features in question set editor:

Mode

The editor can be set into different type of mode, we can achieve this by changing the value of the Config#mode property. Following are types of mode: 1. read 2. edit 3. review - read The read mode is a feature within the editor that allows users to see the editor. But you cannot edit it. Here’s the configuration:

"config": {
   mode: 'read',
}

- edit All the fields will be enabled to edit for the collection creator. Here’s the configuration:

"config": {
   mode: 'edit',
}

- review It’s similar to read mode only. but here users can perform some actions such as publish, reject. Here’s the configuration:

"config": {  
    mode: 'review',
}

You define which fields of a form can be editable for a specific mode with limited editing rights, leaving the rest of the fields non-editable to them. - editableFields Its object for different types of mode based on which some fields get enabled. Here is the sample configuration for review mode:

"config": {  
    mode: 'review',
    editableFields: {
    "review": [
        "instructions"
    ]
}
}

Note: In above case editableFields.review: ['instructions'] so only instruction field is enabled for reviewer while reviewing the questionset.

Media Upload Config

Media Config sets the max size limit for images to be uploaded in the question set editor and the type of images. Here is the configuration:

"config": {  
    assetConfig: {
        "image": {
            "size": 1,
            "sizeType": "MB",
            "accepted": "png, jpeg"
        }
    }
}

Organize TOC

The maximum number of levels in the questionset has to be defined using the maxDepth property. This has to be updated in the object metadata of the primary category definition under hierarchy. maxDepth defines the level of questionset i.e at which level question is to be linked. If maxDepth is set as 0, Create New button get enabled to question at root node.

Note: children at root node is to be defined which defines the type of question can be created at root node. Here is the default value to be used for children.

children: {
    Question: [
      'Multiple Choice Question',
      'Subjective Question'
    ]
  }

he maxDepth is set as 1, we need to define hierarchy also.

Here is the default value of hierarchy we are using, you can change the name of level also

hierarchy: {
    "level1": {
        "name": "Section",
        "type": "Unit",
        "mimeType": "application/vnd.sunbird.questionset",
        "primaryCategory": "Practice Question Set",
        "iconClass": "fa fa-folder-o",
        "children": {
            "Question": [
                "Multiple Choice Question",
                "Subjective Question"
            ]
        }
    }
}

Note: If you add more depth you need to add more levels in hierarch

Add Collaborator

This feature allow us to share the questionset with other users so they can contribure back to the same questionset. To enables the add collaborator option in the question set editor we need to setshowAddCollaborator as true. Here is the configuration:

"config": {  
    showAddCollaborator: true
    }

Question Linking Limit

questionSet.maxQuestionsLimit

This defines the maxiumun number of question to be created in a questionset.

questionSet: {
    "maxQuestionsLimit": "500"
}

Suppose if "maxQuestionsLimit" is set to “5“ then while trying to create new question it will give error maxlimit message as:

Icon

This defines the icon which comes in the node and levels, you can set your own icon here by adding the class of icon, in root node for iconClass: 'fa fa-book' icon is shown as:

Common Framework License URL

It defines where should the creative common framework link should be redirected.

Ex - commonFrameworkLicenseUrl: 'https://creativecommons.org/licenses/'

Content Policy URL

It defines where should the content policy link should be redirected.

contentPolicyUrl: "/term-of-use.html" we are using this config in Diksha as it redirects to (https://diksha.gov.in/term-of-use.html)