Skip to content

Commit

Permalink
deposit: allow custom fields to be entered on submission
Browse files Browse the repository at this point in the history
* Closes rero/sonar#706.

Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Dec 1, 2021
1 parent 9237283 commit 1655583
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions projects/sonar/src/app/deposit/editor/editor.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,33 @@ <h3 class="mt-0 mb-2" [innerHtml]="deposit.metadata.title | nl2br"></h3>
</ul>
</dd>
</ng-container>

<ng-container *ngIf="deposit.metadata.customField1 && deposit.metadata.customField1.length">
<dt class="col-sm-3" translate>Custom fields 1</dt>
<dd class="col-sm-9">
<p class="m-0" *ngFor="let customField of deposit.metadata.customField1">
{{ customField }}
</p>
</dd>
</ng-container>

<ng-container *ngIf="deposit.metadata.customField2 && deposit.metadata.customField2.length">
<dt class="col-sm-3" translate>Custom fields 2</dt>
<dd class="col-sm-9">
<p class="m-0" *ngFor="let customField of deposit.metadata.customField2">
{{ customField }}
</p>
</dd>
</ng-container>

<ng-container *ngIf="deposit.metadata.customField3 && deposit.metadata.customField3.length">
<dt class="col-sm-3" translate>Custom fields 3</dt>
<dd class="col-sm-9">
<p class="m-0" *ngFor="let customField of deposit.metadata.customField3">
{{ customField }}
</p>
</dd>
</ng-container>
</dl>
</ng-container>
</div>
Expand Down

0 comments on commit 1655583

Please sign in to comment.