Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
# Conflicts:
#	build.gradle
  • Loading branch information
Adam Collins committed Feb 12, 2024
2 parents 040426a + b8aa171 commit e38dfc4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
buildscript {
version "5.1.0"
version "5.1.1"
group "au.org.ala"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ class LookupController {
if (pg) {
if (pg.uid[0..1] == 'co') {
render collectionService.buildSummary(pg) as JSON
} else if (pg[0..1] == 'in') {
} else if (pg.uid[0..1] == 'in') {
render institutionService.buildSummary(pg) as JSON
} else if (pg[0..1] == 'dr') {
} else if (pg.uid[0..1] == 'dr') {
render dataResourceService.buildSummary(pg) as JSON
} else {
render pg.buildSummary() as JSON
Expand All @@ -164,9 +164,9 @@ class LookupController {
domain.list().each {
if (it.uid[0..1] == 'co') {
list << collectionService.buildSummary(it)
} else if (pg[0..1] == 'in') {
} else if (it.uid[0..1] == 'in') {
list << institutionService.buildSummary(it)
} else if (pg[0..1] == 'dr') {
} else if (it.uid[0..1] == 'dr') {
list << dataResourceService.buildSummary(it)
} else {
list << it.buildSummary()
Expand Down Expand Up @@ -235,9 +235,9 @@ class LookupController {
if (instance) {
if (instance.uid[0..1] == 'co') {
render collectionService.buildSummary(instance) as JSON
} else if (pg[0..1] == 'in') {
} else if (instance.uid[0..1] == 'in') {
render institutionService.buildSummary(instance) as JSON
} else if (pg[0..1] == 'dr') {
} else if (instance.uid[0..1] == 'dr') {
render dataResourceService.buildSummary(instance) as JSON
} else {
render instance.buildSummary() as JSON
Expand Down
6 changes: 3 additions & 3 deletions grails-app/domain/au/org/ala/collectory/Institution.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,11 @@ class Institution implements ProviderGroup, Serializable {
* @return List of Collection
*/
def listCollections() {
List result = collections.collect {it}
List result = collections.collect { it }
if (childInstitutions) {
def list = childInstitutions.tokenize(' ')
Collections.createCriteria().list (fetch: [collections: 'join']) {
in ('id', list)
Institution.createCriteria().list(fetch: [collections: 'join']) {
in ('uid', list )
}.each {
result.addAll it.listCollections()
}
Expand Down

0 comments on commit e38dfc4

Please sign in to comment.