- use latest prettier 3.0 with eslint-plugin-prettier: 5.0.0-alpha.2
All checks were successful
CI Pipeline / japa-tests (push) Successful in 46s
All checks were successful
CI Pipeline / japa-tests (push) Successful in 46s
- npm normal updates - add all xslt and style asstes in extra folder public/assets2 - linting corrections - delete local .env.test from git tracking: git rm --cached .env.test - add .env.test into .gitignore file - add edit functionality for editing by submitter - npm updates -added xslt3 packeage for builfing sef files - added Language.ts class vor language table - added version to datasetxml2oai-pmh.xslt
This commit is contained in:
parent
f403c3109f
commit
4714dfdd94
70 changed files with 22920 additions and 17407 deletions
|
@ -30,7 +30,7 @@ export default class Dataset extends BaseModel {
|
|||
public id: number;
|
||||
|
||||
@column({})
|
||||
public server_state: boolean;
|
||||
public server_state: string;
|
||||
|
||||
@column({})
|
||||
public publisherName: string;
|
||||
|
@ -57,10 +57,10 @@ export default class Dataset extends BaseModel {
|
|||
public reviewer_id: number | null = null;
|
||||
|
||||
@column({})
|
||||
public reject_editor_note: string;
|
||||
public reject_editor_note: string | null;
|
||||
|
||||
@column({})
|
||||
public reject_reviewer_note: string;
|
||||
public reject_reviewer_note: string | null;
|
||||
|
||||
@column.dateTime({ columnName: 'server_date_published' })
|
||||
public serverDatePublished: DateTime;
|
||||
|
@ -111,10 +111,6 @@ export default class Dataset extends BaseModel {
|
|||
})
|
||||
public licenses: ManyToMany<typeof License>;
|
||||
|
||||
// public function subjects()
|
||||
// {
|
||||
// return $this->belongsToMany(\App\Models\Subject::class, 'link_dataset_subjects', 'document_id', 'subject_id');
|
||||
// }
|
||||
@manyToMany(() => Subject, {
|
||||
pivotForeignKey: 'document_id',
|
||||
pivotRelatedForeignKey: 'subject_id',
|
||||
|
|
|
@ -10,7 +10,7 @@ export default class HashValue extends BaseModel {
|
|||
// return 'type, value'
|
||||
// }
|
||||
|
||||
static get incrementing() {
|
||||
public static get incrementing() {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
35
app/Models/Language.ts
Normal file
35
app/Models/Language.ts
Normal file
|
@ -0,0 +1,35 @@
|
|||
import { column, BaseModel, SnakeCaseNamingStrategy } from '@ioc:Adonis/Lucid/Orm';
|
||||
// import { DateTime } from 'luxon';
|
||||
|
||||
export default class Language extends BaseModel {
|
||||
public static namingStrategy = new SnakeCaseNamingStrategy();
|
||||
public static primaryKey = 'id';
|
||||
public static table = 'languages';
|
||||
public static selfAssignPrimaryKey = false;
|
||||
|
||||
@column({
|
||||
isPrimary: true,
|
||||
})
|
||||
public id: number;
|
||||
|
||||
@column({})
|
||||
public part2_b: string;
|
||||
|
||||
@column({})
|
||||
public part2_T: string;
|
||||
|
||||
@column({})
|
||||
public description: string;
|
||||
|
||||
@column({})
|
||||
public part1: string;
|
||||
|
||||
@column({})
|
||||
public type: string;
|
||||
|
||||
@column({})
|
||||
public ref_name: string;
|
||||
|
||||
@column({})
|
||||
public active: boolean;
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue