Skip to content

Commit 5e975ce

Browse files
committed
Merge remote-tracking branch 'origin/dev' into feature/issue1794
2 parents 1251ae2 + ba91e1f commit 5e975ce

File tree

7 files changed

+281
-299
lines changed

7 files changed

+281
-299
lines changed

grails-app/assets/javascripts/projects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1162,14 +1162,14 @@ function ProjectPageViewModel(project, sites, activities, userRoles, config) {
11621162
},
11631163
{
11641164
"targets":2,
1165-
"orderable": false,
1165+
"orderable": true,
11661166
"searchable": true,
11671167
"width": "2em",
11681168
"visible":config.showSiteType
11691169
},
11701170
{
11711171
"targets": 3,
1172-
"orderable": false,
1172+
"orderable": true,
11731173
"searchable": true
11741174

11751175
},

grails-app/controllers/au/org/ala/merit/ActivityController.groovy

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,10 +546,10 @@ class ActivityController {
546546

547547
def result = speciesService.searchByScientificName(scientificName)
548548
if (result) {
549-
row[species.name] = [name:result.name, listId:result.listId, guid:result.guid]
549+
row[species.name] = [name:result.name, listId:result.listId, guid:result.guid, scientificName: result.scientificName ?: result.name, commonName: result.commonName]
550550
}
551551
else {
552-
row[species.name] = [name:scientificName, listId:'unmatched', guid:null]
552+
row[species.name] = [name:scientificName, listId:'unmatched', scientificName:scientificName, commonName: '', guid:null]
553553
}
554554

555555
}

grails-app/controllers/au/org/ala/merit/ManagementUnitController.groovy

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,16 @@ class ManagementUnitController {
5151
isManagementUnitStarredByUser = userService.isManagementUnitStarredByUser(user?.userId, mu?.managementUnitId)?.isManagementUnitStarredByUser
5252
}
5353

54-
def mapFeatures = mu.managementUnitSiteId?siteService.getSiteGeoJson(mu.managementUnitSiteId) : null
55-
if (mapFeatures)
56-
mu.mapFeatures = mapFeatures
54+
def muExtent = mu.managementUnitSiteId?siteService.getSiteGeoJson(mu.managementUnitSiteId) : null
5755

5856
[managementUnit : mu,
5957
roles : roles,
6058
user : user,
6159
isAdmin : user?.isAdmin,
6260
isGrantManager : user?.isGrantManager,
6361
content : content(mu, user),
64-
isManagementUnitStarredByUser: isManagementUnitStarredByUser
62+
isManagementUnitStarredByUser: isManagementUnitStarredByUser,
63+
muExtent:muExtent
6564
]
6665
}
6766
}

grails-app/services/au/org/ala/merit/RoleService.groovy

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,7 @@ class RoleService {
7676

7777
private static final List MERIT_PROJECT_ROLES = [GRANT_MANAGER_ROLE, PROJECT_ADMIN_ROLE, PROJECT_EDITOR_ROLE, PROJECT_READ_ONLY_ROLE]
7878
public static final List MERIT_HUB_ROLES = [HUB_ADMIN_ROLE, HUB_SUPPORT_OFFICER_ROLE, HUB_OFFICER_ROLE, HUB_READ_ONLY_ROLE]
79-
80-
// Disabling the new Monitor app roles until they are implemented in Monitor.
81-
//public static final List MONITOR_ONLY_ROLES = [PROJECT_DETERMINER_SURVEYOR_ROLE, PROJECT_MODERATOR_ROLE, PROJECT_DETERMINER_ROLE, PROJECT_SURVEYOR_ROLE]
82-
public static final List MONITOR_ONLY_ROLES = [PROJECT_SURVEYOR_ROLE]
79+
public static final List MONITOR_ONLY_ROLES = [PROJECT_DETERMINER_SURVEYOR_ROLE, PROJECT_MODERATOR_ROLE, PROJECT_DETERMINER_ROLE, PROJECT_SURVEYOR_ROLE]
8380
/** Granted to ALA developers, gives access to all functions in MERIT */
8481
public static final String ALA_ADMIN_ROLE = "alaAdmin"
8582

@@ -131,9 +128,7 @@ class RoleService {
131128
}
132129

133130
Set getAllowedUserRoles() {
134-
return new HashSet([PROJECT_ADMIN_ROLE, PROJECT_EDITOR_ROLE, PROJECT_SURVEYOR_ROLE])
135-
// Disabling the new Monitor app roles until they are implemented in Monitor.
136-
//return new HashSet([PROJECT_MODERATOR_ROLE, PROJECT_ADMIN_ROLE, PROJECT_EDITOR_ROLE, PROJECT_DETERMINER_SURVEYOR_ROLE, PROJECT_SURVEYOR_ROLE, PROJECT_DETERMINER_ROLE])
131+
return new HashSet([PROJECT_MODERATOR_ROLE, PROJECT_ADMIN_ROLE, PROJECT_EDITOR_ROLE, PROJECT_DETERMINER_SURVEYOR_ROLE, PROJECT_SURVEYOR_ROLE, PROJECT_DETERMINER_ROLE])
137132
}
138133

139134
}

grails-app/views/managementUnit/index.gsp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@
112112

113113
$(function () {
114114
var managementUnit =<fc:modelAsJavascript model="${managementUnit}"/>;
115+
var muExtent = <fc:modelAsJavascript model="${managementUnitExtent}" default="null"/>;
116+
managementUnit.mapFeatures = muExtent;
115117
var config = _.extend({reportingConfigSelector:'#reporting form'}, fcConfig);
116118
var managementUnitViewModel = new ManagementUnitPageViewModel(managementUnit, config);
117119

grails-app/views/project/_editProject.gsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
<div class="col-sm-4">
8888
<label for="funding">Project Funding (GST Exclusive)</label>
8989
<div>
90-
<g:textField class="form-control form-control-sm input-small" id="funding" name="funding" data-bind="value:funding" data-validation-engine="validate[custom[number]]"/>
90+
<input type="number" step="0.01" class="form-control form-control-sm input-small" id="funding" name="funding" data-bind="value:funding" data-validation-engine="validate[custom[number]]" value="">
9191
</div>
9292
</div>
9393

0 commit comments

Comments
 (0)