Browse by pages: Adding Parent's Title and Description

This commit is contained in:
lhenze
2019-08-21 14:03:34 -04:00
parent 2a6e3c08cc
commit 165dc2ccda
2 changed files with 24 additions and 0 deletions

View File

@@ -1,4 +1,25 @@
<div class="container">
<div *ngVar="(parent$ | async) as parent">
<div *ngIf="parent?.payload as parentContext">
<header>
<!-- Collection Name -->
<ds-comcol-page-header
[name]="parentContext.name">
</ds-comcol-page-header>
<!-- Introductionary text -->
<ds-comcol-page-content
[content]="parentContext.introductoryText"
[hasInnerHtml]="true">
</ds-comcol-page-content>
<!-- Browse-By Links -->
<ds-comcol-page-browse-by [id]="parentContext.id"></ds-comcol-page-browse-by>
</header>
</div>
</div>
<div class="browse-by-metadata w-100">
<ds-browse-by *ngIf="startsWithOptions" class="col-xs-12 w-100"
title="{{'browse.title' | translate:{collection: (parent$ | async)?.payload?.name || '', field: 'browse.metadata.' + browseId | translate, value: (value)? '&quot;' + value + '&quot;': ''} }}"

View File

@@ -0,0 +1,3 @@
.browse-by-metadata {
margin: 2rem 0 ;
}