Skip to content
Snippets Groups Projects
Commit eecca8ef authored by Mike Lynch's avatar Mike Lynch
Browse files

Now indexes the original dataset licence as licenceOriginal, as well as the

mapped licence
parent 8633429a
Branches
No related merge requests found
#!/usr/bin/env node
const axios = require('axios');
const _ = require('lodash');
const CatalogSolr = require('./lib/CatalogSolr');
......
......@@ -28,6 +28,10 @@
"facet": true
},
"licenseOriginal": {
"multi": true
},
"author": {
"resolve": "multi",
"facet": true
......
......@@ -190,6 +190,7 @@ Types with errors: ${this.errors.join(', ')}`);
}
}
rootItem['licenseOriginal'] = rootItem['license'];
rootItem['license'] = this.mapLicenses(rootItem['license']);
const rootSolr = this.mapItem(cfBase, datasetCf, 'Dataset', rootItem);
const solrDocument = { 'Dataset': [ rootSolr ] };
......
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