Skip to content

Commit

Permalink
#119 - Connect Negotiator
Browse files Browse the repository at this point in the history
- remove testdata
  • Loading branch information
vabishaa committed Mar 17, 2024
1 parent ee4311d commit c086cf2
Showing 1 changed file with 1 addition and 29 deletions.
30 changes: 1 addition & 29 deletions components/search/DiscoverySearchResults.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,38 +104,10 @@ export default {
}
});
//Test: works -> example from Vittorio
const result = {
"url": "https://vp.ejprarediseases.org/",
"humanReadable": "",
"resources": [{
"id": "bbmri-eric:ID:EXT_44001:collection:MainCollection"
}, {
"id": "bbmri-eric:ID:IT_1382965524316631:collection:1444717339490516"
}]
};
//Test: does not work -> generated from VP-Portal after searching for Orphacode:730
const result1= {
"url": "https://vp.ejprarediseases.org/",
"humanReadable": "",
"resources": [
{
"id": "bbmri-eric:ID:EXT_76957:collection:MainCollection"
},
{
"id": "bbmri-eric:ID:IT_1382965524316631:collection:1444717339490516"
},
{
"id": "bbmri-eric:ID:IT_1385652938842205:collection:77630"
}
]
};
//final solution
const data = '{ "url": "https://vp.ejprarediseases.org/", "humanReadable": "", "resources": [' + idObjects.substring(0,idObjects.length-1) + '] }';
this.$axios.$post(url, result1 /*JSON.parse(data)*/)
this.$axios.$post(url, JSON.parse(data))
.then(response => {
this.negotiatorRedirectUrl = response.redirectUrl;
//console.log(this.negotiatorUrl)
Expand Down

0 comments on commit c086cf2

Please sign in to comment.