#set( $moduleid = $context.findValue("module") ) #set ( $defaultview = $userprofile.getDefaultViewForModule($moduleid) ) #set( $searchhome = $context.findValue("searchhome") ) #if ( $hits.size() == 0 ) $pages.stream("/${content.searchhome}/empty.html", $context) #else #set( $resultdetail = $searcher.getDetailsForView("${moduleid}/${moduleid}resultstable", $userprofile)) ##set ( $canedit = $context.getPageValue("${moduleid}edit") ) #set($popupdetail = $searcher.getDetailsForView("${moduleid}/${moduleid}popupdetail")) #if ($popupdetail && $popupdetail.size() > 0) #set( $enablepopup = "true") #end #set($module = $searcherManager.getData($catalogid, "module", $moduleid ) )
#if($canviewselections) #end #set( $sortby = $hits.getSearchQuery().getSortBy() ) #foreach( $detail in $resultdetail ) #end #set( $even = true ) #set($count = 0) #foreach ( $cell in $hits.getPageOfHits() ) $context.putPageValue('data', $cell) $context.putPageValue('cell', $cell) #set( $clink = "$home${content.linkprefix}${cell.id}${content.linksuffix}" ) #if($canviewselections) #end #foreach( $detail in $resultdetail ) #end #set($count = $count + 1) #end
#text( $detail.text ) #if( $edit) #end
#set($val = false) #set( $val = $cell.get($detail.id) ) #if( !$val && $detail.render ) #set($val = $searcherManager.getValue($catalogid,$detail.render, $cell.properties) ) #end #if( !$val ) #set($val = "") #end $context.putPageValue('val', $val) $context.putPageValue('detail', $detail) $pages.include("/${content.searchhome}/cell.html", $context)
$pages.stream("/${content.searchhome}/navigate.html", $context) #if($enablepopup) #end #end #foreach($userbucket in $hits.getAggregationJson().userquestions.buckets ) $testbench.getData("user",$userbucket.key) #foreach($question in $userbucket.questions.buckets) Question: $testbench.getData("question","$question.key").text
Times seen: $question.doc_count
Overall Score : $question.percent.value #foreach($item in $question.scores.buckets)
#if($item.key==0)Wrong: #else Correct: #end $item.doc_count
#end #end #end #foreach($catbucket in $hits.getAggregationJson().categorybreakdown.buckets) Category: ($catbucket.key) $testbench.getData("questioncategory",$catbucket.key) - Total Questions answered: $catbucket.doc_count Overall Score Overall Score : $catbucket.percent.value #foreach($item in $catbucket.scores.buckets)
#if($item.key==0)Wrong: #else Correct: #end $item.doc_count
#end
#end Dates ##$hits.getAggregationJson().dates.buckets #foreach($bucket in $hits.getAggregationJson().dates.buckets) #foreach($user in $bucket.user.buckets ) #if($user.doc_count > 100) #end #end #end
$bucket.key_as_string $testbench.getData("user",$user.key) Userid:$user.key Answered $user.doc_count questions
#foreach($teambucket in $hits.getAggregationJson().teamquestions.buckets) Team: $testbench.getData("learningGroup", $teambucket.key)
#foreach($item in $teambucket.tests.buckets) Test: $testbench.getData("testplan", $item.key)
#foreach($item in $item.scores.buckets) #if($item.key==0)Wrong: #else Correct: #end $item.doc_count
#end Percent: $item.percent.value

#end
#end ## $pages.include("/${content.searchhome}/actions.html", $context)