@@ -146,9 +146,9 @@ class LookupController {
146
146
if (pg) {
147
147
if (pg. uid[0 .. 1 ] == ' co' ) {
148
148
render collectionService. buildSummary(pg) as JSON
149
- } else if (pg[0 .. 1 ] == ' in' ) {
149
+ } else if (pg. uid [0 .. 1 ] == ' in' ) {
150
150
render institutionService. buildSummary(pg) as JSON
151
- } else if (pg[0 .. 1 ] == ' dr' ) {
151
+ } else if (pg. uid [0 .. 1 ] == ' dr' ) {
152
152
render dataResourceService. buildSummary(pg) as JSON
153
153
} else {
154
154
render pg. buildSummary() as JSON
@@ -164,9 +164,9 @@ class LookupController {
164
164
domain. list(). each {
165
165
if (it. uid[0 .. 1 ] == ' co' ) {
166
166
list << collectionService. buildSummary(it)
167
- } else if (pg [0 .. 1 ] == ' in' ) {
167
+ } else if (it . uid [0 .. 1 ] == ' in' ) {
168
168
list << institutionService. buildSummary(it)
169
- } else if (pg [0 .. 1 ] == ' dr' ) {
169
+ } else if (it . uid [0 .. 1 ] == ' dr' ) {
170
170
list << dataResourceService. buildSummary(it)
171
171
} else {
172
172
list << it. buildSummary()
@@ -235,9 +235,9 @@ class LookupController {
235
235
if (instance) {
236
236
if (instance. uid[0 .. 1 ] == ' co' ) {
237
237
render collectionService. buildSummary(instance) as JSON
238
- } else if (pg [0 .. 1 ] == ' in' ) {
238
+ } else if (instance . uid [0 .. 1 ] == ' in' ) {
239
239
render institutionService. buildSummary(instance) as JSON
240
- } else if (pg [0 .. 1 ] == ' dr' ) {
240
+ } else if (instance . uid [0 .. 1 ] == ' dr' ) {
241
241
render dataResourceService. buildSummary(instance) as JSON
242
242
} else {
243
243
render instance. buildSummary() as JSON
0 commit comments