Skip to content

Commit

Permalink
SAM-3291 - Clean up code duplication in AssessmentGradingQueries for …
Browse files Browse the repository at this point in the history
…Image Map (sakaiproject#4936)
  • Loading branch information
jonespm authored Oct 30, 2017
1 parent 9793fb2 commit 7302713
Showing 1 changed file with 1 addition and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2186,37 +2186,7 @@ public List getExportResponsesData(String publishedAssessmentId, boolean anonymo

count++;
} else if (typeId.equals(TypeIfc.IMAGEMAP_QUESTION)) {
log.debug("MATCHING");

ItemTextIfc itemTextIfc = (ItemTextIfc) publishedItemTextHash.get(grade.getPublishedItemTextId());
Long sequence = itemTextIfc.getSequence();
String temptext = (grade.getIsCorrect()) ? "OK" : "No OK";

String thistext = sequence + ": " + temptext;

if (count == 0)
maintext = thistext;
else
maintext = maintext + "|" + thistext;

count++;
} else if (typeId.equals(TypeIfc.IMAGEMAP_QUESTION)) {
log.debug("MATCHING");

ItemTextIfc itemTextIfc = (ItemTextIfc) publishedItemTextHash.get(grade.getPublishedItemTextId());
Long sequence = itemTextIfc.getSequence();
String temptext = (grade.getIsCorrect()) ? "OK" : "No OK";

String thistext = sequence + ": " + temptext;

if (count == 0)
maintext = thistext;
else
maintext = maintext + "|" + thistext;

count++;
} else if (typeId.equals(TypeIfc.IMAGEMAP_QUESTION)) {
log.debug("MATCHING");
log.debug("IMAGEMAP_QUESTION");

ItemTextIfc itemTextIfc = (ItemTextIfc) publishedItemTextHash.get(grade.getPublishedItemTextId());
Long sequence = itemTextIfc.getSequence();
Expand Down

0 comments on commit 7302713

Please sign in to comment.