From f420cca78c4647cfccaf87f95b02742b0b6e9072 Mon Sep 17 00:00:00 2001 From: lotte Date: Tue, 9 Jul 2019 12:11:04 +0200 Subject: [PATCH] layout changes, result list, fixed prod build --- src/app/core/core.module.ts | 1 - .../mocks/mock-submission-response.json | 2 +- ...namic-lookup-relation-modal.component.html | 11 ++++- ...dynamic-lookup-relation-modal.component.ts | 25 +++++++--- .../dynamic-lookup-relation.component.html | 36 +++++++++----- .../dynamic-lookup-relation.component.ts | 28 +++++++---- .../dynamic-lookup-relation.model.ts | 3 ++ .../form/builder/parsers/field-parser.ts | 1 + .../parsers/lookup-relation-field-parser.ts | 11 +++-- src/app/shared/form/form.component.html | 8 +-- .../section-relationships.component.html | 0 .../section-relationships.component.scss | 0 .../section-relationships.component.ts | 49 ------------------- 13 files changed, 84 insertions(+), 91 deletions(-) delete mode 100644 src/app/submission/sections/relationships/section-relationships.component.html delete mode 100644 src/app/submission/sections/relationships/section-relationships.component.scss delete mode 100644 src/app/submission/sections/relationships/section-relationships.component.ts diff --git a/src/app/core/core.module.ts b/src/app/core/core.module.ts index 7183899c1c..a57823fe50 100644 --- a/src/app/core/core.module.ts +++ b/src/app/core/core.module.ts @@ -97,7 +97,6 @@ import { EndpointMockingRestService } from './dspace-rest-v2/endpoint-mocking-re import { ENV_CONFIG, GLOBAL_CONFIG, GlobalConfig } from '../../config'; export const restServiceFactory = (cfg: GlobalConfig, mocks: MockResponseMap, http: HttpClient) => { - console.log('REST SERVICE FACTORY'); if (ENV_CONFIG.production) { return new DSpaceRESTv2Service(http); } else { diff --git a/src/app/core/dspace-rest-v2/mocks/mock-submission-response.json b/src/app/core/dspace-rest-v2/mocks/mock-submission-response.json index 1ab79f220e..b4b7a9852c 100644 --- a/src/app/core/dspace-rest-v2/mocks/mock-submission-response.json +++ b/src/app/core/dspace-rest-v2/mocks/mock-submission-response.json @@ -10,7 +10,7 @@ }, "label": "Journal Issue", "mandatory": true, - "repeatable": false, + "repeatable": true, "mandatoryMessage": "Required field!", "hints": "Select a journal issue for this publication.", "selectableMetadata": [ diff --git a/src/app/shared/form/builder/ds-dynamic-form-ui/models/lookup-relation/dynamic-lookup-relation-modal.component.html b/src/app/shared/form/builder/ds-dynamic-form-ui/models/lookup-relation/dynamic-lookup-relation-modal.component.html index 90f45547c6..84c6e5bd8b 100644 --- a/src/app/shared/form/builder/ds-dynamic-form-ui/models/lookup-relation/dynamic-lookup-relation-modal.component.html +++ b/src/app/shared/form/builder/ds-dynamic-form-ui/models/lookup-relation/dynamic-lookup-relation-modal.component.html @@ -6,8 +6,14 @@