- 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:
Arno Kaimbacher 2022-11-24 16:46:42 +01:00
parent f3d16c0f7f
commit 8ebd8f3251
2 changed files with 2 additions and 1 deletions

View File

@ -20,7 +20,7 @@ export class FileController {
const ext = path.extname(filePath);
const fileName = file.label + ext;
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);
res.set({
"Cache-Control": "no-cache private",

View File

@ -228,6 +228,7 @@ export class OaiController {
const sets: { [key: string]: string } = {
open_access: "Set for open access licenses",
"doc-type:ResearchData": "Set for document type ResearchData",
// 'bibliography:true' => 'Set for bibliographic entries',
// 'bibliography:false' => 'Set for non-bibliographic entries',
...(await this.getSetsForDatasetTypes()),