#if($TabName == $ResourceBundle.getString('SharePointRepository.Metadata') && ${SeqNum} == ${SelectedNum})

$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.MetadataRules')) |
| $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.PathMatch')) | $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Action')) | $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.AllMetadata')) | $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.Fields'))
#set($rulecounter = 0) #set($rownumber = 0) #foreach($metadatarule in $METADATARULES) #if(($rownumber % 2) == 0)
#else
#end |
#set($rownumber = $rownumber + 1) #if(($rownumber % 2) == 0)
#else
#end | $Encoder.bodyEscape($metadatarule.get('THEPATH')) | $metadatarule.get('THEACTION') | $metadatarule.get('ALLFLAG') | #foreach($field in $metadatarule.get('FIELDLIST')) #end $Encoder.bodyEscape($metadatarule.get('FIELDS'))
#set($rownumber = $rownumber + 1) #set($rulecounter = $rulecounter + 1) #end #if($rulecounter == 0)
$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoMetadataIncluded'))
#end #if(($rownumber % 2) == 0)
#else
#end |
$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NewRule')) | #if($METAPATHLIBRARY) #end $Encoder.bodyEscape($METAPATHSOFAR) |  | $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.IncludeAllMetadata')) | #if($METAFIELDLIST && $METAFIELDLIST.size() > 0) #end
#if($METAMESSAGE) $Encoder.bodyEscape($METAMESSAGE)
#else | #if($METAPATHSOFAR.length() > 1 && ($METAPATHSTATE == 'site' || $METAPATHSTATE == 'library')) #end | #if($METAPATHSTATE == 'site' && $METACHILDSITELIST && $METACHILDSITELIST.size() > 0) #end #if($METAPATHSTATE == 'site' && $METACHILDLIBLIST && $METACHILDLIBLIST.size() > 0) #end #if($METAPATHSTATE == 'site' && $METACHILDLISTLIST && $METACHILDLISTLIST.size() > 0) #end #if($METAPATHSTATE != 'list') #end #end

$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.PathMetadata'))

$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.AttributeName')) |
#set($mapcounter = 0) #foreach($mapitem in $MAPLIST)
| $Encoder.bodyEscape($mapitem.get('MATCH')) | ==> | $Encoder.bodyEscape($mapitem.get('REPLACE'))
#set($mapcounter = $mapcounter + 1) #end #if($mapcounter == 0)
$Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.NoMappingsSpecified'))
#end
#set($mapcounterplusone = $mapcounter + 1)
| $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.MatchRegexp')) | ==> | $Encoder.bodyEscape($ResourceBundle.getString('SharePointRepository.ReplaceString'))

#else #set($rulecounter = 0) #foreach($metadatarule in $METADATARULES) #foreach($field in $metadatarule.get('FIELDLIST')) #end #set($rulecounter = $rulecounter + 1) #end #set($mapcounter = 0) #foreach($mapping in $MAPLIST) #set($mapcounter = $mapcounter + 1) #end #end