#set($parts = $api.get("tour/${params.id}/part")) #if($tour.type == 'INDIVIDUAL') ## Standard tournament #set($pmap = $utils.toMap($parts)) #set($plmap = $pmap) #else ## Pairgo, rengo and teams of individuals #set($teams = $api.get("tour/${params.id}/team")) #set($pmap = $utils.toMap($teams)) #set($plmap = $utils.toMap($parts)) #set($tmap = $utils.getTeamMap($teams)) #end ## Team players do not have an individual MMS #if($tour.type == 'INDIVIDUAL' && $tour.pairing.type == 'MAC_MAHON') #set($mmbase = $api.get("tour/${params.id}/standings/0?include_preliminary=true")) #if($mmbase.isObject() && ($mmbase.error || $mmbase.message)) #if($mmbase.error) #set($error = $mmbase.error) #else #set($error = $mmbase.message) #end
#set($mmbase = []) #end #set($mmsMap = $utils.getMmsMap($mmbase)) #set($mmsPlayersMap = $utils.getMmsPlayersMap($mmbase)) #end
$parts.size() participants, $utils.countFinals($parts) confirmed.

#if($utils.showRatings('egf', $tour.country.toLowerCase()))
#end #if($utils.showRatings('ffg', $tour.country.toLowerCase()))
#end
## TableSort bug which inverts specified sort...
#if($tour.type == 'INDIVIDUAL' && $tour.pairing.type == 'MAC_MAHON')
#end #if($tour.type != 'INDIVIDUAL')
#end
#foreach($part in $parts)
Reg | Name | First name | Country | Club | PIN | FFG | Rank | Rating | MMS | Team | Participation
--- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | ---
#if($utils.showRatings('egf', $tour.country.toLowerCase()))
#end #if($utils.showRatings('ffg', $tour.country.toLowerCase()))
#end ## display MMS correction on the screen, but not when printed
#if($tour.type == 'INDIVIDUAL' && $tour.pairing.type == 'MAC_MAHON')
#end #if($tour.type != 'INDIVIDUAL') #set($teamId = $tmap[$part.id]) #set($teamName = false) #if($teamId) #set($teamName = $!pmap[$teamId].name) #end
#end

$part.name

$part.firstname

$part.country.toUpperCase()

$part.club

$!part.egf

$!part.ffg

#rank($part.rank)#if($part.mmsCorrection) (#if($part.mmsCorrection > 0)+#end$part.mmsCorrection)#end

$part.rating

$!mmsPlayersMap[$part.id]

#if($teamName)$esc.html($utils.truncate($teamName, 10))#end

#foreach($round in [1..$tour.rounds]) ## CB TODO - upstream json parsing should not give longs here, should it? #if($part.skip && $part.skip.contains($round.longValue())) $round #else $round #end #end

#end

#if($tour.type == 'INDIVIDUAL' && $tour.pairing.type == 'MAC_MAHON')
#end
#if($tour.country)
$tour.country.toUpperCase()
#end #set($needleWidth = 12) #if($utils.displayRatings('egf', $tour.country.toLowerCase())) #set($needleWidth = $needleWidth - 2) #end #if($utils.displayRatings('ffg', $tour.country.toLowerCase())) #set($needleWidth = $needleWidth - 2) #end #set($cssWidth = { 8: 'eight', 10: 'ten', 12: 'twelve' })
#* Disabled
AGA
*# #if($utils.displayRatings('egf', $tour.country.toLowerCase()))
EGF
#end #if($utils.displayRatings('ffg', $tour.country.toLowerCase()))
FFG
#end
Family name
Given name
Country
Club
Rating
Rankinitialized from rating
Final ?
Participation #foreach($r in [1..$tour.rounds])
R${r}
#end
#if($tour.type == 'INDIVIDUAL' && $tour.pairing.type == 'MAC_MAHON')
#set($underGroup = $mmsMap.get(30 + $tour.pairing.mmBar - 1))
#foreach($part in $underGroup)
$part.name $part.firstname#rank($part.rank) $part.country $part.rating
#end
#set($topGroup = $mmsMap.get(30 + $tour.pairing.mmBar))
#foreach($part in $topGroup)
$part.name $part.firstname#rank($part.rank) $part.country $part.rating
#end
#set($superGroup = $mmsMap.get(30 + $tour.pairing.mmBar + 1))
#foreach($part in $superGroup)
$part.name $part.firstname#rank($part.rank) $part.country $part.rating
#end
#end
Drop changes?
Unregister this player?
#[[
]]#