Commit fcabea05 authored by Maxime Chaillet's avatar Maxime Chaillet

Merge branch 'issue66' into 'master'

replace documentation by description. It fixes icat/doi-landing-page#66

Closes #66

See merge request icat/doi-landing-page!77
parents aa589a3d 5f76efb4
Pipeline #8679 passed with stages
in 1 minute and 13 seconds
This diff is collapsed.
......@@ -176,10 +176,10 @@ DOIController.prototype.getDataForGoogleSearch = function (doi) {
//dataType: 'text', // don't convert JSON to Javascript object
success: function (data) {
if (data) {
// Here we add the documentation field in the recieved object because 'name' and 'documentation' fileds are required by google dataset search.
// Here we add the 'description' field in the recieved object because 'name' and 'description' fields are required by google dataset search.
if (data.name) {
if (!data.documentation) {
data.documentation = data.name;
if (!data.description) {
data.description = data.name;
}
_this.view.addDOIMetadataToHead(JSON.stringify(data));
} else {
......
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