- use iso639-2 for language tag for dc:language

- list mn. 100 record for ListRecords request
- add header("Content-Type", "application/xml; charset=utf-8") inside oai.controller.ts
This commit is contained in:
Arno Kaimbacher 2022-11-29 11:37:20 +01:00
parent 6944deac83
commit 3e24bdd92f
7 changed files with 57 additions and 43 deletions

View file

@ -1,7 +1,7 @@
const config = {
max: {
listidentifiers: 100,
listrecords: 50,
listrecords: 100,
},
workspacePath: "workspace",
};

File diff suppressed because one or more lines are too long

View file

@ -95,7 +95,7 @@ export class OaiController {
oaiRequest = request.query;
} else {
this.xsltParameter["oai_error_code"] = "unknown";
this.xsltParameter["oai_error_message"] = "An internal error occured.";
this.xsltParameter["oai_error_message"] = "Only POST and GET methods are allowed for OAI-PMH.";
}
// const oaiRequest: OaiParameter = request.body;
try {
@ -157,7 +157,7 @@ export class OaiController {
}
response
.header("Content-Type", "application/xml")
.header("Content-Type", "application/xml; charset=utf-8")
.header("Access-Control-Allow-Origin", "*")
.header("Access-Control-Allow-Methods", "GET,POST");
response.status(StatusCodes.OK).send(xmlOutput);