Skip to content

Commit

Permalink
Merge remote-tracking branch 'community/main' into rss-on-search_main
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Buckingham committed Nov 21, 2024
2 parents 974bac7 + 757d23e commit 5f82ec8
Show file tree
Hide file tree
Showing 14 changed files with 152 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<div class="container" *ngIf="(isLoading$ | async) === false">
<div class="row">
<div class="col-12 pb-4">
<h2 id="sub-header"
class="border-bottom pb-2">{{ 'collection.create.sub-head' | translate:{ parent: dsoNameService.getName((parentRD$| async)?.payload) } }}</h2>
<h1 id="sub-header"
class="border-bottom pb-2">{{ 'collection.create.sub-head' | translate:{ parent: dsoNameService.getName((parentRD$| async)?.payload) } }}</h1>
</div>
</div>
<ds-collection-form (submitForm)="onSubmit($event)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<div class="row">
<div class="col-12 pb-4">
<ng-container *ngVar="(parentRD$ | async)?.payload as parent">
<h2 *ngIf="!parent" id="header" class="border-bottom p-2">{{ 'community.create.head' | translate }}</h2>
<h2 *ngIf="parent" id="sub-header"
class="border-bottom pb-2">{{ 'community.create.sub-head' | translate:{ parent: dsoNameService.getName(parent) } }}</h2>
<h1 *ngIf="!parent" id="header" class="border-bottom p-2">{{ 'community.create.head' | translate }}</h1>
<h1 *ngIf="parent" id="sub-header"
class="border-bottom pb-2">{{ 'community.create.sub-head' | translate:{ parent: dsoNameService.getName(parent) } }}</h1>
</ng-container>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/provide-core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { AccessStatusObject } from '../shared/object-collection/shared/badges/ac
import { IdentifierData } from '../shared/object-list/identifier-data/identifier-data.model';
import { Subscription } from '../shared/subscriptions/models/subscription.model';
import { SubmissionCoarNotifyConfig } from '../submission/sections/section-coar-notify/submission-coar-notify.config';
import { SystemWideAlert } from '../system-wide-alert/system-wide-alert.model';
import { AuthStatus } from './auth/models/auth-status.model';
import { ShortLivedToken } from './auth/models/short-lived-token.model';
import { BulkAccessConditionOptions } from './config/models/bulk-access-condition-options.model';
Expand Down Expand Up @@ -186,4 +187,5 @@ export const models =
Itemfilter,
SubmissionCoarNotifyConfig,
NotifyRequestsStatus,
SystemWideAlert,
];
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="border-bottom pb-2">
<h1 class="border-bottom pb-2">
<div class="d-flex justify-content-between">
{{'notifications.events.title'| translate}}
</div>
</h2>
</h1>
<ds-alert *ngIf="!targetId" [type]="'alert-info'">
<span [innerHTML]="'quality-assurance.events.description' | translate : {topic: selectedTopicName, source: sourceId}"></span>
</ds-alert>
Expand All @@ -17,9 +17,9 @@ <h2 class="border-bottom pb-2">
</div>
<div class="row">
<div class="col-12">
<h4 class="border-bottom pb-2">
<h2 class="border-bottom pb-2">
{{'quality-assurance.events.topic' | translate}} {{this.showTopic}}
</h4>
</h2>

<ds-loading class="container" *ngIf="(isEventPageLoading | async)" message="{{'quality-assurance.loading' | translate}}"></ds-loading>

Expand Down Expand Up @@ -247,7 +247,7 @@ <h4 class="modal-title" id="acceptModal">{{'quality-assurance.event.sure' | tran

<ng-template #ignoreModal let-modal>
<div class="modal-header">
<h4 class="modal-title" id="ignoreModal">{{'quality-assurance.event.sure' | translate}}</h4>
<h1 class="modal-title h4" id="ignoreModal">{{'quality-assurance.event.sure' | translate}}</h1>
</div>
<div class="modal-body">
<p>{{'quality-assurance.event.ignore.description' | translate}}</p>
Expand All @@ -264,7 +264,7 @@ <h4 class="modal-title" id="ignoreModal">{{'quality-assurance.event.sure' | tran

<ng-template #rejectModal let-modal>
<div class="modal-header">
<h4 class="modal-title" id="rejectModal">{{'quality-assurance.event.sure' | translate}}</h4>
<h1 class="modal-title h4" id="rejectModal">{{'quality-assurance.event.sure' | translate}}</h1>
</div>
<div class="modal-body">
<p>{{'quality-assurance.event.reject.description' | translate}}</p>
Expand All @@ -281,7 +281,7 @@ <h4 class="modal-title" id="rejectModal">{{'quality-assurance.event.sure' | tran

<ng-template #undoModal let-modal>
<div class="modal-header">
<h4 class="modal-title" id="undoModal">{{'quality-assurance.event.sure' | translate}}</h4>
<h1 class="modal-title h4" id="undoModal">{{'quality-assurance.event.sure' | translate}}</h1>
</div>
<div class="modal-body">
<p>{{'quality-assurance.event.undo.description' | translate}}</p>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="border-bottom pb-2">{{'quality-assurance.title'| translate}}</h2>
<h1 class="border-bottom pb-2">{{'quality-assurance.title'| translate}}</h1>
<ds-alert [type]="'alert-info'" [content]="'quality-assurance.source.description'"></ds-alert>
</div>
</div>
<div class="row">
<div class="col-12">
<h3 class="h4 border-bottom pb-2">{{'quality-assurance.source'| translate}}</h3>
<h2 class="h4 border-bottom pb-2">{{'quality-assurance.source'| translate}}</h2>

<ds-loading class="container" *ngIf="(isSourceLoading() | async)" message="{{'quality-assurance.loading' | translate}}"></ds-loading>
<ds-pagination *ngIf="(isSourceLoading() | async) !== true"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="border-bottom pb-2">{{'quality-assurance.title'| translate}}</h2>
<h1 class="border-bottom pb-2">{{'quality-assurance.title'| translate}}</h1>
<ds-alert *ngIf="!targetId" [type]="'alert-info'">{{'quality-assurance.topics.description'| translate:{source: sourceId} }}</ds-alert>
<ds-alert *ngIf="targetId" [type]="'alert-info'">
{{'quality-assurance.topics.description-with-target'| translate:{source: sourceId} }}
Expand All @@ -11,7 +11,7 @@ <h2 class="border-bottom pb-2">{{'quality-assurance.title'| translate}}</h2>
</div>
<div class="row">
<div class="col-12">
<h4 class="border-bottom pb-2">{{'quality-assurance.topics'| translate}}</h4>
<h2 class="border-bottom pb-2">{{'quality-assurance.topics'| translate}}</h2>

<ds-loading class="container" *ngIf="(isTopicsLoading() | async)" message="{{'quality-assurance.loading' | translate}}"></ds-loading>
<ds-pagination *ngIf="(isTopicsLoading() | async) !== true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ <h3 class="mb-4">{{'register-page.create-profile.header' | translate}}</h3>
<div class="card-body">
<div class="row">
<div class="col-12">
<label class="font-weight-bold"
<label class="font-weight-bold mr-4"
for="email">{{'register-page.create-profile.identification.email' | translate}}</label>
<span id="email">{{(registration$ |async).email}}</span></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

<ng-template #content let-c="close" let-d="dismiss">
<div class="modal-header">
<h4 class="modal-title text-danger">{{'submission.general.discard.confirm.title' | translate}}</h4>
<div class="modal-title text-danger h4">{{'submission.general.discard.confirm.title' | translate}}</div>
<button type="button" id="delete_close" class="close" aria-label="Close" (click)="d('cancel')">
<span aria-hidden="true">&times;</span>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<ds-badges [object]="item" [context]="badgeContext" [showAccessStatus]="true"></ds-badges>
</div>
<ds-truncatable [id]="item.id">
<h3 [innerHTML]="dsoTitle" [ngClass]="{'lead': true,'text-muted': !item.firstMetadataValue('dc.title')}"></h3>
<h2 [innerHTML]="dsoTitle" [ngClass]="{'lead': true,'text-muted': !item.firstMetadataValue('dc.title')}"></h2>
<div>
<span class="text-muted">
<ds-truncatable-part [id]="item.id" [minLines]="1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
</div>
<div class="modal-body">
<button class="btn btn-outline-primary btn-lg btn-block" (click)="selectObject(undefined)">{{'dso-selector.' + action + '.' + objectType.toString().toLowerCase() + '.button'| translate }}</button>
<h3 class="position-relative py-1 my-3 font-weight-normal">
<div class="position-relative py-1 my-3 font-weight-normal h3">
<hr>
<div id="create-community-or-separator" class="text-center position-absolute w-100">
<span class="px-4 bg-white">{{'dso-selector.' + action + '.' + objectType.toString().toLowerCase() + '.or-divider' | translate}}</span>
</div>
</h3>
</div>

<h5 class="px-2">{{'dso-selector.' + action + '.' + objectType.toString().toLowerCase() + '.input-header' | translate}}</h5>
<h2 class="px-2 h5">{{'dso-selector.' + action + '.' + objectType.toString().toLowerCase() + '.input-header' | translate}}</h2>
<ds-dso-selector [currentDSOId]="dsoRD?.payload.uuid" [types]="selectorTypes" [sort]="defaultSort" (onSelect)="selectObject($event)"></ds-dso-selector>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="d-flex justify-content-between">
<h2 *ngIf="!disableHeader">{{ (configuration ? configuration + '.search.results.head' : 'search.results.head') | translate }}</h2>
<h1 *ngIf="!disableHeader">{{ (configuration ? configuration + '.search.results.head' : 'search.results.head') | translate }}</h1>
<ds-search-export-csv *ngIf="showCsvExport" [searchConfig]="searchConfig"></ds-search-export-csv>
</div>
<div *ngIf="searchResults && searchResults?.hasSucceeded && !searchResults?.isLoading && searchResults?.payload?.page.length > 0" @fadeIn>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<ng-template #noFileUploaded>
<div class="row">
<div class="col-md-12">
<h3 class="text-center"><span class="text-muted">{{'submission.sections.upload.no-file-uploaded' | translate}}</span></h3>
<div class="text-center h3"><span class="text-muted">{{'submission.sections.upload.no-file-uploaded' | translate}}</span></div>
</div>
</div>
</ng-template>
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<div class="container">
<h2>{{ 'workspace-item.delete.header' | translate }}</h2>
<h1>{{ 'workspace-item.delete.header' | translate }}</h1>
<ds-modify-item-overview *ngIf="(dso$ | async)" [item]="$any(dso$ | async)"></ds-modify-item-overview>
<button class="btn btn-default" (click)="previousPage()">{{ 'workspace-item.delete.button.cancel' | translate }}</button>
<button class="btn btn-danger" (click)="$event.preventDefault();confirmDelete(content)">{{ 'workspace-item.delete.button.confirm' | translate }}</button>
</div>

<ng-template #content let-c="close" let-d="dismiss" id="delete-modal">
<div class="modal-header">
<h4 class="modal-title text-danger">{{ 'workspace-item.delete.header' | translate }}</h4>
<div class="modal-title text-danger h4">{{ 'workspace-item.delete.header' | translate }}</div>
<button type="button" id="delete_close" class="close" aria-label="Close" (click)="d('cancel')">
<span aria-hidden="true">&times;</span>
</button>
Expand Down
127 changes: 124 additions & 3 deletions src/assets/i18n/fr.json5
Original file line number Diff line number Diff line change
Expand Up @@ -1122,12 +1122,21 @@
// "admin.workflow.item.workflow": "Workflow",
"admin.workflow.item.workflow": "En traitement",

//"admin.workflow.item.workspace": "Workspace",
"admin.workflow.item.workspace": "Dépôts en cours",

// "admin.workflow.item.delete": "Delete",
"admin.workflow.item.delete": "Supprimer",

// "admin.workflow.item.send-back": "Send back",
"admin.workflow.item.send-back": "Retourner au déposant",

//"admin.workflow.item.policies": "Policies",
"admin.workflow.item.policies": "Politiques",

// "admin.workflow.item.supervision": "Supervision",
"admin.workflow.item.supervision": "Supervision",

// "admin.metadata-import.breadcrumbs": "Import Metadata",
"admin.metadata-import.breadcrumbs": "Importer Métadonnées",

Expand Down Expand Up @@ -1773,6 +1782,12 @@
// "collection.listelement.badge": "Collection",
"collection.listelement.badge": "Collection",

// "collection.logo": "Collection logo",
"collection.logo": "Logo de la collection",

// "collection.page.browse.search.head": "Search",
"collection.page.browse.search.head": "Chercher",

// "collection.page.browse.recent.head": "Recent Submissions",
"collection.page.browse.recent.head": "Dépôts récents",

Expand All @@ -1791,6 +1806,9 @@
// "collection.page.news": "News",
"collection.page.news": "Nouvelles",

// "collection.search.results.head": "Search Results",
"collection.search.results.head": "Résultats de recherche",

// "collection.select.confirm": "Confirm selected",
"collection.select.confirm": "Confirmer la sélection",

Expand Down Expand Up @@ -2100,6 +2118,9 @@
// "community.all-lists.head": "Subcommunities and Collections",
"community.all-lists.head": "Sous-communautés et collections",

//"community.search.results.head": "Search Results",
"community.search.results.head": "Résultats de recherche",

// "community.sub-collection-list.head": "Collections of this Community",
"community.sub-collection-list.head": "Collections au sein de cette communauté",

Expand Down Expand Up @@ -3531,6 +3552,12 @@
// "item.page.version.create": "Create new version",
"item.page.version.create": "Créer une nouvelle version",

//"item.page.withdrawn": "Request a withdrawal for this item",
"item.page.withdrawn": "Demander le retrait de cet Item",

//"item.page.reinstate": "Request reinstatement",
"item.page.reinstate": "Demander la réintégration de cet Item",

// "item.page.version.hasDraft": "A new version cannot be created because there is an in-progress submission in the version history",
"item.page.version.hasDraft": "Une nouvelle version ne peut être créée car il y a une soumission en cours dans l'historique des versions",

Expand Down Expand Up @@ -4104,6 +4131,15 @@
// "menu.section.new_process": "Process",
"menu.section.new_process": "Processus",

//"menu.section.notifications": "Notifications",
"menu.section.notifications": "Notifications",

//"menu.section.quality-assurance": "Quality Assurance",
"menu.section.quality-assurance": "Assurance qualité",

//"menu.section.notifications_publication-claim": "Publication Claim",
"menu.section.notifications_publication-claim": "Réclamation de publication",

// "menu.section.pin": "Pin sidebar",
"menu.section.pin": "Épingler le menu latéral",

Expand Down Expand Up @@ -6445,9 +6481,90 @@
// "submission.workspace.generic.view": "View",
"submission.workspace.generic.view": "Afficher",

// "submission.workspace.generic.view-help": "Select this option to view the item's metadata.",
//"submission.workspace.generic.view-help": "Select this option to view the item's metadata.",
"submission.workspace.generic.view-help": "Sélectionner cette option pour afficher les métadonnées de l'item.",

//"submitter.empty": "N/A",
"submitter.empty": "S/O",

//"subscriptions.modal.title": "Subscriptions",
"subscriptions.modal.title": "Abonnements",

//"subscriptions.modal.type-frequency": "Type and frequency",
"subscriptions.modal.type-frequency": "Type et fréquence",

//"subscriptions.modal.close": "Close",
"subscriptions.modal.close": "Fermer",

//"subscriptions.modal.delete-info": "To remove this subscription, please visit the \"Subscriptions\" page under your user profile",
"subscriptions.modal.delete-info": "Pour vous désabonner, visitez la page Abonnements dans votre profil utilisateur",

//"subscriptions.modal.new-subscription-form.type.content": "Content",
"subscriptions.modal.new-subscription-form.type.content": "Contenu",

//"subscriptions.modal.new-subscription-form.frequency.D": "Daily",
"subscriptions.modal.new-subscription-form.frequency.D": "Quotidienne",

//"subscriptions.modal.new-subscription-form.frequency.W": "Weekly",
"subscriptions.modal.new-subscription-form.frequency.W": "Hebdomadaire",

//"subscriptions.modal.new-subscription-form.frequency.M": "Monthly",
"subscriptions.modal.new-subscription-form.frequency.M": "Mensuelle",

//"subscriptions.tooltip": "Subscribe",
"subscriptions.tooltip": "S'abonner",

//"subscriptions.modal.new-subscription-form.submit": "Submit",
"subscriptions.modal.new-subscription-form.submit": "Soumettre",

//"subscriptions.modal.new-subscription-form.processing": "Processing...",
"subscriptions.modal.new-subscription-form.processing": "En traitement...",

//"subscriptions.modal.create.success": "Subscribed to {{ type }} successfully.",
"subscriptions.modal.create.success": "Abonnement à {{ type }} réussi.",

//"subscriptions.modal.delete.success": "Subscription deleted successfully",
"subscriptions.modal.delete.success": "L'abonnement a été résilié avec succès",

//"subscriptions.modal.update.success": "Subscription to {{ type }} updated successfully",
"subscriptions.modal.update.success": "L'abonnement à {{ type }} a été mis à jour avec succès",

//"subscriptions.modal.create.error": "An error occurs during the subscription creation",
"subscriptions.modal.create.error": "Une erreur s'est produite lors de la création de l'abonnement",

//"subscriptions.modal.delete.error": "An error occurs during the subscription delete",
"subscriptions.modal.delete.error": "Une erreur s'est produite lors de la résiliation de l'abonnement",

//"subscriptions.modal.update.error": "An error occurs during the subscription update",
"subscriptions.modal.update.error": "Une erreur s'est produite lors de la mise à jour de l'abonnement",

//"subscriptions.table.dso": "Subject",
"subscriptions.table.dso": "Sujet",

//"subscriptions.table.subscription_type": "Subscription Type",
"subscriptions.table.subscription_type": "Type d'abonnement",

//"subscriptions.table.subscription_frequency": "Subscription Frequency",
"subscriptions.table.subscription_frequency": "Fréquence",

//"subscriptions.table.action": "Action",
"subscriptions.table.action": "Action",

//"subscriptions.table.edit": "Edit",
"subscriptions.table.edit": "Éditer",

//"subscriptions.table.delete": "Delete",
"subscriptions.table.delete": "Supprimer",

//"subscriptions.table.not-available": "Not available",
"subscriptions.table.not-available": "Indisponible",

//"subscriptions.table.not-available-message": "The subscribed item has been deleted, or you don't currently have the permission to view it",
"subscriptions.table.not-available-message": "L'Item auquel vous étiez abonné a été supprimé, ou vous n'êtes pas autorisé à le consulter.",

//"subscriptions.table.empty.message": "You do not have any subscriptions at this time. To subscribe to email updates for a Community or Collection, use the subscription button on the object's page.",
"subscriptions.table.empty.message": "Vous n'avez aucun abonnement. Pour vous abonnez à des mises à jour par courriel pour une commmunauté ou une collection, utilisez le bouton d'abonnement sur la page de l'Item.",

// "thumbnail.default.alt": "Thumbnail Image",
"thumbnail.default.alt": "Vignette d'image",

Expand Down Expand Up @@ -6981,6 +7098,12 @@
//"person.orcid.registry.auth": "ORCID Authorizations",
"person.orcid.registry.auth": "Autorisation ORCID",

//"home.recent-submissions.head": "Recent Submissions",
"home.recent-submissions.head": "Dépôts récents",

//"listable-notification-object.default-message": "This object couldn't be retrieved",
"listable-notification-object.default-message": "Cet objet n'a pas été trouvé.",

// "system-wide-alert-banner.retrieval.error": "Something went wrong retrieving the system-wide alert banner",
"system-wide-alert-banner.retrieval.error": "Une erreur s'est produite lors de la récupération de la bannière du message d'avertissement",

Expand All @@ -6996,8 +7119,6 @@
// "system-wide-alert-banner.countdown.minutes": "{{minutes}} minute(s):",
"system-wide-alert-banner.countdown.minutes": "{{minutes}} minute(s):",



// "menu.section.system-wide-alert": "System-wide Alert",
"menu.section.system-wide-alert": "Messages d'avertissement",

Expand Down

0 comments on commit 5f82ec8

Please sign in to comment.