Skip to content

Commit

Permalink
minor pre release fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
El Ouakili, Abdelghani (IntlAssoc) committed Sep 16, 2020
1 parent ee15c81 commit d4fbf42
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ domain/.settings
*.project*
*.classpath*
*.metadata
*public*
public/*
bootstrap/hl7-igamt.log.*
hl7-auth.log
hl7-igamt.log
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -986,8 +986,8 @@ private void fixIGs() throws CoConstraintGroupNotFoundException{

//@PostConstruct
void fixConformanceStatements() throws IGUpdateException, CoConstraintGroupNotFoundException {
// this.conformanceStatementFixer.fixConformanceStatmentsId();
this.igFixer.deriveChildren();
this.conformanceStatementFixer.fixConformanceStatmentsId();
this.conformanceStatementFixer.lockCfsForDerived();
this.igFixer.fixIgComponents();

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template name="PublicationDate">
<xsl:if test="normalize-space(@publicationDate)!=''">
<b>Publication Date : </b> <xsl:value-of disable-output-escaping="yes" select="@publicationDate"></xsl:value-of>
<xsl:element name="br" />
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Original file line number Diff line number Diff line change
Expand Up @@ -1292,7 +1292,7 @@ public ResponseMessage<IGDisplayInfo> addValueSets(@PathVariable("id") String id
public @ResponseBody ResponseMessage<String> updateSharedUser(@PathVariable("id") String id, @RequestBody SharedUsersInfo sharedUsersInfo, Authentication authentication)
throws IGNotFoundException, IGUpdateException, ResourceNotFoundException, ForbiddenOperationException {
Ig ig = findIgById(id);
commonService.checkRight(authentication, ig.getCurrentAuthor(), ig.getUsername());
commonService.checkRight(authentication, ig.getUsername(), ig.getUsername());
this.sharingService.shareIg(id, sharedUsersInfo);
return new ResponseMessage<String>(Status.SUCCESS, "", "Ig Shared Users Successfully Updated", id, false,
new Date(), id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h5>Associated datatypes conformance statements</h5>
<tr>
<th style="width: 100px;">ID</th>
<th>Description</th>
<th *ngIf="tmpl" style="width: 190px;"></th>
<th *ngIf="tmpl && !(viewOnly$ | async)" style="width: 190px;"></th>
</tr>
<tr *ngFor="let cs of csList; let i = index;" [ngClass]="{
'table-warning': cs.changeType === 'UPDATE',
Expand All @@ -76,7 +76,7 @@ <h5>Associated datatypes conformance statements</h5>
<span class="badge badge-warning" *ngIf="cs.payload?.locked">derived</span>
</td>
<td>{{ getDescription(cs.payload) }}</td>
<ng-container *ngIf="tmpl">
<ng-container *ngIf="tmpl && !(viewOnly$ | async)">
<ng-container *ngTemplateOutlet="tmpl; context: { $implicit: cs, index: i }"></ng-container>
</ng-container>
</tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div style="position: relative;">
<img height="45px" src="../../../../../assets/nist_logo.png">
<a class="navbar-brand toolbar-name"> Implementation Guide Authoring and Management Tool
<span class="toolname-abbrv">(IGAMT) v1.3.1-beta</span>
<span class="toolname-abbrv">(IGAMT) v1.4.1-beta</span>

</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@ <h5 class="card-title title-text custom-card-title">Font Size</h5>
[disabled]="viewOnly"
[(ngModel)]="config.fontSize"
(input)="onInputChange($event)"
thumbLabel
[displayWith]="formatLabel"
tickInterval="1"
min="1"
max="25">
</mat-slider>

</div>

<div class="card card-configuration" style="flex-grow: 1; margin-right: 10px;" >
Expand All @@ -36,8 +34,8 @@ <h5 class="card-title title-text custom-card-title">Font Type</h5>
</mat-radio-group>
</div>


<!-- </div> -->


</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
[globalViewOnly]="viewOnly"
[enforceChangeReason]="derived"
[changeLog]="rowData.changeLog"
[type]="rowData.type"
[location]="rowData.pathId"
[position]="rowData.position"
[level]="rowData.level"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,10 @@ export class Hl7V2TreeComponent implements OnInit, OnDestroy {
s_resource: Subscription;
context: IBindingContext;
treeSubscriptions: Subscription[];
nodeType = this.treeService.nodeType;

nodeType(node: IHL7v2TreeNode): Type {
return this.treeService.nodeType(node);
}
readonly trackBy = (index, item) => {
return item.node.data.id;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class SelectMessagesComponent implements OnInit {
@Input()
selectedVersion: string;
@Input()
selectedScope: Scope;
selectedScope: Scope = Scope.HL7STANDARD;
@Input()
existing: IDisplayElement[] = [];
@Input()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
<div #rla="routerLinkActive"
[routerLink]="getElementUrl(node.data)"
routerLinkActive
[contextMenu]="conformanceProfileContextMenu"
class="inline-label">

<app-entity-bagde [type]="node.data.type"></app-entity-bagde>
Expand All @@ -32,11 +31,11 @@

</div>

<context-menu #conformanceProfileContextMenu>
<ng-template (execute)="publishStructure(node.data.id, node.data.type)" [enabled]="!rla.isActive && node.data.status !== 'PUBLISHED'" contextMenuItem>
<i class="fa fa-lock"></i> Lock Structure
</ng-template>
</context-menu>
<!-- <context-menu #conformanceProfileContextMenu>-->
<!-- <ng-template (execute)="publishStructure(node.data.id, node.data.type)" [enabled]="!rla.isActive && node.data.status !== 'PUBLISHED'" contextMenuItem>-->
<!-- <i class="fa fa-lock"></i> Lock Structure-->
<!-- </ng-template>-->
<!-- </context-menu>-->

<ng-container *ngIf="rla.isActive" >
<ng-container *ngTemplateOutlet="subMenu; context: { $implicit : node.data }"></ng-container>
Expand All @@ -62,7 +61,6 @@
<div #rla="routerLinkActive"
[routerLink]="getElementUrl(node.data)"
routerLinkActive
[contextMenu]="segmentContextMenu"
class="inline-label">

<app-entity-bagde [type]="node.data.type"></app-entity-bagde>
Expand All @@ -76,11 +74,11 @@

</div>

<context-menu #segmentContextMenu>
<ng-template (execute)="publishStructure(node.data.id, node.data.type)" [enabled]="!rla.isActive && node.data.status !== 'PUBLISHED'" contextMenuItem>
<i class="fa fa-lock"></i> Lock Structure
</ng-template>
</context-menu>
<!-- <context-menu #segmentContextMenu>-->
<!-- <ng-template (execute)="publishStructure(node.data.id, node.data.type)" [enabled]="!rla.isActive && node.data.status !== 'PUBLISHED'" contextMenuItem>-->
<!-- <i class="fa fa-lock"></i> Lock Structure-->
<!-- </ng-template>-->
<!-- </context-menu>-->

<ng-container *ngIf="rla.isActive" >
<ng-container *ngTemplateOutlet="subMenu; context: { $implicit : node.data }"></ng-container>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export const selectedValueSet = createSelector(
export const selectedResourceHasOrigin = createSelector(
selectSelectedResource,
(state: IResource) => {
return !!state.origin;
return state.derived;
},
);

Expand Down

0 comments on commit d4fbf42

Please sign in to comment.