Skip to content

Commit 5bdd66c

Browse files
committed
#360 revised the wording on templates
1 parent 31a4d20 commit 5bdd66c

File tree

8 files changed

+14
-16
lines changed

8 files changed

+14
-16
lines changed

grails-app/i18n/messages.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ biocache.view.this.record=View this {0} record
115115
biocache.images.view.all=<b>View all</b> the added/changed records
116116
biocache.images.disable.this=<b>Disable this alert</b> or manage your alerts
117117
biocache.images.alt.image=Image for record {0}
118-
datasets.view.details.of.the.added=View details of the added/changed datasets
118+
datasets.view.details.of.the.added=View details of the added datasets
119119
datasets.update=Datasets update
120120
datasets.name=Name
121121
datasets.link=Link

grails-app/init/au/org/ala/alerts/BootStrap.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ class BootStrap {
200200
new PropertyPath([name: "dataset_count", jsonPath: "\$.facetResults[0].fieldResult", query: newOccurrenceDatasets, fireWhenChange: true]).save()
201201
}
202202

203-
title = messageSource.getMessage("query.datasets.title", null, siteLocale)
203+
/* title = messageSource.getMessage("query.datasets.title", null, siteLocale)
204204
descr = messageSource.getMessage("query.datasets.descr", null, siteLocale)
205205
if(Query.findAllByName(title).isEmpty()){
206206
Query newDatasets = (new Query([
@@ -217,7 +217,7 @@ class BootStrap {
217217
idJsonPath: 'uid'
218218
])).save()
219219
new PropertyPath([name: "dataset_count", jsonPath: "\$", query: newDatasets, fireWhenChange: true]).save()
220-
}
220+
}*/
221221

222222
title = messageSource.getMessage("query.species.lists.title", null, siteLocale)
223223
descr = messageSource.getMessage("query.species.lists.descr", null, siteLocale)

grails-app/services/au/org/ala/alerts/DiffService.groovy

-4
Original file line numberDiff line numberDiff line change
@@ -281,10 +281,6 @@ class DiffService {
281281
records.add(record)
282282
}
283283
}
284-
int maxRecords = grailsApplication.config.getProperty("biosecurity.query.maxRecords", Integer, 500)
285-
if (records.size() > maxRecords) {
286-
records = records.subList(0, maxRecords)
287-
}
288284

289285
return records
290286
}

grails-app/views/admin/query.gsp

+6-4
Original file line numberDiff line numberDiff line change
@@ -140,18 +140,20 @@
140140
<div style="text-align: right;">
141141
<hr>
142142
<div style="padding: 5px;">
143-
<label>Evaluate the new record discovery algorithm by comparing the latest and previous results in database </label><g:link class="btn btn-info" controller="notification" action="evaluateChangeDetectionAlgorithm" params="[queryId: query.id, queryResultId: queryResult.id, emailMe:true]" target="_blank">
143+
<label>Evaluate the new record discovery algorithm using <i class="fa fa-info-circle" aria-hidden="true" style="color: #c44d34;"
144+
title="It won't query our data services"></i>
145+
<span style="color:#c44d34;">the last check results</span> in Alerts.</label><g:link class="btn btn-info" controller="notification" action="evaluateChangeDetectionAlgorithm" params="[queryId: query.id, queryResultId: queryResult.id, emailMe:true]" target="_blank">
144146
Evaluate & email me
145147
</g:link>
146148
</div>
147149
<g:if test="${queryType != 'biosecurity'}">
148150
<div style="padding: 5px;">
149-
<label>Collect the latest records, compare with the current result in the database, Email me the results </label><g:link class="btn btn-info" controller="admin" action="emailMeLastCheck" params="[queryId: query.id, frequency: queryResult.frequency?.name]" target="_blank">
150-
Collect & Email me
151+
<label>Query the latest records from the data services, compare them with the current records in Alerts, and email me the findings.</label><g:link class="btn btn-info" controller="admin" action="emailMeLastCheck" params="[queryId: query.id, frequency: queryResult.frequency?.name]" target="_blank">
152+
Query & Email me
151153
</g:link>
152154
</div>
153155
<div style="padding: 5px;">
154-
<label>Collect the latest records, compare them with the current results in the database, and display the changes.</label> <g:link class="btn btn-info" controller="admin" action="dryRunQuery" params="[queryId: query.id, frequency: queryResult.frequency?.name]" target="_blank">
156+
<label>Query the latest records, compare them with the current records in Alerts, and display the changes.</label> <g:link class="btn btn-info" controller="admin" action="dryRunQuery" params="[queryId: query.id, frequency: queryResult.frequency?.name]" target="_blank">
155157
Dry run (no DB update, no emails)
156158
</g:link>
157159
</div>

grails-app/views/email/annotations.gsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</tr>
3333
<tr>
3434
<td style="background-color: #E8E8E8;color: #000;padding: 40px 30px 40px 30px;text-align: center;font-family: 'Roboto', sans-serif;font-size: 22px;line-height: 1.5;">
35-
<div> ${totalRecords} occurrence ${totalRecords == 1 ? 'record' : 'records'} ${totalRecords == 1 ? 'has' : 'have'} been updated
35+
<div>Annotations on ${totalRecords} occurrence ${totalRecords == 1 ? 'record' : 'records'} have been updated
3636
</div>
3737
</td>
3838
</tr>

grails-app/views/email/biocacheImages.gsp

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@
6060
<td style="background-color: #E8E8E8;color: #000;padding: 40px 30px 40px 30px;text-align: center;font-family: 'Roboto', sans-serif;font-size: 22px;line-height: 1.5;">
6161
<g:set var="totalRecords" value="${totalRecords}" />
6262
<div>
63-
<g:formatNumber number="${totalRecords}" format="###,###" /> ${totalRecords == 1 ? ' record with images ' : ' records with images'} ${totalRecords == 1 ? 'has' : 'have'} been added
63+
<g:formatNumber number="${totalRecords}" format="###,###" /> ${totalRecords == 1 ? ' new record with images ' : 'new records with images'} ${totalRecords == 1 ? 'has' : 'have'} been added
6464
</div>
6565
<br/>
6666
<div>
67-
<a class="btn info-button" href="${moreInfo}">View all records with new images</a>
67+
<a class="btn info-button" href="${moreInfo}">View all new records with images</a>
6868
</div>
6969
</td>
7070
</tr>

grails-app/views/email/dataresource.gsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</tr>
4545
<tr>
4646
<td style="background-color: #E8E8E8;color: #000;padding: 40px 30px 40px 30px;text-align: center;font-family: 'Roboto', sans-serif;font-size: 22px;line-height: 1.5;">
47-
<div> ${totalRecords} ${totalRecords == 1 ? 'dataset' : 'datasets'} ${totalRecords == 1 ? 'has' : 'have'} been updated
47+
<div> ${totalRecords} ${totalRecords == 1 ? 'dataset' : 'datasets'} ${totalRecords == 1 ? 'has' : 'have'} been added
4848
</div>
4949
<div style="padding-top: 20px;">
5050
<a class="btn info-button" href="${moreInfo}"><g:message code="datasets.view.details.of.the.added" /></a>

grails-app/views/email/myAnnotations.gsp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
</tr>
3333
<tr>
3434
<td style="background-color: #E8E8E8;color: #000;padding: 40px 30px 40px 30px;text-align: center;font-family: 'Roboto', sans-serif;font-size: 22px;line-height: 1.5;">
35-
<div> ${totalRecords} occurrence ${totalRecords == 1 ? 'record' : 'records'} ${totalRecords == 1 ? 'has' : 'have'} been updated
35+
<div>Annotations on ${totalRecords} occurrence ${totalRecords == 1 ? 'record' : 'records'} have been updated
3636
</div>
3737
</td>
3838
</tr>

0 commit comments

Comments
 (0)