<%- include('_header'); -%>

<%= cemetery.cemeteryName || "(No Name)" %> <% if (cemetery.cemeteryKey !== '') { %> <%= cemetery.cemeteryKey %> <% } %>

<%= cemetery.cemeteryName || "(No Name)" %>
Previous Cemetery Next <% if (user.userProperties.canUpdate) { %> <% } %>
<% if (cemetery.cemeteryDescription && cemetery.cemeteryDescription !== "") { %>
Description
<%= cemetery.cemeteryDescription %>
<% } %>
Address
<% if (cemetery.cemeteryAddress1 !== "") { %> <%= cemetery.cemeteryAddress1 %>
<% } %> <% if (cemetery.cemeteryAddress2 !== "") { %> <%= cemetery.cemeteryAddress2 %>
<% } %> <%= cemetery.cemeteryCity %>, <%= cemetery.cemeteryProvince %>
<%= cemetery.cemeteryPostalCode %>
<% if (cemetery.cemeteryPhoneNumber !== "") { %>
Phone Number
<%= cemetery.cemeteryPhoneNumber %>
<% } %> <% if (cemetery.parentCemeteryId !== null) { %> <% } %>

Geographic Location

<% if (cemetery.cemeteryLatitude && cemetery.cemeteryLongitude) { %>
<% } else if (cemetery.parentCemeteryLatitude && cemetery.parentCemeteryLongitude) { %>

Coordinates not available for this child cemtery.
Coordinates for the parent cemetery are shown instead.

<% } else { %>

There are no geographic coordinates associated with this cemetery.

<% } %>

Image

<% if (cemetery.cemeterySvg) { %> <% const imageURL = urlPrefix + "/internal/images/cemeteries/" + cemetery.cemeterySvg %> <%- include('../' + configFunctions.getConfigProperty('settings.publicInternalPath') + '/images/cemeteries/' + cemetery.cemeterySvg); -%> <% } else { %>

There are no image associated with this cemetery.

<% } %>
<% const burialSiteSearchUrl = urlPrefix + "/burialSites?cemeteryId=" + cemetery.cemeteryId; %>
<% if (cemetery.burialSiteCount === 0) { %>

There are no burial sites associated with this cemetery.

<% } else { %>
<% for (const burialSiteType of burialSiteTypeSummary) { %> <% } %>
Type Burial Sites Percentage
<%= burialSiteType.burialSiteType %> <%= burialSiteType.burialSiteCount %> <%= ((burialSiteType.burialSiteCount / cemetery.burialSiteCount) * 100).toFixed(1) %>%
<% for (const burialSiteStatus of burialSiteStatusSummary) { %> <% } %>
Status Burial Sites Percentage
<%= burialSiteStatus.burialSiteStatus %> <%= burialSiteStatus.burialSiteCount %> <%= ((burialSiteStatus.burialSiteCount / cemetery.burialSiteCount) * 100).toFixed(1) %>%
<% } %>
<%- include('_footerA'); -%> <%- include('_footerB'); -%>