Skip to content

Commit

Permalink
fix: fix entity urls
Browse files Browse the repository at this point in the history
  • Loading branch information
ajmacdonald committed Aug 16, 2018
1 parent 1c07625 commit 9bbcf90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ function callCWRC(url, queryString, nameType) {
console.log(parsedJSON)
return parsedJSON.response.objects ? parsedJSON.response.objects.map(
(record) => {
let id = record.solr_doc.PID
let name = record.solr_doc.fgs_label_s
let uri = entityRoot + '/'+ record.object_url
let id = record.PID
let name = record.object_label
let uri = entityRoot + '/'+ id
return {id, uri, uriForDisplay: uri, name, nameType, repository: 'CWRC', originalQueryString: queryString}
}) : []
})
Expand Down

0 comments on commit 9bbcf90

Please sign in to comment.