Skip to content

Commit

Permalink
documents briew view: Fix for eboook
Browse files Browse the repository at this point in the history
Co-Authored-by: Bertrand Zuchuat <bertrand.zuchuat@rero.ch>
  • Loading branch information
Garfield-fr committed Aug 27, 2019
1 parent 977148c commit 19d3159
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,12 @@ export class DocumentsBriefViewComponent implements BriefView {

groupItems() {
const items = [];
for (const holding of this.record.metadata.holdings) {
if ('items' in holding) {
for (const item of holding.items) {
items.push(item);
if ('holdings' in this.record.metadata) {
for (const holding of this.record.metadata.holdings) {
if ('items' in holding) {
for (const item of holding.items) {
items.push(item);
}
}
}
}
Expand Down

0 comments on commit 19d3159

Please sign in to comment.