#set($fatwireidsearcher = $searcherManager.getSearcher($catalogid, "publishdestination")) #set($fatwirequery = $fatwireidsearcher.createSearchQuery().append("name", "FatWire")) #set($fatwiredata = $fatwireidsearcher.searchByQuery($fatwirequery)) #set($fatwireid = $fatwiredata.id) #set($searcher = $searcherManager.getSearcher($catalogid, "publishqueue")) #set($query = $searcher.createSearchQuery().append("assetid", $asset.id).append("publishdestination", $fatwireid)) #set($results = $searcher.search($query)) #if ($results.size() > 0) #set($msg = "Click below to republish to FatWire.") $context.putPageValue("results",$results) $pages.include("$home$apphome/views/modules/asset/editor/fatwire/table.html", $context) #else #set($msg = "This asset is not yet available in FatWire. Click below to initialize the publication process.") #end $context.putPageValue("msg",$msg) $pages.include("$home$apphome/views/modules/asset/editor/fatwire/submitform.html", $context)