Question Set Editor
...
Code Block |
---|
frameworkDefaultValues: { hospital: 'Apollo', department: 'Cardiology', ... ... } |
...
Place where above passed BMGS is currently getting fetched and getting added to question metadata
File - question.component.ts
...
Board value is getting displayed to the contents
...
Suggestion1 - We can remove showing “By CBSE”Suggestion2 - Question - Can we stop showing this board value ?
If we have to show this value we can make it configurable if showing a field is needed:
Solution:
We can make this field configurable by passing a config to resource-library
Code Block |
---|
editorConfig = {
config: {
...
...
libraryConfig: {
createdByField: 'board' // board, hospital, school, etc..
}
}
} |
Using this libraryConfig we can display whichever value we want to show in above page.
...
BMGS is present in SessionContext.ts file
...
We can remove BMGS fields from these files.
...
QuML Player
Board,medium,grade,subject,etc present in the getContent method.
Above method is part of demo application which is running player.
As this is not part of player core code we don’t need to remove it
...
mock data of BMGS for unit test cases
We have mock data of board, board, medium, grade, subject in these files for unit test cases
Code Block |
---|
/quml-library.service.spec.data.ts
/main-player/main-player.component.spec.data.ts
/mcq/mcq.component.spec.ts
/sa/sa.component.spec.ts
/section-player/section-player.component.spec.data.ts
/services/viewer-service/viewer-service.spec.data.ts |
We can remove the board, medium, grade, subject from these mock data.