Commit 60db2f2f authored by Maxime Chaillet's avatar Maxime Chaillet

Merge branch 'issue81' into 'master'

Issue81

Closes #81

See merge request !102
parents 2e64806f 548bcea9
Pipeline #21622 passed with stages
in 2 minutes and 7 seconds
This diff is collapsed.
function DOIController(view) {
var _this = this;
// doiServer = the server which provides doi details from a given doi name.
this.doiServer = "https://data.datacite.org/";
this.doiServer = "https://api.datacite.org/dois/";
this.icatPlusServer = "https://icatplus.esrf.fr/doi/";
// contentNegicationServer retrieves the DOI metadata in another format required by google search engine
this.contentNegociationServer = "https://data.crosscite.org/";
// 10.5072 is the test esrf doi prefix;
// 10.15151 is the production esrf doi prefix;
......@@ -172,7 +174,7 @@ DOIController.prototype.getDataForGoogleSearch = function (doi) {
},
type: "GET",
timeout: 15000,
url: 'https://data.datacite.org/' + doi,
url: this.contentNegociationServer + doi,
//dataType: 'text', // don't convert JSON to Javascript object
success: function (data) {
if (data) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment