$context.putPageValue("detail",$detail)
#if( !$values && $data )
#set($values = $data.getValues($detail.id) )
#end
#if( !$values && $value )
#set($values = [$value] )
#end
#set($entity_module = $detail.getListId())
#set($searchhome = "$applink/views/modules/$!{entity_module}/results/default")
#set($ismulti = $detail.isMultiValue())
#foreach( $type in $values )
#set( $row = false )
#set( $row = $mediaarchive.getCachedData($entity_module, $type ))
#if( $row )
#set($namefield = $mediaarchive.getSearcher($entity_module).getDetail("name"))
#set($name = $searcherManager.getValue($row, $namefield, $context.getLocale()))
#set($entityid = $row.id)
#set($edithome = "$applink/views/modules/$!{entity_module}/editors/default")
#set($link = "${edithome}/tabs/index.html?entityid=$entityid&hitssessionid=$!hits.sessionId")
#if($entity_module == "searchcategory")
#set($edithome = "$apphome/views/modules/$!{entity_module}/editors/listsearchcategoriesresults")
#set($link = "${edithome}/index.html?searchcategoryid=$entityid")
#end
-
#text($name)
#end
#end
#set($pickmoduleid = $detail.getListId())
#set($pickerurl= "$applink/views/modules/$!{pickmoduleid}/editors/pickerforfield/index.html")
#set($pickmodule = $mediaarchive.getCachedData("module", $pickmoduleid ))
#set($label = "[[Choose]]")
#if($ismulti)
#set($label = "[[Add]] #text($pickmodule)")
#end
#set($id = $data.id)
#ifnull($id)
#set($id = $asset.id)
#end
$label