- oder authors and contributor inside dataset.controller.ts
- npm updates
This commit is contained in:
parent
3e52eb0099
commit
2a6a2a6def
|
@ -48,6 +48,7 @@ export class DatasetController {
|
||||||
model: Person,
|
model: Person,
|
||||||
through: { where: { role: "author" } },
|
through: { where: { role: "author" } },
|
||||||
as: "authors",
|
as: "authors",
|
||||||
|
// order: [['link_documents_persons.sort_order', 'ASC']],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
model: Person,
|
model: Person,
|
||||||
|
@ -61,6 +62,11 @@ export class DatasetController {
|
||||||
"files",
|
"files",
|
||||||
"identifier",
|
"identifier",
|
||||||
],
|
],
|
||||||
|
order: [
|
||||||
|
["authors", dbContext.DocumentPersons, "sort_order", "ASC"],
|
||||||
|
["contributors", dbContext.DocumentPersons, "sort_order", "ASC"],
|
||||||
|
],
|
||||||
|
// order: ['server_date_published'],
|
||||||
// order: ['server_date_published'],
|
// order: ['server_date_published'],
|
||||||
});
|
});
|
||||||
// .then((data) => {
|
// .then((data) => {
|
||||||
|
|
|
@ -255,5 +255,6 @@ export function initModels() {
|
||||||
Coverage: Coverage,
|
Coverage: Coverage,
|
||||||
Subject: Subject,
|
Subject: Subject,
|
||||||
License: License,
|
License: License,
|
||||||
|
DocumentPersons: DocumentPersons
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user