59415: Browse-By links on community and collection pages'

This commit is contained in:
Kristof De Langhe
2019-01-29 16:07:53 +01:00
parent 4ccd19081a
commit 0312e659a4
5 changed files with 20 additions and 0 deletions

View File

@@ -33,6 +33,8 @@
[content]="collection.license"
[title]="'collection.page.license'">
</ds-comcol-page-content>
<!-- Browse-By Links -->
<ds-comcol-page-browse-by [id]="collection.id"></ds-comcol-page-browse-by>
</div>
</div>
<ds-error *ngIf="collectionRD?.hasFailed" message="{{'error.collection' | translate}}"></ds-error>

View File

@@ -24,6 +24,8 @@
[content]="communityPayload.copyrightText"
[hasInnerHtml]="true">
</ds-comcol-page-content>
<!-- Browse-By Links -->
<ds-comcol-page-browse-by [id]="communityPayload.id"></ds-comcol-page-browse-by>
<ds-community-page-sub-community-list [community]="communityPayload"></ds-community-page-sub-community-list>
<ds-community-page-sub-collection-list [community]="communityPayload"></ds-community-page-sub-collection-list>
</div>

View File

@@ -0,0 +1,5 @@
<h3>Browse</h3>
<ul>
<li><a [routerLink]="['/browse/title']" [queryParams]="{scope: id}">By Title</a></li>
<li><a [routerLink]="['/browse/author']" [queryParams]="{scope: id}">By Author</a></li>
</ul>

View File

@@ -0,0 +1,9 @@
import { Component, Input } from '@angular/core';
@Component({
selector: 'ds-comcol-page-browse-by',
templateUrl: './comcol-page-browse-by.component.html',
})
export class ComcolPageBrowseByComponent {
@Input() id: string;
}

View File

@@ -87,6 +87,7 @@ import { ObjectKeysPipe } from './utils/object-keys-pipe';
import { MomentModule } from 'ngx-moment';
import { MenuModule } from './menu/menu.module';
import {LangSwitchComponent} from './lang-switch/lang-switch.component';
import { ComcolPageBrowseByComponent } from './comcol-page-browse-by/comcol-page-browse-by.component';
const MODULES = [
// Do NOT include UniversalModule, HttpModule, or JsonpModule here
@@ -130,6 +131,7 @@ const COMPONENTS = [
ComcolPageContentComponent,
ComcolPageHeaderComponent,
ComcolPageLogoComponent,
ComcolPageBrowseByComponent,
DsDynamicFormComponent,
DsDynamicFormControlComponent,
DsDynamicListComponent,