- added earliestPublicationDate for App/Models/Dataset.ts
All checks were successful
CI Pipeline / japa-tests (push) Successful in 49s
All checks were successful
CI Pipeline / japa-tests (push) Successful in 49s
- new classes TokenWorkerService.ts, TokenWorker.ts and ResumptionToken.ts for using REDIS with paging OAI results - deletd public/asstes2/langCodeMap.xml: integrated it directly in datasetxml2oai-pmh.xslt - added redis npm package - added TokenWorkerProvider.ts for using singleton of TokenWorkerService inside OaiController.ts - added config/oai.ts for oai related configs from .env-file - adapted XmlModel.ts for grting domDocument from database
This commit is contained in:
parent
2a7480d2ed
commit
7915f66dd6
16 changed files with 691 additions and 89 deletions
18
config/oai.ts
Normal file
18
config/oai.ts
Normal file
|
@ -0,0 +1,18 @@
|
|||
import Env from '@ioc:Adonis/Core/Env';
|
||||
|
||||
interface OaiConfig {
|
||||
max: { listidentifiers: number; listrecords: number };
|
||||
workspacePath: string;
|
||||
redis: { ttl: number };
|
||||
}
|
||||
const config: OaiConfig = {
|
||||
max: {
|
||||
listidentifiers: parseInt(Env.get('OAI_LIST_SIZE', 100), 10),
|
||||
listrecords: parseInt(Env.get('OAI_LIST_SIZE', 100), 10),
|
||||
},
|
||||
workspacePath: 'workspace',
|
||||
redis: {
|
||||
ttl: 86400, //sec 1 day
|
||||
},
|
||||
};
|
||||
export default config;
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue