Skip to content

Commit

Permalink
holdings: allow new line for enumerationAndChronology field
Browse files Browse the repository at this point in the history
Closes rero/rero-ils#2822.

Co-authored-by: Renaud Michotte <renaud.michotte@gmail.com>
  • Loading branch information
zannkukai committed Apr 7, 2022
1 parent a932e12 commit 3971fd3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
<div class="col-sm-3 font-weight-bold" translate>
Available collection
</div>
<div id="holding-enum-chrono-{{ holding.metadata.pid }}" class="col-sm-9 pl-4">
{{ holding.metadata.enumerationAndChronology }}
<div id="holding-enum-chrono-{{ holding.metadata.pid }}"
class="col-sm-9 pl-4"
[innerHTML]="holding.metadata.enumerationAndChronology | nl2br">
</div>
</ng-container>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@
<!-- ENUMERATION AND CHRONOLOGY -->
<ng-container *ngIf="holding.metadata.enumerationAndChronology">
<dt class="col-2 col-sm-4 label-title" translate>Available collection</dt>
<dd id="holding-enum-chro-{{ holding.metadata.pid }}" class="col-10 col-sm-8">{{ holding.metadata.enumerationAndChronology }}</dd>
<dd id="holding-enum-chro-{{ holding.metadata.pid }}"
class="col-10 col-sm-8"
[innerHTML]="holding.metadata.enumerationAndChronology | nl2br">
</dd>
</ng-container>
<!-- SUPPLEMENTARY CONTENT -->
<ng-container *ngIf="holding.metadata.supplementaryContent">
Expand Down

0 comments on commit 3971fd3

Please sign in to comment.