#set( $xmledithome = $context.getPageProperty("xmledithome"))
$context.putPageValue("xmledithome",$xmledithome)
#if(!$detailviewercolumns)
#set($detailviewercolumns = 1)
#end
#set($detailviewercolumnclass = "col-md-12")
#if($detailviewercolumns == 2)
#set($detailviewercolumnclass = "col-md-6")
#end
#foreach( $detail in $details )
#ifnotnull($detail.title)
$!context.putPageValue("details", $detail)
$pages.include("$apphome/components/xml/detailviewersection.html", $context)
#end
#if($detail.dataType == "searchjoin" )
#set($viewtype = "searchjoin" )
#else
#set($viewtype = $detail.viewType)
#end
#if (!$viewtype)
#set($viewtype = $detail.dataType)
#end
#if (!$viewtype || $viewtype== "text")
#set ($viewtype = "default")
#end
#set( $target = "${detail.id}.value" )
#set($values = false)
#set($value = $searcherManager.getValue($data, $detail, $context.getLocale() ) )
#if($detail.isMultiValue())
#set($values = $value )
#end
#set( $editrow = $detail.isEditable() && $readonly != "true")
#if($editrow || $value || $values)
$!context.putPageValue("detail",$detail)
$!context.putPageValue("value", $value)
$!context.putPageValue("values",$values)
###if( $editrow || !$detail.isEditable() || $detail.dataType == "searchjoin" )
#if( !$detail.hidelabel)
#end
#if( $editrow )
$pages.include("$xmledithome/detailedit.html", $context)
#else
##NOT EDITABLE
$pages.include("$xmledithome/detailreadonly.html", $context)
#end
#if ( $detail.note )
$context.getText($detail.note.toString())
#end
###end
#if ($detail.viewType && ($detail.viewType == "html" || $detail.viewType == "largehtml"))
#if($usedhtml)
#set( $usedhtml = "htmltextarea=${detail.getId()}&$usedhtml")
#else
#set( $usedhtml = "htmltextarea=${detail.getId()}")
#end
#end
#end
#end