diff --git a/apps/metadata-editor-e2e/src/e2e/record-actions.cy.ts b/apps/metadata-editor-e2e/src/e2e/record-actions.cy.ts index 6bbe256f0b..76dd781865 100644 --- a/apps/metadata-editor-e2e/src/e2e/record-actions.cy.ts +++ b/apps/metadata-editor-e2e/src/e2e/record-actions.cy.ts @@ -114,6 +114,52 @@ describe('record-actions', () => { .should('contain.text', 'Next') }) + it('the created record should not allow upload of resources and show info message as it was not saved yet', () => { + // first page + cy.get('gn-ui-form-field-overviews') + .find('gn-ui-image-input') + .find('input') + .should('be.disabled') + cy.get('gn-ui-form-field-overviews') + .children() + .find('[data-test="disabled-message"]') + .should( + 'contain.text', + ' This field will be enabled once the data has been published ' + ) + + // second page + cy.get('[data-test="previousNextPageButtons"]') + .children() + .eq(1) + .should('contain.text', 'Next') + .click() + cy.get('gn-ui-form-field-online-resources') + .find('gn-ui-switch-toggle') + .find('mat-button-toggle-group') + .find('button') + .should('be.disabled') + cy.get('gn-ui-file-input').find('input').should('be.disabled') + cy.get('gn-ui-form-field-online-resources') + .children() + .find('div') + .should( + 'contain.text', + ' This field will be enabled once the data has been published ' + ) + + cy.get('gn-ui-form-field-online-link-resources') + .find('input') + .should('be.disabled') + cy.get('gn-ui-form-field-online-link-resources') + .children() + .find('div') + .should( + 'contain.text', + ' This field will be enabled once the data has been published ' + ) + }) + it('back navigation should go to search after creating a record', () => { cy.go('back') cy.url().should('include', '/catalog/search') diff --git a/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html b/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html index 4ee656c480..d7e845ff71 100644 --- a/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html +++ b/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.html @@ -16,6 +16,7 @@

aria-labelledby="example-radio-group-label" class="flex flex-row gap-[8px]" [(ngModel)]="service.accessServiceProtocol" + [disabled]="disabled" > diff --git a/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts b/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts index f75af603c8..9b4f6a187a 100644 --- a/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts +++ b/libs/feature/editor/src/lib/components/online-service-resource-input/online-service-resource-input.component.ts @@ -34,6 +34,7 @@ import { TranslateModule } from '@ngx-translate/core' export class OnlineServiceResourceInputComponent implements OnChanges { @Input() service: Omit @Input() protocolHint?: string + @Input() disabled? = false selectedProtocol: ServiceProtocol diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.html b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.html index 822ed4b9fb..11801f5ae8 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.html +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-contacts/form-field-contacts.component.html @@ -32,7 +32,7 @@
editor.record.form.field.contacts.noContact diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html index 7631601886..141c397bf1 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.html @@ -1,44 +1,58 @@ - -
- - - - - +
+ +
+ + + + + - -
-
-

- editor.record.form.field.onlineResource.edit.title -

- + +
+
+

+ editor.record.form.field.onlineResource.edit.title +

+ +
+
+

+ editor.record.form.field.onlineResource.edit.description +

+ +
+ +
-
-

- editor.record.form.field.onlineResource.edit.description -

- -
- - +
+
+ editor.record.form.field.draft.only.disabled
- +
diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.spec.ts b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.spec.ts index ce65f266c4..353287971e 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.spec.ts +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.spec.ts @@ -13,6 +13,7 @@ import { MatDialog, MatDialogRef } from '@angular/material/dialog' import { OnlineLinkResource } from '@geonetwork-ui/common/domain/model/record' import { ModalDialogComponent } from '@geonetwork-ui/ui/layout' import { ChangeDetectorRef } from '@angular/core' +import { EditorFacade } from '../../../../+state/editor.facade' let uploadSubject: Subject @@ -38,6 +39,10 @@ export class MatDialogMock { })) } +class EditorFacadeMock { + alreadySavedOnce$ = new BehaviorSubject(false) +} + describe('FormFieldOnlineLinkResourcesComponent', () => { let component: FormFieldOnlineLinkResourcesComponent let fixture: ComponentFixture @@ -65,6 +70,7 @@ describe('FormFieldOnlineLinkResourcesComponent', () => { detectChanges: jest.fn(), }), MockProvider(MatDialog, MatDialogMock, 'useClass'), + MockProvider(EditorFacade, EditorFacadeMock, 'useClass'), ], }).compileComponents() diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts index 3000324226..44fc6d5e79 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-link-resources/form-field-online-link-resources.component.ts @@ -27,9 +27,10 @@ import { import { NotificationsService } from '@geonetwork-ui/feature/notifications' import { TranslateModule, TranslateService } from '@ngx-translate/core' import { PlatformServiceInterface } from '@geonetwork-ui/common/domain/platform.service.interface' -import { Subscription } from 'rxjs' +import { map, Subscription } from 'rxjs' import { MatDialog } from '@angular/material/dialog' import { MAX_UPLOAD_SIZE_MB } from '../../../../fields.config' +import { EditorFacade } from '../../../../+state/editor.facade' @Component({ selector: 'gn-ui-form-field-online-link-resources', @@ -68,12 +69,17 @@ export class FormFieldOnlineLinkResourcesComponent { protected MAX_UPLOAD_SIZE_MB = MAX_UPLOAD_SIZE_MB + disabled$ = this.editorFacade.alreadySavedOnce$.pipe( + map((alreadySavedOnce) => !alreadySavedOnce) + ) + constructor( private notificationsService: NotificationsService, private translateService: TranslateService, private platformService: PlatformServiceInterface, private cd: ChangeDetectorRef, - private dialog: MatDialog + private dialog: MatDialog, + private editorFacade: EditorFacade ) {} handleFileChange(file: File) { diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.html b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.html index d8c6a7367b..3d54511b29 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.html +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.html @@ -1,72 +1,88 @@ - -
- -
- - - -
-
- - - - - - - -
-
-

- editor.record.form.field.onlineResource.edit.title -

- -
-
-

- editor.record.form.field.onlineResource.edit.description -

- -
- - - - +
+ +
+ +
+
- +
+ + + + + + + +
+
+

+ editor.record.form.field.onlineResource.edit.title +

+ +
+
+

+ editor.record.form.field.onlineResource.edit.description +

+ +
+ + + + + + +
+
+
+ editor.record.form.field.draft.only.disabled +
+
diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.spec.ts b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.spec.ts index 307a0d5a62..46d35577d5 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.spec.ts +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.spec.ts @@ -2,10 +2,11 @@ import { ComponentFixture, TestBed } from '@angular/core/testing' import { TranslateModule } from '@ngx-translate/core' import { FormFieldOnlineResourcesComponent } from './form-field-online-resources.component' import { MockBuilder, MockProvider } from 'ng-mocks' -import { Subject } from 'rxjs' +import { BehaviorSubject, Subject } from 'rxjs' import { PlatformServiceInterface } from '@geonetwork-ui/common/domain/platform.service.interface' import { NotificationsService } from '@geonetwork-ui/feature/notifications' import { MatDialog, MatDialogRef } from '@angular/material/dialog' +import { EditorFacade } from '../../../../+state/editor.facade' let uploadSubject: Subject class PlatformServiceInterfaceMock { @@ -21,6 +22,9 @@ export class MatDialogMock { afterClosed: () => this._subject, })) } +class EditorFacadeMock { + alreadySavedOnce$ = new BehaviorSubject(false) +} describe('FormFieldOnlineResourcesComponent', () => { let component: FormFieldOnlineResourcesComponent @@ -42,6 +46,7 @@ describe('FormFieldOnlineResourcesComponent', () => { MockProvider(NotificationsService), MockProvider(MatDialogRef), MockProvider(MatDialog, MatDialogMock, 'useClass'), + MockProvider(EditorFacade, EditorFacadeMock, 'useClass'), ], }).compileComponents() diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts index 6079095018..5e87060b09 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-online-resources/form-field-online-resources.component.ts @@ -32,10 +32,11 @@ import { SortableListComponent, } from '@geonetwork-ui/ui/layout' import { TranslateModule, TranslateService } from '@ngx-translate/core' -import { Subscription } from 'rxjs' +import { map, Subscription } from 'rxjs' import { MAX_UPLOAD_SIZE_MB } from '../../../../fields.config' import { OnlineResourceCardComponent } from '../../../online-resource-card/online-resource-card.component' import { OnlineServiceResourceInputComponent } from '../../../online-service-resource-input/online-service-resource-input.component' +import { EditorFacade } from '../../../../+state/editor.facade' type OnlineNotLinkResource = | DatasetDownloadDistribution @@ -100,12 +101,17 @@ export class FormFieldOnlineResourcesComponent { protected MAX_UPLOAD_SIZE_MB = MAX_UPLOAD_SIZE_MB + disabled$ = this.editorFacade.alreadySavedOnce$.pipe( + map((alreadySavedOnce) => !alreadySavedOnce) + ) + constructor( private notificationsService: NotificationsService, private translateService: TranslateService, private platformService: PlatformServiceInterface, private cd: ChangeDetectorRef, - private dialog: MatDialog + private dialog: MatDialog, + private editorFacade: EditorFacade ) {} onSelectedTypeChange(selectedType: unknown) { diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html index 0e10c3e88c..6ed3d8e0eb 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.html @@ -1,11 +1,22 @@ - +
+ +
+ editor.record.form.field.draft.only.disabled +
+
diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.spec.ts b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.spec.ts index a18dab7012..6412f56944 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.spec.ts +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.spec.ts @@ -8,6 +8,7 @@ import { PlatformServiceInterface, RecordAttachment, } from '@geonetwork-ui/common/domain/platform.service.interface' +import { EditorFacade } from '../../../../+state/editor.facade' let uploadSubject: Subject @@ -26,6 +27,10 @@ class PlatformServiceInterfaceMock { getRecordAttachments = jest.fn(() => recordAttachments) } +class EditorFacadeMock { + alreadySavedOnce$ = new BehaviorSubject(false) +} + describe('FormFieldOverviewsComponent', () => { let component: FormFieldOverviewsComponent let fixture: ComponentFixture @@ -46,6 +51,7 @@ describe('FormFieldOverviewsComponent', () => { 'useClass' ), MockProvider(NotificationsService), + MockProvider(EditorFacade, EditorFacadeMock, 'useClass'), ], }).compileComponents() diff --git a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts index ae56250a87..f2af52dc5e 100644 --- a/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts +++ b/libs/feature/editor/src/lib/components/record-form/form-field/form-field-overviews/form-field-overviews.component.ts @@ -11,9 +11,10 @@ import { GraphicOverview } from '@geonetwork-ui/common/domain/model/record' import { ImageInputComponent } from '@geonetwork-ui/ui/inputs' import { PlatformServiceInterface } from '@geonetwork-ui/common/domain/platform.service.interface' import { NotificationsService } from '@geonetwork-ui/feature/notifications' -import { TranslateService } from '@ngx-translate/core' -import { Subscription } from 'rxjs' +import { TranslateModule, TranslateService } from '@ngx-translate/core' +import { map, Subscription } from 'rxjs' import { MAX_UPLOAD_SIZE_MB } from '../../../../fields.config' +import { EditorFacade } from '../../../../+state/editor.facade' @Component({ selector: 'gn-ui-form-field-overviews', @@ -21,7 +22,7 @@ import { MAX_UPLOAD_SIZE_MB } from '../../../../fields.config' styleUrls: ['./form-field-overviews.component.css'], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, - imports: [CommonModule, ImageInputComponent], + imports: [CommonModule, ImageInputComponent, TranslateModule], }) export class FormFieldOverviewsComponent { @Input() metadataUuid: string @@ -29,6 +30,10 @@ export class FormFieldOverviewsComponent { @Output() valueChange: EventEmitter> = new EventEmitter() + disabled$ = this.editorFacade.alreadySavedOnce$.pipe( + map((alreadySavedOnce) => !alreadySavedOnce) + ) + uploadProgress = undefined uploadSubscription: Subscription = null @@ -47,7 +52,8 @@ export class FormFieldOverviewsComponent { private platformService: PlatformServiceInterface, private notificationsService: NotificationsService, private translateService: TranslateService, - private cd: ChangeDetectorRef + private cd: ChangeDetectorRef, + private editorFacade: EditorFacade ) {} handleFileChange(file: File) { diff --git a/libs/ui/inputs/src/lib/file-input/file-input.component.html b/libs/ui/inputs/src/lib/file-input/file-input.component.html index 208946510f..946263e33c 100644 --- a/libs/ui/inputs/src/lib/file-input/file-input.component.html +++ b/libs/ui/inputs/src/lib/file-input/file-input.component.html @@ -5,9 +5,10 @@ [ngClass]="{ 'border-primary-lighter bg-primary-white': dragFilesOver, 'border-gray-300': !dragFilesOver, - 'cursor-pointer hover:border-gray-500': !isUploadInProgress + 'cursor-pointer hover:border-gray-500': !isUploadInProgress && !disabled, + 'cursor-not-allowed': disabled }" - [attr.tabindex]="isUploadInProgress ? null : 0" + [attr.tabindex]="isUploadInProgress || disabled ? null : 0" (dragFilesOver)="handleDragFilesOver($event)" (dropFiles)="handleDropFiles($event)" (keydown.enter)="fileInput.click()" @@ -17,7 +18,7 @@ type="file" class="hidden" (change)="handleFileInput($event)" - [disabled]="isUploadInProgress" + [disabled]="isUploadInProgress || disabled" />
diff --git a/libs/ui/inputs/src/lib/file-input/file-input.component.stories.ts b/libs/ui/inputs/src/lib/file-input/file-input.component.stories.ts index fff22568cd..f85a230f2b 100644 --- a/libs/ui/inputs/src/lib/file-input/file-input.component.stories.ts +++ b/libs/ui/inputs/src/lib/file-input/file-input.component.stories.ts @@ -34,6 +34,7 @@ export default { export const Primary: StoryObj = { args: { maxSizeMB: 5, + disabled: false, }, render: (args) => ({ props: { @@ -44,7 +45,9 @@ export const Primary: StoryObj = { }, template: `
- diff --git a/libs/ui/inputs/src/lib/file-input/file-input.component.ts b/libs/ui/inputs/src/lib/file-input/file-input.component.ts index 225b1e1f3b..4d5f72cb43 100644 --- a/libs/ui/inputs/src/lib/file-input/file-input.component.ts +++ b/libs/ui/inputs/src/lib/file-input/file-input.component.ts @@ -48,6 +48,7 @@ import { iconoirCloudUpload, iconoirFramePlusIn } from '@ng-icons/iconoir' export class FileInputComponent { @Input() maxSizeMB: number @Input() uploadProgress?: number + @Input() disabled? = false @Output() fileChange: EventEmitter = new EventEmitter() @Output() urlChange: EventEmitter = new EventEmitter() @Output() uploadCancel: EventEmitter = new EventEmitter() diff --git a/libs/ui/inputs/src/lib/image-input/image-input.component.html b/libs/ui/inputs/src/lib/image-input/image-input.component.html index f17df3c221..ce80776cd8 100644 --- a/libs/ui/inputs/src/lib/image-input/image-input.component.html +++ b/libs/ui/inputs/src/lib/image-input/image-input.component.html @@ -15,6 +15,7 @@ style="--gn-ui-button-height: 40px; --gn-ui-button-width: 40px" extraClass="absolute right-2 bottom-2 invisible group-hover:visible bg-background" (buttonClick)="handleDelete()" + [disabled]="disabled" > @@ -25,6 +26,7 @@ [value]="altText ?? ''" (valueChange)="handleAltTextChange($event)" extraClass="gn-ui-editor-textarea" + [disabled]="disabled" >
@@ -52,10 +54,11 @@ 'border-primary-lighter bg-primary-white': dragFilesOver, 'border-gray-300': !dragFilesOver, 'cursor-pointer hover:border-gray-500': - !isUploadInProgress && !uploadError && !showUrlInput + !isUploadInProgress && !uploadError && !showUrlInput && !disabled, + 'cursor-not-allowed': disabled }" [attr.tabindex]=" - isUploadInProgress || uploadError || showUrlInput ? null : 0 + isUploadInProgress || uploadError || showUrlInput || disabled ? null : 0 " (keydown.enter)="fileInput.click()" (dragFilesOver)="handleDragFilesOver($event)" @@ -126,12 +129,19 @@ type="file" class="hidden" (change)="handleFileInput($event)" - [disabled]="showUrlInput || isUploadInProgress || uploadError" + [disabled]=" + showUrlInput || isUploadInProgress || uploadError || disabled + " />
- + {{ 'input.image.displayUrlInput' | translate }} @@ -141,7 +151,7 @@ *ngIf="showUrlInput" class="mt-3.5" (uploadClick)="downloadUrl($event)" - [disabled]="isUploadInProgress" + [disabled]="isUploadInProgress || disabled" >
diff --git a/libs/ui/inputs/src/lib/image-input/image-input.component.stories.ts b/libs/ui/inputs/src/lib/image-input/image-input.component.stories.ts index 450f12fa8e..0b463ea0a9 100644 --- a/libs/ui/inputs/src/lib/image-input/image-input.component.stories.ts +++ b/libs/ui/inputs/src/lib/image-input/image-input.component.stories.ts @@ -34,6 +34,7 @@ export default { export const WithoutImage: StoryObj = { args: { maxSizeMB: 5, + disabled: false, }, render: (args) => ({ props: { @@ -46,7 +47,9 @@ export const WithoutImage: StoryObj = { }, template: `
- = new EventEmitter() @Output() urlChange: EventEmitter = new EventEmitter() @Output() uploadCancel: EventEmitter = new EventEmitter() diff --git a/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html b/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html index 5a144886eb..fae6a97a6f 100644 --- a/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html +++ b/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.component.html @@ -2,6 +2,7 @@ #group="matButtonToggleGroup" multiple="false" class="flex w-full" + [disabled]="disabled" > () onChange(selectedOption: SwitchToggleOption) { diff --git a/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.stories.ts b/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.stories.ts index a71d587ed0..cdb9e64951 100644 --- a/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.stories.ts +++ b/libs/ui/inputs/src/lib/switch-toggle/switch-toggle.stories.ts @@ -34,6 +34,7 @@ export const Primary: StoryObj = { { label: 'state', checked: false }, ], extraClasses: 'grow', + disabled: false, }, render: (args) => ({ props: { ...args }, diff --git a/translations/de.json b/translations/de.json index 3b4633d090..3bc5c2400c 100644 --- a/translations/de.json +++ b/translations/de.json @@ -26,7 +26,6 @@ "dashboard.importRecord": "", "dashboard.importRecord.importExternal": "", "dashboard.importRecord.importExternalLabel": "", - "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Katalog", "dashboard.labels.mySpace": "Mein Bereich", "dashboard.records.all": "Metadatenkatalog", @@ -216,6 +215,7 @@ "editor.record.form.field.constraintsShortcuts": "", "editor.record.form.field.contacts.noContact": "", "editor.record.form.field.contactsForResource.noContact": "", + "editor.record.form.field.draft.only.disabled": "Dieses Feld wird aktiviert, sobald die Daten veröffentlicht wurden.", "editor.record.form.field.keywords": "Schlagwörter", "editor.record.form.field.legalConstraints": "Rechtliche Einschränkung", "editor.record.form.field.license": "Lizenz", diff --git a/translations/en.json b/translations/en.json index dc1c110ef7..0b08b8caf2 100644 --- a/translations/en.json +++ b/translations/en.json @@ -26,7 +26,6 @@ "dashboard.importRecord": "Import", "dashboard.importRecord.importExternal": "Import an external file", "dashboard.importRecord.importExternalLabel": "External file URL", - "dashboard.importRecord.useModel": "Use a model", "dashboard.labels.catalog": "Catalog", "dashboard.labels.mySpace": "My space", "dashboard.records.all": "Metadata records", @@ -216,6 +215,7 @@ "editor.record.form.field.constraintsShortcuts": "", "editor.record.form.field.contacts.noContact": "Please provide at least one point of contact.", "editor.record.form.field.contactsForResource.noContact": "Please provide at least one point of contact responsible for the data.", + "editor.record.form.field.draft.only.disabled": "This field will be enabled once the data has been published", "editor.record.form.field.keywords": "Keywords", "editor.record.form.field.legalConstraints": "Legal constraint", "editor.record.form.field.license": "License", diff --git a/translations/es.json b/translations/es.json index 70cb7dc95c..6292a8e6d0 100644 --- a/translations/es.json +++ b/translations/es.json @@ -26,7 +26,6 @@ "dashboard.importRecord": "", "dashboard.importRecord.importExternal": "", "dashboard.importRecord.importExternalLabel": "", - "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Catálogo", "dashboard.labels.mySpace": "Mi espacio", "dashboard.records.all": "Catálogo", @@ -216,6 +215,7 @@ "editor.record.form.field.constraintsShortcuts": "", "editor.record.form.field.contacts.noContact": "", "editor.record.form.field.contactsForResource.noContact": "", + "editor.record.form.field.draft.only.disabled": "", "editor.record.form.field.keywords": "", "editor.record.form.field.legalConstraints": "", "editor.record.form.field.license": "", diff --git a/translations/fr.json b/translations/fr.json index bc1142bf0b..16d398c314 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -26,7 +26,6 @@ "dashboard.importRecord": "Importer", "dashboard.importRecord.importExternal": "Importer une fiche externe", "dashboard.importRecord.importExternalLabel": "URL de la fiche externe", - "dashboard.importRecord.useModel": "Utiliser un modèle", "dashboard.labels.catalog": "Catalogue", "dashboard.labels.mySpace": "Mon espace", "dashboard.records.all": "Fiches de métadonnées", @@ -216,6 +215,7 @@ "editor.record.form.field.constraintsShortcuts": "", "editor.record.form.field.contacts.noContact": "Veuillez renseigner au moins un point de contact.", "editor.record.form.field.contactsForResource.noContact": "Veuillez renseigner au moins un point de contact responsable de la donnée.", + "editor.record.form.field.draft.only.disabled": "Ce champ sera activé une fois les données publiées", "editor.record.form.field.keywords": "Mots-clés", "editor.record.form.field.legalConstraints": "Contrainte légale", "editor.record.form.field.license": "Licence", diff --git a/translations/it.json b/translations/it.json index 13a18404f0..2256e7d942 100644 --- a/translations/it.json +++ b/translations/it.json @@ -26,7 +26,6 @@ "dashboard.importRecord": "", "dashboard.importRecord.importExternal": "", "dashboard.importRecord.importExternalLabel": "", - "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Catalogo", "dashboard.labels.mySpace": "Il mio spazio", "dashboard.records.all": "Catalogo", @@ -216,6 +215,7 @@ "editor.record.form.field.constraintsShortcuts": "", "editor.record.form.field.contacts.noContact": "", "editor.record.form.field.contactsForResource.noContact": "", + "editor.record.form.field.draft.only.disabled": "", "editor.record.form.field.keywords": "", "editor.record.form.field.legalConstraints": "", "editor.record.form.field.license": "Licenza", diff --git a/translations/nl.json b/translations/nl.json index 76273a0ebe..8ce69d2469 100644 --- a/translations/nl.json +++ b/translations/nl.json @@ -26,7 +26,6 @@ "dashboard.importRecord": "", "dashboard.importRecord.importExternal": "", "dashboard.importRecord.importExternalLabel": "", - "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Catalogus", "dashboard.labels.mySpace": "Mijn ruimte", "dashboard.records.all": "Catalogus", @@ -216,6 +215,7 @@ "editor.record.form.field.constraintsShortcuts": "", "editor.record.form.field.contacts.noContact": "", "editor.record.form.field.contactsForResource.noContact": "", + "editor.record.form.field.draft.only.disabled": "", "editor.record.form.field.keywords": "", "editor.record.form.field.legalConstraints": "", "editor.record.form.field.license": "", diff --git a/translations/pt.json b/translations/pt.json index 8c5b2e6f60..1fd3657736 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -26,7 +26,6 @@ "dashboard.importRecord": "", "dashboard.importRecord.importExternal": "", "dashboard.importRecord.importExternalLabel": "", - "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Catálogo", "dashboard.labels.mySpace": "Meu espaço", "dashboard.records.all": "Catálogo", @@ -216,6 +215,7 @@ "editor.record.form.field.constraintsShortcuts": "", "editor.record.form.field.contacts.noContact": "", "editor.record.form.field.contactsForResource.noContact": "", + "editor.record.form.field.draft.only.disabled": "", "editor.record.form.field.keywords": "", "editor.record.form.field.legalConstraints": "", "editor.record.form.field.license": "", diff --git a/translations/sk.json b/translations/sk.json index b974fd479a..070a188a9e 100644 --- a/translations/sk.json +++ b/translations/sk.json @@ -26,7 +26,6 @@ "dashboard.importRecord": "", "dashboard.importRecord.importExternal": "", "dashboard.importRecord.importExternalLabel": "", - "dashboard.importRecord.useModel": "", "dashboard.labels.catalog": "Katalóg", "dashboard.labels.mySpace": "Môj priestor", "dashboard.records.all": "Katalóg", @@ -216,6 +215,7 @@ "editor.record.form.field.constraintsShortcuts": "", "editor.record.form.field.contacts.noContact": "", "editor.record.form.field.contactsForResource.noContact": "", + "editor.record.form.field.draft.only.disabled": "", "editor.record.form.field.keywords": "", "editor.record.form.field.legalConstraints": "", "editor.record.form.field.license": "Licencia",