Skip to content
Snippets Groups Projects
Commit f901f1d3 authored by srosse's avatar srosse
Browse files

OO-716: don't show essay in the overview of a test

parent 2231ff5b
No related branches found
No related tags found
No related merge requests found
...@@ -261,14 +261,16 @@ public class QTI12AssessmentStatisticsController extends BasicController { ...@@ -261,14 +261,16 @@ public class QTI12AssessmentStatisticsController extends BasicController {
for(StatisticSurveyItem surveyItem:surveyItems) { for(StatisticSurveyItem surveyItem:surveyItems) {
Item item = surveyItem.getItem(); Item item = surveyItem.getItem();
Series series = seriesfactory.getSeries(item, null); Series series = seriesfactory.getSeries(item, null);
String name = "overview_" + count++; if(series != null) {//essay hasn't a series
VelocityContainer vc = createVelocityContainer(name, "hbar_item_overview"); String name = "overview_" + count++;
vc.contextPut("series", series); VelocityContainer vc = createVelocityContainer(name, "hbar_item_overview");
vc.contextPut("question", item.getQuestion().getQuestion().renderAsHtml(mediaBaseURL)); vc.contextPut("series", series);
vc.contextPut("questionType", item.getQuestion().getType()); vc.contextPut("question", item.getQuestion().getQuestion().renderAsHtml(mediaBaseURL));
vc.contextPut("title", item.getTitle()); vc.contextPut("questionType", item.getQuestion().getType());
mainVC.put(vc.getDispatchID(), vc); vc.contextPut("title", item.getTitle());
overviewList.add(vc.getDispatchID()); mainVC.put(vc.getDispatchID(), vc);
overviewList.add(vc.getDispatchID());
}
} }
mainVC.contextPut("overviewList", overviewList); mainVC.contextPut("overviewList", overviewList);
......
...@@ -330,6 +330,7 @@ alter table o_qp_item add constraint idx_qp_item_type_id foreign key (fk_type) r ...@@ -330,6 +330,7 @@ alter table o_qp_item add constraint idx_qp_item_type_id foreign key (fk_type) r
alter table o_qp_item add constraint idx_qp_item_license_id foreign key (fk_license) references o_qp_license(id); alter table o_qp_item add constraint idx_qp_item_license_id foreign key (fk_license) references o_qp_license(id);
alter table o_qp_taxonomy_level add constraint idx_qp_field_2_parent_id foreign key (fk_parent_field) references o_qp_taxonomy_level(id); alter table o_qp_taxonomy_level add constraint idx_qp_field_2_parent_id foreign key (fk_parent_field) references o_qp_taxonomy_level(id);
create index idx_taxon_mat_pathon on o_qp_taxonomy_level (q_mat_path_ids(255));
alter table o_qp_item_type add unique (q_type(200)); alter table o_qp_item_type add unique (q_type(200));
......
...@@ -88,6 +88,8 @@ alter table o_cl_check add constraint check_box_ctx foreign key (fk_checkbox_id) ...@@ -88,6 +88,8 @@ alter table o_cl_check add constraint check_box_ctx foreign key (fk_checkbox_id)
alter table o_cl_check add unique check_identity_unique_ctx (fk_identity_id, fk_checkbox_id); alter table o_cl_check add unique check_identity_unique_ctx (fk_identity_id, fk_checkbox_id);
create index idx_checkbox_uuid_idx on o_cl_checkbox (c_checkboxid); create index idx_checkbox_uuid_idx on o_cl_checkbox (c_checkboxid);
-- missing index
create index idx_taxon_mat_pathon on o_qp_taxonomy_level (q_mat_path_ids(255));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment