#set($service = $serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryLocalService"))
#set($metadata = $serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMStructureLocalService"))
#set($metadata2 = $serviceLocator.findService("com.liferay.document.library.kernel.service.DLFileEntryMetadataLocalService"))
#set($ddmcontent = $serviceLocator.findService("com.liferay.dynamic.data.mapping.service.DDMContentLocalService"))
#set($doc = $Bild.getData())
#set($gid = $stringUtil.split($doc,"/").get(2))
#set($fid = $stringUtil.split($doc,"/").get(3))
#set ($fileTitle = $stringUtil.split($doc,"/").get(4))
#set ($uuid= $stringUtil.split($doc,"/").get(5))
#set ($uuid= $stringUtil.split($uuid,"?").get(0))
#set ($tmp = {})
#set ($decoder = $tmp.class.forName("java.net.URLDecoder").newInstance())
#set ($fileTitle = $decoder.decode($fileTitle, "UTF-8"))
#set ($fileEntry=$service.getFileEntryByUuidAndGroupId($uuid,$getterUtil.getLong($gid)))
#set($fileEntryTypeId = $fileEntry.getFileEntryTypeId())
#set($ddmstruct = $metadata.getDLFileEntryTypeStructures($fileEntryTypeId))
#set($fileVersionId=$fileEntry.getFileVersion().getFileVersionId())
#set($structureId = $ddmstruct.get(0).getStructureId())
#set($meta = $metadata2.getFileEntryMetadata($structureId,$fileVersionId))
#set($contentid = $meta.getDDMStorageId())
#set($data=$ddmcontent.getDDMContent($contentid).getXml() )
#if(!$validator.isNull($data))
#set($alta= $stringUtil.split($data,"text2234").get(1))
##set($altb= $stringUtil.split($alta,"[CDATA[").get(1))
##set($alt= $stringUtil.split($altb,"]]").get(0))
##set($quellea= $stringUtil.split($data,"text8493").get(1))
##set($quelleb= $stringUtil.split($quellea,"[CDATA[").get(1))
##set($quellec= $stringUtil.split($quelleb,"]]").get(0))
#end
#set ( $quelle = " | Foto: $quellec" )
#if($quelle==" | Foto: " || $validator.isNull($quellec))
#set ( $quelle = "" )
#end
#if($alt=="" || $validator.isNull($alt))
#set ( $alt = $fileTitle )
#end