diff --git a/grails-app/assets/javascripts/sites.js b/grails-app/assets/javascripts/sites.js index c74a78867..137da5981 100644 --- a/grails-app/assets/javascripts/sites.js +++ b/grails-app/assets/javascripts/sites.js @@ -996,14 +996,15 @@ var SitesViewModel = function(sites, map, mapFeatures, isUserEditor, projectId) } site.filterType = 'P'; site.filterTypeLabel = 'Planning site'; - if (site.type === 'compound') { - site.filterType = 'R'; - site.filterTypeLabel = 'Reporting site'; - } - else if (site.externalIds && site.externalIds[0] && site.externalIds[0].idType == 'MONITOR_PLOT_GUID') { + + if (site.externalIds && site.externalIds[0] && site.externalIds[0].idType == 'MONITOR_PLOT_GUID') { site.filterType = 'E'; site.filterTypeLabel = 'Site created via EMSA protocol using the Monitor App'; } + else if (site.type === 'compound') { + site.filterType = 'R'; + site.filterTypeLabel = 'Reporting site'; + } site.readOnly = site.type == 'compound' || PublicationStatus.isReadOnly(site.publicationStatus); return site;