#macro ( displayCatAccordian $catHeading, $listings ) #if ($catHeading != '' )

${_EscapeTool.xml($catHeading)}

#if ($listings.size() > 0) #foreach ($listing in $listings) #displayJobListing( $listing ) #end #end
#end #end #macro ( displayJobListing $listing ) #set ($sds = $listing.getChild('system-data-structure') ) #set ($closeDate = $sds.getChild("enddate").value) #set ($difference = $_MathTool.sub($closeDate, $_DateTool.getSystemTime())) #set ($openUntilFiled = $sds.getChild("OpenUntilFiled").value) #set ( $url = $listing.getChild('link').value ) #set ( $title = $sds.getChild('JobPost').getChild('JobTitle').value ) ## Determine whether or not to display this listing. #if ($openUntilFiled == "Yes" || $difference > 0)

${_EscapeTool.xml($title)}

#end #end

Printer Friendly

#set ($jobPosts = $_XPathTool.selectNodes($contentRoot, "/system-index-block/system-page[contains(system-data-structure/@definition-path, 'Employment/JobPost')]")) ## If there are JobPosts, list them by category #if ($jobPosts.size() > 0) #set ( $employmentPage = $_XPathTool.selectSingleNode($contentRoot, "/system-index-block/system-page[name='index']") ) #set ( $employmentPageLink = $employmentPage.getChild('link').value ) #set ( $employmentPageTitle = $employmentPage.getChild('display-name').value )

${_EscapeTool.xml($employmentPageTitle)}

#set ( $supportListings = $_XPathTool.selectNodes($jobPosts, ".[system-data-structure/JobPost/JobSearchCategory='Support Staff']") ) #displayCatAccordian( 'Support Staff', $supportListings ) #set ( $managerialListings = $_XPathTool.selectNodes($jobPosts, ".[system-data-structure/JobPost/JobSearchCategory='Managerial and Professional']") ) #displayCatAccordian( 'Managerial and Professional', $managerialListings ) #set ( $infotechListings = $_XPathTool.selectNodes($jobPosts, ".[system-data-structure/JobPost/JobSearchCategory='Information Technology/Technical']") ) #displayCatAccordian( 'Information Technology/Technical', $infotechListings ) #set ( $facultyListings = $_XPathTool.selectNodes($jobPosts, ".[system-data-structure/JobPost/JobSearchCategory='Faculty']") ) #displayCatAccordian( 'Faculty', $facultyListings ) #set ( $executiveListings = $_XPathTool.selectNodes($jobPosts, ".[system-data-structure/JobPost/JobSearchCategory='Executive']") ) #displayCatAccordian( 'Executive', $executiveListings )
#end