diff --git a/src/app/core/assets/data/product_dictionary.json b/src/app/core/assets/data/product_dictionary.json index 8c189a667..263fe500f 100644 --- a/src/app/core/assets/data/product_dictionary.json +++ b/src/app/core/assets/data/product_dictionary.json @@ -1,9 +1,9 @@ { - "Administravail Pharmacedical Dosage Form":{ - "lucenePath":"root_pharmacedicalDosageForm", - "description":"Pharmaceutical Form of the product", + "Product Container":{ + "lucenePath":"root_productContainer", + "description":"Product Container of the product", "type":"string", - "cvDomain":"PROD_PHARMACEDICAL_DOSAGE_FORM", + "cvDomain":"PROD_CONTAINER", "priority":null, "suggest":null }, diff --git a/src/app/core/facets-manager/facet-display.pipe.ts b/src/app/core/facets-manager/facet-display.pipe.ts index cf14e66e8..ed384b5eb 100644 --- a/src/app/core/facets-manager/facet-display.pipe.ts +++ b/src/app/core/facets-manager/facet-display.pipe.ts @@ -16,8 +16,6 @@ export class FacetDisplayPipe implements PipeTransform { codeTerm = this.configService.configData.approvalCodeName; } - - if (args) { if (args === 'userList') { if (name.includes(':')){ @@ -98,6 +96,12 @@ export class FacetDisplayPipe implements PipeTransform { if (name === 'root_submitDate') { return 'Submit Date'; } + if (name === 'root_creationDate') { + return 'Record Create Date'; + } + if (name === 'root_lastModifiedDate') { + return 'Record Last Edited'; + } return name.trim(); } diff --git a/src/app/core/substance-ssg4m/ssg4m-process/substance-form-ssg4m-process-card.component.ts b/src/app/core/substance-ssg4m/ssg4m-process/substance-form-ssg4m-process-card.component.ts index 3f71f7ab2..e8734be2b 100644 --- a/src/app/core/substance-ssg4m/ssg4m-process/substance-form-ssg4m-process-card.component.ts +++ b/src/app/core/substance-ssg4m/ssg4m-process/substance-form-ssg4m-process-card.component.ts @@ -67,7 +67,7 @@ export class SubstanceFormSsg4mProcessCardComponent extends SubstanceCardBaseFil window['schemeUtil'].maxTextLen = 19; window['schemeUtil'].BREAK_GAP = 300; window['schemeUtil'].maxTitleTextLen = 100; - + const url = `${(this.configService.configData && this.configService.configData.apiBaseUrl) || '/'}api/v1/`; const httpp = this.http; window['schemeUtil'].apiBaseURL = url; @@ -99,7 +99,7 @@ export class SubstanceFormSsg4mProcessCardComponent extends SubstanceCardBaseFil window['schemeUtil'].onClickMaterial = (d) => { this.openImageModal(d.refuuid, d.name, d.bottomText); }; - + if (window['schemeUtil'].executeWhenLoaded) { window['schemeUtil'].executeWhenLoaded(); } diff --git a/src/app/fda/advanced-search/service/advanced-search.service.ts b/src/app/fda/advanced-search/service/advanced-search.service.ts index 8643d7fa7..a1983be7d 100644 --- a/src/app/fda/advanced-search/service/advanced-search.service.ts +++ b/src/app/fda/advanced-search/service/advanced-search.service.ts @@ -6,11 +6,9 @@ import { BaseHttpService } from '@gsrs-core/base'; import { PagingResponse } from '@gsrs-core/utils'; import { FacetParam, FacetHttpParams, FacetQueryResponse } from '@gsrs-core/facets-manager'; import { SubstanceDetail, SubstanceName, SubstanceCode } from '@gsrs-core/substance/substance.model'; -import { ProductAll } from '../../product/model/product.model'; -import { ClinicalTrial } from '../../clinical-trials/clinical-trial/clinical-trial.model'; -// import { map, switchMap, tap } from 'rxjs/operators'; -// import { Facet } from '@gsrs-core/facets-manager'; +import { Product } from '../../product/model/product.model' import { Application, ApplicationIngredient } from '../../application/model/application.model'; +import { ClinicalTrial } from '../../clinical-trials/clinical-trial/clinical-trial.model'; @Injectable( { providedIn: 'root' } @@ -119,7 +117,7 @@ export class AdvancedSearchService extends BaseHttpService { pageSize: number = 10, searchTerm?: string, facets?: FacetParam - ): Observable> { + ): Observable> { let params = new FacetHttpParams(); params = params.append('skip', skip.toString()); params = params.append('top', '1'); // setting top=1, faster result, no content @@ -134,7 +132,7 @@ export class AdvancedSearchService extends BaseHttpService { params: params }; - return this.http.get>(url, options); + return this.http.get>(url, options); } getClinicalTrials( diff --git a/src/app/fda/application/application-form/application-form.component.ts b/src/app/fda/application/application-form/application-form.component.ts index 8cff542af..39347dcdc 100644 --- a/src/app/fda/application/application-form/application-form.component.ts +++ b/src/app/fda/application/application-form/application-form.component.ts @@ -11,6 +11,7 @@ import { ControlledVocabularyService } from '../../../core/controlled-vocabulary import { VocabularyTerm } from '../../../core/controlled-vocabulary/vocabulary.model'; import { Application, ValidationMessage } from '../model/application.model'; import { Subscription } from 'rxjs'; +import * as moment from 'moment'; import { Title } from '@angular/platform-browser'; import { take } from 'rxjs/operators'; import { MatDialog } from '@angular/material/dialog'; @@ -455,11 +456,17 @@ export class ApplicationFormComponent implements OnInit, AfterViewInit, OnDestro } showJSON(): void { + const date = new Date(); + let jsonFilename = 'application_' + moment(date).format('MMM-DD-YYYY_H-mm-ss'); + let cleanApplication = this.cleanApplication(); + + let data = {jsonData: cleanApplication, jsonFilename: jsonFilename}; + const dialogRef = this.dialog.open(JsonDialogFdaComponent, { width: '90%', height: '90%', - data: cleanApplication + data: data }); // this.overlayContainer.style.zIndex = '1002'; diff --git a/src/app/fda/application/application-form/ingredient-form/ingredient-form.component.html b/src/app/fda/application/application-form/ingredient-form/ingredient-form.component.html index 00afa7526..9d8e45154 100644 --- a/src/app/fda/application/application-form/ingredient-form/ingredient-form.component.html +++ b/src/app/fda/application/application-form/ingredient-form/ingredient-form.component.html @@ -44,8 +44,8 @@