Skip to content

Commit

Permalink
Tweaks #337
Browse files Browse the repository at this point in the history
  • Loading branch information
jlpereira committed Jan 23, 2019
1 parent e920f15 commit 9dfd854
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@
promises.push(this.getList(`/topics/select_options?klass=${this.objectType}&target=Citation`).then(response => {
tabList = response.body
}))
promises.push(this.getList(`/controlled_vocabulary_terms.json?of_type[]=${type}`).then(response => {
promises.push(this.getList(`/controlled_vocabulary_terms.json?type[]=${type}`).then(response => {
allList = response.body
}))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
promises.push(this.getList(`/confidence_levels/select_options?klass=${this.objectType}`).then(response => {
tabList = response.body
}))
promises.push(this.getList(`/controlled_vocabulary_terms.json?of_type[]=${type}`).then(response => {
promises.push(this.getList(`/controlled_vocabulary_terms.json?type[]=${type}`).then(response => {
allList = response.body
}))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export default {
promises.push(this.getList(`/topics/select_options?klass=${this.objectType}&target=Citation`).then(response => {
tabList = response.body
}))
promises.push(this.getList(`/controlled_vocabulary_terms.json?of_type[]=${type}`).then(response => {
promises.push(this.getList(`/controlled_vocabulary_terms.json?type[]=${type}`).then(response => {
allList = response.body
}))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export default {
promises.push(this.getList(`/predicates/select_options?klass=${this.objectType}`).then(response => {
tabList = response.body
}))
promises.push(this.getList(`/controlled_vocabulary_terms.json?of_type[]=${type}`).then(response => {
promises.push(this.getList(`/controlled_vocabulary_terms.json?type[]=${type}`).then(response => {
allList = response.body
}))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
min="2"
placeholder="Keyword"
:clear-after="true"
:add-params="{'of_type[]' : 'Keyword'}"
:add-params="{'type[]' : 'Keyword'}"
@getInput="tag.keyword_attributes.name = $event"
@getItem="createWithId($event.id)"
class="separate-bottom"
Expand Down Expand Up @@ -151,7 +151,7 @@ export default {
promises.push(this.getList(`/keywords/select_options?klass=${this.objectType}`).then(response => {
tabList = response.body
}))
promises.push(this.getList(`/controlled_vocabulary_terms.json?of_type[]=${type}`).then(response => {
promises.push(this.getList(`/controlled_vocabulary_terms.json?type[]=${type}`).then(response => {
allList = response.body
}))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const GetProjectPreferences = function () {
}

const GetPredicates = function (ids) {
return ajaxCall('get', '/controlled_vocabulary_terms', { params: { 'of_type[]': 'Predicate', 'id': ids } })
return ajaxCall('get', '/controlled_vocabulary_terms', { params: { 'type[]': 'Predicate', 'id': ids } })
}

const GetPredicatesCreated = function (objectType, objectId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
</span>
</div>
</div>
<div class="horizontal-left-content separate-top">
<div class="horizontal-left-content separate-top separate-bottom">
<depictions-component
v-if="showDepictions"
class="separate-top separate-right"
Expand Down
4 changes: 2 additions & 2 deletions app/javascript/vue/tasks/digitize/request/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,11 @@ const UpdateCollectionObject = function (data) {
}

const GetBiocurationsTypes = function (protonymId) {
return ajaxCall('get', `/controlled_vocabulary_terms.json?of_type[]=BiocurationClass`)
return ajaxCall('get', `/controlled_vocabulary_terms.json?type[]=BiocurationClass`)
}

const GetBiocurationsGroupTypes = function (protonymId) {
return ajaxCall('get', `/controlled_vocabulary_terms.json?of_type[]=BiocurationGroup`)
return ajaxCall('get', `/controlled_vocabulary_terms.json?type[]=BiocurationGroup`)
}

const GetBiocurationsTags = function (BiocurationGroupId) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const handleError = function (json) {
}

const GetPredicates = function () {
return ajaxCall('get', '/controlled_vocabulary_terms?of_type[]=Predicate')
return ajaxCall('get', '/controlled_vocabulary_terms?type[]=Predicate')
}

const GetProjectPreferences = function () {
Expand Down
2 changes: 1 addition & 1 deletion app/javascript/vue/type_specimens/request/resources.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const GetTypeMaterial = function (protonymId) {
}

const GetBiocurationsTypes = function (protonymId) {
return ajaxCall('get', `/controlled_vocabulary_terms.json?of_type[]=BiocurationClass`)
return ajaxCall('get', `/controlled_vocabulary_terms.json?type[]=BiocurationClass`)
}

const GetBiocurationsCreated = function (biologicalId) {
Expand Down

0 comments on commit 9dfd854

Please sign in to comment.