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')">
- 0"
+ 0"
class="item-list-journal-issues">
-
+
- 0"
+ 0"
class="item-list-journal-issue-numbers">
-
+
-
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')">
- 0"
+ 0"
class="item-list-journal-volumes">
-
+
- 0"
+ 0"
class="item-list-journal-volume-identifiers">
-
+
()
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')">
0"
diff --git a/src/app/shared/object-list/item-list-element/item-types/orgunit/orgunit-list-element.component.html b/src/app/shared/object-list/item-list-element/item-types/orgunit/orgunit-list-element.component.html
index 0a07901abb..a809c0f655 100644
--- a/src/app/shared/object-list/item-list-element/item-types/orgunit/orgunit-list-element.component.html
+++ b/src/app/shared/object-list/item-list-element/item-types/orgunit/orgunit-list-element.component.html
@@ -1,13 +1,13 @@
+ [innerHTML]="firstMetadataValue('orgunit.identifier.name')">
- 0"
+ 0"
class="item-list-orgunit-description">
+ [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')">
- 0"
+ 0"
class="item-list-job-title">
-
+
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 @@
- 0"
+ 0"
class="item-list-job-title">
-
+
@@ -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')">
- 0"
+ 0"
class="item-list-status">
-
+
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')">
- (, )
- 0"
+ (, )
+ 0"
class="item-list-authors">
-
+
-
+
+ [innerHTML]="firstMetadataValue('dc.description.abstract')">