Commit c10722a0 authored by Maxime Chaillet's avatar Maxime Chaillet

use the REST API from datacite to retreive DOI metadata. It fixes #81

parent 2e64806f
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