- add doc-type:ResearchData inside oai.controller.ts for DINI validation
- check if files are accessible with read rights for api file download (inside fule.controller.ts)
This commit is contained in:
parent
f3d16c0f7f
commit
8ebd8f3251
|
@ -20,7 +20,7 @@ export class FileController {
|
||||||
const ext = path.extname(filePath);
|
const ext = path.extname(filePath);
|
||||||
const fileName = file.label + ext;
|
const fileName = file.label + ext;
|
||||||
try {
|
try {
|
||||||
fs.accessSync(filePath, fs.constants.R_OK | fs.constants.W_OK);
|
fs.accessSync(filePath, fs.constants.R_OK); //| fs.constants.W_OK);
|
||||||
// console.log("can read/write:", path);
|
// console.log("can read/write:", path);
|
||||||
res.set({
|
res.set({
|
||||||
"Cache-Control": "no-cache private",
|
"Cache-Control": "no-cache private",
|
||||||
|
|
|
@ -228,6 +228,7 @@ export class OaiController {
|
||||||
|
|
||||||
const sets: { [key: string]: string } = {
|
const sets: { [key: string]: string } = {
|
||||||
open_access: "Set for open access licenses",
|
open_access: "Set for open access licenses",
|
||||||
|
"doc-type:ResearchData": "Set for document type ResearchData",
|
||||||
// 'bibliography:true' => 'Set for bibliographic entries',
|
// 'bibliography:true' => 'Set for bibliographic entries',
|
||||||
// 'bibliography:false' => 'Set for non-bibliographic entries',
|
// 'bibliography:false' => 'Set for non-bibliographic entries',
|
||||||
...(await this.getSetsForDatasetTypes()),
|
...(await this.getSetsForDatasetTypes()),
|
||||||
|
|
Loading…
Reference in New Issue
Block a user