- npm updates for webpack-encore and postcss-loader - DatasetExtension.ts: use relation contributors for PersonContributor - added DoiClient.ts and DoiClientContract.ts - rozes.ts: addes routes for creating and storing doi identifier - addes xslt doi_datacite.xslt needed for registering DOI identifier
This commit is contained in:
parent
ebc62d9117
commit
c9ba7d6adc
22 changed files with 1836 additions and 677 deletions
40
providers/DoiProvider/index.ts
Normal file
40
providers/DoiProvider/index.ts
Normal file
|
@ -0,0 +1,40 @@
|
|||
import type { ApplicationContract } from '@ioc:Adonis/Core/Application'
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Provider
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Your application is not ready when this file is loaded by the framework.
|
||||
| Hence, the top level imports relying on the IoC container will not work.
|
||||
| You must import them inside the life-cycle methods defined inside
|
||||
| the provider class.
|
||||
|
|
||||
| @example:
|
||||
|
|
||||
| public async ready () {
|
||||
| const Database = this.app.container.resolveBinding('Adonis/Lucid/Database')
|
||||
| const Event = this.app.container.resolveBinding('Adonis/Core/Event')
|
||||
| Event.on('db:query', Database.prettyPrint)
|
||||
| }
|
||||
|
|
||||
*/
|
||||
export default class DoiProvider {
|
||||
constructor(protected app: ApplicationContract) {}
|
||||
|
||||
public register() {
|
||||
// Register your own bindings
|
||||
}
|
||||
|
||||
public async boot() {
|
||||
// All bindings are ready, feel free to use them
|
||||
}
|
||||
|
||||
public async ready() {
|
||||
// App is ready
|
||||
}
|
||||
|
||||
public async shutdown() {
|
||||
// Cleanup, since app is going down
|
||||
}
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue