diff --git a/src/app/+item-page/simple/item-types/journal-issue/journal-issue.component.html b/src/app/+item-page/simple/item-types/journal-issue/journal-issue.component.html index e17a902297..0b7fa2d57b 100644 --- a/src/app/+item-page/simple/item-types/journal-issue/journal-issue.component.html +++ b/src/app/+item-page/simple/item-types/journal-issue/journal-issue.component.html @@ -1,5 +1,5 @@

- +

diff --git a/src/app/+item-page/simple/item-types/journal-volume/journal-volume.component.html b/src/app/+item-page/simple/item-types/journal-volume/journal-volume.component.html index a956e40fdd..c4ef7102bd 100644 --- a/src/app/+item-page/simple/item-types/journal-volume/journal-volume.component.html +++ b/src/app/+item-page/simple/item-types/journal-volume/journal-volume.component.html @@ -1,5 +1,5 @@

- +

diff --git a/src/app/+item-page/simple/item-types/journal/journal.component.html b/src/app/+item-page/simple/item-types/journal/journal.component.html index 157d6133bf..a872b79507 100644 --- a/src/app/+item-page/simple/item-types/journal/journal.component.html +++ b/src/app/+item-page/simple/item-types/journal/journal.component.html @@ -1,5 +1,5 @@

- +

diff --git a/src/app/+item-page/simple/item-types/orgunit/orgunit.component.html b/src/app/+item-page/simple/item-types/orgunit/orgunit.component.html index 7eacf66347..ba11fce201 100644 --- a/src/app/+item-page/simple/item-types/orgunit/orgunit.component.html +++ b/src/app/+item-page/simple/item-types/orgunit/orgunit.component.html @@ -1,5 +1,5 @@

- +

diff --git a/src/app/+item-page/simple/item-types/person/person.component.html b/src/app/+item-page/simple/item-types/person/person.component.html index 30153353de..d98991a421 100644 --- a/src/app/+item-page/simple/item-types/person/person.component.html +++ b/src/app/+item-page/simple/item-types/person/person.component.html @@ -1,5 +1,5 @@

- +

diff --git a/src/app/+item-page/simple/item-types/project/project.component.html b/src/app/+item-page/simple/item-types/project/project.component.html index 17aa8b2065..5cba278252 100644 --- a/src/app/+item-page/simple/item-types/project/project.component.html +++ b/src/app/+item-page/simple/item-types/project/project.component.html @@ -1,5 +1,5 @@

- +

diff --git a/src/app/core/shared/dspace-object.model.ts b/src/app/core/shared/dspace-object.model.ts index 085988d745..1c83d298e2 100644 --- a/src/app/core/shared/dspace-object.model.ts +++ b/src/app/core/shared/dspace-object.model.ts @@ -119,21 +119,21 @@ export class DSpaceObject implements CacheableObject, ListableObject { } /** - * Find metadata on a specific field and order all of them using their "place" property. + * Find metadata on a specific field and order all of them using their "order" property. * @param key */ findMetadataSortedByPlace(key: string): MetadataValue[] { return this.allMetadata([key]).sort((a: MetadataValue, b: MetadataValue) => { - if (hasNoValue(a.place) && hasNoValue(b.place)) { + if (hasNoValue(a.order) && hasNoValue(b.order)) { return 0; } - if (hasNoValue(a.place)) { + if (hasNoValue(a.order)) { return -1; } - if (hasNoValue(b.place)) { + if (hasNoValue(b.order)) { return 1; } - return a.place - b.place; + return a.order - b.order; }); } diff --git a/src/app/core/shared/metadata.models.ts b/src/app/core/shared/metadata.models.ts index a83277b882..0df139a5cd 100644 --- a/src/app/core/shared/metadata.models.ts +++ b/src/app/core/shared/metadata.models.ts @@ -25,21 +25,17 @@ export class MetadataValue { value: string; /** - * The place of this Metadatum within his list of metadata + * The place of this MetadataValue within his list of metadata * This is used to render metadata in a specific custom order */ @autoserialize - place: number; + order: number; - /** - * The authority key used for authority-controlled metadata - */ + /** The authority key used for authority-controlled metadata */ @autoserialize authority: string; - /** - * The authority confidence value - */ + /** The authority confidence value */ @autoserialize confidence: number; @@ -91,23 +87,16 @@ export class MetadatumViewModel { /** The string value. */ value: string; - /** The order. */ - order: number; - /** - * The place of this Metadatum within his list of metadata + * The place of this MetadataValue within his list of metadata * This is used to render metadata in a specific custom order */ - place: number; + order: number; - /** - * The authority key used for authority-controlled metadata - */ + /** The authority key used for authority-controlled metadata */ authority: string; - /** - * The authority confidence value - */ + /** The authority confidence value */ confidence: number; } diff --git a/src/app/shared/object-list/item-list-element/item-types/journal-issue/journal-issue-list-element.component.html b/src/app/shared/object-list/item-list-element/item-types/journal-issue/journal-issue-list-element.component.html index 3f73460f04..65a10ec1b7 100644 --- a/src/app/shared/object-list/item-list-element/item-types/journal-issue/journal-issue-list-element.component.html +++ b/src/app/shared/object-list/item-list-element/item-types/journal-issue/journal-issue-list-element.component.html @@ -1,17 +1,17 @@ + [innerHTML]="firstMetadataValue('dc.title')"> - - + - - + - diff --git a/src/app/shared/object-list/item-list-element/item-types/journal-volume/journal-volume-list-element.component.html b/src/app/shared/object-list/item-list-element/item-types/journal-volume/journal-volume-list-element.component.html index ec7acf1087..7d7f0cf731 100644 --- a/src/app/shared/object-list/item-list-element/item-types/journal-volume/journal-volume-list-element.component.html +++ b/src/app/shared/object-list/item-list-element/item-types/journal-volume/journal-volume-list-element.component.html @@ -1,18 +1,18 @@ + [innerHTML]="firstMetadataValue('dc.title')"> - - + - - + () diff --git a/src/app/shared/object-list/item-list-element/item-types/journal/journal-list-element.component.html b/src/app/shared/object-list/item-list-element/item-types/journal/journal-list-element.component.html index fb5284d398..c254d74f57 100644 --- a/src/app/shared/object-list/item-list-element/item-types/journal/journal-list-element.component.html +++ b/src/app/shared/object-list/item-list-element/item-types/journal/journal-list-element.component.html @@ -1,7 +1,7 @@ + [innerHTML]="firstMetadataValue('dc.title')"> + [innerHTML]="firstMetadataValue('orgunit.identifier.name')"> - + [innerHTML]="firstMetadataValue('orgunit.identifier.description')"> diff --git a/src/app/shared/object-list/item-list-element/item-types/person/person-list-element.component.html b/src/app/shared/object-list/item-list-element/item-types/person/person-list-element.component.html index 2d89fda483..52b69453ce 100644 --- a/src/app/shared/object-list/item-list-element/item-types/person/person-list-element.component.html +++ b/src/app/shared/object-list/item-list-element/item-types/person/person-list-element.component.html @@ -1,12 +1,12 @@ + [innerHTML]="firstMetadataValue('dc.contributor.author')"> - - + diff --git a/src/app/shared/object-list/item-list-element/item-types/person/person-metadata-list-element.component.html b/src/app/shared/object-list/item-list-element/item-types/person/person-metadata-list-element.component.html index 92e57d7ef4..3dfe17debc 100644 --- a/src/app/shared/object-list/item-list-element/item-types/person/person-metadata-list-element.component.html +++ b/src/app/shared/object-list/item-list-element/item-types/person/person-metadata-list-element.component.html @@ -1,8 +1,8 @@ - - + @@ -10,6 +10,6 @@ diff --git a/src/app/shared/object-list/item-list-element/item-types/project/project-list-element.component.html b/src/app/shared/object-list/item-list-element/item-types/project/project-list-element.component.html index e1d7814f40..6f0faa90ef 100644 --- a/src/app/shared/object-list/item-list-element/item-types/project/project-list-element.component.html +++ b/src/app/shared/object-list/item-list-element/item-types/project/project-list-element.component.html @@ -1,12 +1,12 @@ + [innerHTML]="firstMetadataValue('project.identifier.name')"> - - + diff --git a/src/app/shared/object-list/item-list-element/item-types/publication/publication-list-element.component.html b/src/app/shared/object-list/item-list-element/item-types/publication/publication-list-element.component.html index 2d737d6355..3062e6110f 100644 --- a/src/app/shared/object-list/item-list-element/item-types/publication/publication-list-element.component.html +++ b/src/app/shared/object-list/item-list-element/item-types/publication/publication-list-element.component.html @@ -1,24 +1,24 @@ + [innerHTML]="firstMetadataValue('dc.title')"> - (, ) - (, ) + - + -
+
+ [innerHTML]="firstMetadataValue('dc.description.abstract')">