+
diff --git a/src/app/shared/truncatable/truncatable.component.spec.ts b/src/app/shared/truncatable/truncatable.component.spec.ts
index b539ab0d56..29100e50d2 100644
--- a/src/app/shared/truncatable/truncatable.component.spec.ts
+++ b/src/app/shared/truncatable/truncatable.component.spec.ts
@@ -70,15 +70,4 @@ describe('TruncatableComponent', () => {
});
});
- describe('When toggle is called', () => {
- beforeEach(() => {
- spyOn(truncatableService, 'toggle');
- comp.toggle();
- });
-
- it('should call toggle on the TruncatableService', () => {
- expect(truncatableService.toggle).toHaveBeenCalledWith(identifier);
- });
- });
-
});
diff --git a/src/app/shared/truncatable/truncatable.component.ts b/src/app/shared/truncatable/truncatable.component.ts
index e22ce4441e..8fca300cd4 100644
--- a/src/app/shared/truncatable/truncatable.component.ts
+++ b/src/app/shared/truncatable/truncatable.component.ts
@@ -1,6 +1,4 @@
-import {
- Component, Input
-} from '@angular/core';
+import { AfterViewChecked, Component, ElementRef, Input, OnInit } from '@angular/core';
import { TruncatableService } from './truncatable.service';
@Component({
@@ -13,7 +11,7 @@ import { TruncatableService } from './truncatable.service';
/**
* Component that represents a section with one or more truncatable parts that all listen to this state
*/
-export class TruncatableComponent {
+export class TruncatableComponent implements OnInit, AfterViewChecked {
/**
* Is true when all truncatable parts in this truncatable should be expanded on loading
*/
@@ -29,7 +27,13 @@ export class TruncatableComponent {
*/
@Input() onHover = false;
- public constructor(private service: TruncatableService) {
+ /**
+ * A boolean representing if to show or not the show/collapse toggle
+ * This value must have the same value as the children TruncatablePartComponent
+ */
+ @Input() showToggle = true;
+
+ public constructor(private service: TruncatableService, private el: ElementRef,) {
}
/**
@@ -61,11 +65,18 @@ export class TruncatableComponent {
}
}
- /**
- * Expands the truncatable when it's collapsed, collapses it when it's expanded
- */
- public toggle() {
- this.service.toggle(this.id);
+ ngAfterViewChecked() {
+ if (this.showToggle) {
+ const truncatedElements = this.el.nativeElement.querySelectorAll('.truncated');
+ if (truncatedElements?.length > 0) {
+ const truncateElements = this.el.nativeElement.querySelectorAll('.dont-break-out');
+ for (let i = 0; i < (truncateElements.length - 1); i++) {
+ truncateElements[i].classList.remove('truncated');
+ truncateElements[i].classList.add('notruncatable');
+ }
+ truncateElements[truncateElements.length - 1].classList.add('truncated');
+ }
+ }
}
}
diff --git a/src/assets/i18n/de.json5 b/src/assets/i18n/de.json5
index 38e7398f46..23ab3a29e5 100644
--- a/src/assets/i18n/de.json5
+++ b/src/assets/i18n/de.json5
@@ -895,6 +895,8 @@
"bitstream.edit.title": "Datei bearbeiten",
+ // "browse.back.all-results": "All browse results",
+ "browse.back.all-results": "Filter zurücksetzen",
// "browse.comcol.by.author": "By Author",
"browse.comcol.by.author": "Nach Autor:in",
@@ -1782,6 +1784,18 @@
// "dso-selector.placeholder": "Search for a {{ type }}",
"dso-selector.placeholder": "Suche nach {{ type }}",
+ // "dso-selector.select.collection.head": "Select a collection",
+ "dso-selector.select.collection.head": "Sammlung auswählen",
+
+ // "dso-selector.set-scope.community.head": "Select a search scope",
+ "dso-selector.set-scope.community.head": "Suchbereich auswählen",
+
+ // "dso-selector.set-scope.community.button": "Search all of DSpace",
+ "dso-selector.set-scope.community.button": "Alles durchsuchen",
+
+ // "dso-selector.set-scope.community.input-header": "Search for a community or collection",
+ "dso-selector.set-scope.community.input-header": "Suche Bereich oder Sammlung",
+
// "confirmation-modal.export-metadata.header": "Export metadata for {{ dsoName }}",
@@ -4293,6 +4307,9 @@
// "search.filters.filter.author.placeholder": "Author name",
"search.filters.filter.author.placeholder": "Autor:innenname",
+ // "search.filters.filter.author.label": "Search author name",
+ "search.filters.filter.author.label": "Autorensuche",
+
// "search.filters.filter.birthDate.head": "Birth Date",
"search.filters.filter.birthDate.head": "Geburtsdatum",
@@ -4472,8 +4489,10 @@
// "search.form.search_mydspace": "Search MyDSpace",
"search.form.search_mydspace": "Suche im persönlichen Arbeitsbereich",
-
-
+ // "search.form.scope.all": "All of DSpace",
+ "search.form.scope.all": "Alles durchsuchen",
+
+
// "search.results.head": "Search Results",
"search.results.head": "Suchergebnisse",
@@ -4486,7 +4505,11 @@
// "search.results.empty": "Your search returned no results.",
"search.results.empty": "Ihre Suche führte zu keinem Ergebnis.",
-
+ // "search.results.view-result": "View",
+ "search.results.view-result": "Anzeigen",
+
+ // "default.search.results.head": "Search Results",
+ "default.search.results.head": "Suchergebnisse",
// "search.sidebar.close": "Back to results",
"search.sidebar.close": "Zurück zu den Ergebnissen",
@@ -4534,10 +4557,29 @@
// "sorting.dc.title.DESC": "Title Descending",
"sorting.dc.title.DESC": "Titel absteigend",
- // "sorting.score.DESC": "Relevance",
- "sorting.score.DESC": "Relevanz",
-
+ // "sorting.score.ASC": "Least Relevant",
+ "sorting.score.ASC": "Relevanz aufsteigend",
+
+ // "sorting.score.DESC": "Most Relevant",
+ "sorting.score.DESC": "Relevanz absteigend",
+
+ // "sorting.dc.date.issued.ASC": "Date Issued Ascending",
+ "sorting.dc.date.issued.ASC": "Erscheinungsdatum aufsteigend",
+
+ // "sorting.dc.date.issued.DESC": "Date Issued Descending",
+ "sorting.dc.date.issued.DESC": "Erscheinungsdatum absteigend",
+ // "sorting.dc.date.accessioned.ASC": "Accessioned Date Ascending",
+ "sorting.dc.date.accessioned.ASC": "Freischaltungsdatum aufsteigend",
+
+ // "sorting.dc.date.accessioned.DESC": "Accessioned Date Descending",
+ "sorting.dc.date.accessioned.DESC": "Freischaltungsdatum absteigend",
+
+ // "sorting.lastModified.ASC": "Last modified Ascending",
+ "sorting.lastModified.ASC": "Änderungsdatum aufsteigend",
+
+ // "sorting.lastModified.DESC": "Last modified Descending",
+ "sorting.lastModified.DESC": "Änderungsdatum absteigend",
// "statistics.title": "Statistics",
"statistics.title": "Statistiken",
@@ -5238,6 +5280,30 @@
"submission.workflow.tasks.pool.show-detail": "Details anzeigen",
+ // "thumbnail.default.alt": "Thumbnail Image",
+ "thumbnail.default.alt": "Vorschaubild",
+
+ // "thumbnail.default.placeholder": "No Thumbnail Available",
+ "thumbnail.default.placeholder": "Vorschaubild nicht verfügbar",
+
+ // "thumbnail.project.alt": "Project Logo",
+ "thumbnail.project.alt": "Logo des Projekt",
+
+ // "thumbnail.project.placeholder": "Project Placeholder Image",
+ "thumbnail.project.placeholder": "Platzhalterbild des Projekts",
+
+ // "thumbnail.orgunit.alt": "OrgUnit Logo",
+ "thumbnail.orgunit.alt": "Logo der Organisationseinheit",
+
+ // "thumbnail.orgunit.placeholder": "OrgUnit Placeholder Image",
+ "thumbnail.orgunit.placeholder": "Platzhalterbild der Organisationseinheit",
+
+ // "thumbnail.person.alt": "Profile Picture",
+ "thumbnail.person.alt": "Profilbild",
+
+ // "thumbnail.person.placeholder": "No Profile Picture Available",
+ "thumbnail.person.placeholder": "Profilbild nicht verfügbar",
+
// "title": "DSpace",
"title": "DSpace",
diff --git a/src/assets/i18n/en.json5 b/src/assets/i18n/en.json5
index fc1f585765..3f71fe6ff3 100644
--- a/src/assets/i18n/en.json5
+++ b/src/assets/i18n/en.json5
@@ -872,6 +872,12 @@
"collection.edit.tabs.authorizations.title": "Collection Edit - Authorizations",
+ "collection.edit.item.authorizations.load-bundle-button": "Load more bundles",
+
+ "collection.edit.item.authorizations.load-more-button": "Load more",
+
+ "collection.edit.item.authorizations.show-bitstreams-button": "Show bitstream policies for bundle",
+
"collection.edit.tabs.metadata.head": "Edit Metadata",
"collection.edit.tabs.metadata.title": "Collection Edit - Metadata",
@@ -2150,6 +2156,10 @@
"item.search.title": "Item Search",
+ "item.truncatable-part.show-more": "Show more",
+
+ "item.truncatable-part.show-less": "Collapse",
+
"item.page.abstract": "Abstract",
diff --git a/src/assets/i18n/fi.json5 b/src/assets/i18n/fi.json5
index 02f020a45d..860062fa67 100644
--- a/src/assets/i18n/fi.json5
+++ b/src/assets/i18n/fi.json5
@@ -107,7 +107,7 @@
"admin.registries.bitstream-formats.edit.head": "Tiedostoformaatti: {{ format }}",
// "admin.registries.bitstream-formats.edit.internal.hint": "Formats marked as internal are hidden from the user, and used for administrative purposes.",
- "admin.registries.bitstream-formats.edit.internal.hint": "Sisäisiksi merkittyjä formaatteja käytetään hallinnollisiin tarkoituksiin, ja ne on piilotettu käyttäjiltä.",
+ "admin.registries.bitstream-formats.edit.internal.hint": "Sisäisiksi merkittyjä formaatteja käytetään ylläpitotarkoituksiin, ja ne on piilotettu käyttäjiltä.",
// "admin.registries.bitstream-formats.edit.internal.label": "Internal",
"admin.registries.bitstream-formats.edit.internal.label": "Sisäinen",
@@ -662,7 +662,7 @@
// "admin.search.breadcrumbs": "Administrative Search",
- "admin.search.breadcrumbs": "Hallinnollinen haku",
+ "admin.search.breadcrumbs": "Ylläpitäjän haku",
// "admin.search.collection.edit": "Edit",
"admin.search.collection.edit": "Muokkaa",
@@ -692,19 +692,19 @@
"admin.search.item.withdraw": "Poista käytöstä",
// "admin.search.title": "Administrative Search",
- "admin.search.title": "Hallinnollinen haku",
+ "admin.search.title": "Ylläpitäjän haku",
// "administrativeView.search.results.head": "Administrative Search",
- "administrativeView.search.results.head": "Hallinnollinen haku",
+ "administrativeView.search.results.head": "Ylläpitäjän haku",
// "admin.workflow.breadcrumbs": "Administer Workflow",
- "admin.workflow.breadcrumbs": "Hallinnointityönkulku",
+ "admin.workflow.breadcrumbs": "Hallinnoi työnkulkua",
// "admin.workflow.title": "Administer Workflow",
- "admin.workflow.title": "Hallinnointityönkulku",
+ "admin.workflow.title": "Hallinnoi työnkulkua",
// "admin.workflow.item.workflow": "Workflow",
"admin.workflow.item.workflow": "Työnkulku",
@@ -2954,7 +2954,7 @@
// "menu.section.admin_search": "Admin Search",
- "menu.section.admin_search": "Admin-haku",
+ "menu.section.admin_search": "Ylläpitäjän haku",
@@ -3033,7 +3033,7 @@
"menu.section.icon.access_control": "Pääsyoikeudet",
// "menu.section.icon.admin_search": "Admin search menu section",
- "menu.section.icon.admin_search": "Admin-haku",
+ "menu.section.icon.admin_search": "Ylläpitäjän haku",
// "menu.section.icon.control_panel": "Control Panel menu section",
"menu.section.icon.control_panel": "Hallintapaneeli",
@@ -3168,7 +3168,7 @@
// "menu.section.workflow": "Administer Workflow",
- "menu.section.workflow": "Hallinnointityönkulku",
+ "menu.section.workflow": "Hallinnoi työnkulkua",
// "mydspace.description": "",
@@ -5079,7 +5079,7 @@
// "workflowAdmin.search.results.head": "Administer Workflow",
- "workflowAdmin.search.results.head": "Hallinnointityönkulku",
+ "workflowAdmin.search.results.head": "Hallinnoi työnkulkua",