Problem: Attempt to extend comcol-page-browse-by

Cannot pass a URL.  it is getting sanitized
This commit is contained in:
lhenze
2019-08-21 16:07:34 -04:00
parent 1c2203804a
commit 8f93d723a5
3 changed files with 4 additions and 1 deletions

View File

@@ -16,7 +16,8 @@
<ds-comcol-page-content [content]="collection.sidebarText" [hasInnerHtml]="true" [title]="'community.page.news'">
</ds-comcol-page-content>
<!-- Browse-By Links -->
<ds-comcol-page-browse-by [id]="collection.id"></ds-comcol-page-browse-by>
<ds-comcol-page-browse-by [id]="collection.id" [url]="'Test String Placholder for URL'"></ds-comcol-page-browse-by>
</header>
<ng-container *ngVar="(itemRD$ | async) as itemRD">
<div *ngIf="itemRD?.hasSucceeded" @fadeIn>

View File

@@ -1,6 +1,7 @@
<div role="navigation" class="comcol-browse">
<div class="comcol-browse-label">{{'browse.comcol.head' | translate}}</div>
<div class="list-group list-group-horizontal">
<a href="{{url}}" class="list-group-item" routerLinkActive="active">{{url}} Submission date</a>
<a *ngFor="let config of types" class="list-group-item" [routerLink]="['/browse/' + config.id]" [queryParams]="{scope: id}" routerLinkActive="active">{{'browse.comcol.by.' + config.id | translate}}</a>
</div>
</div>

View File

@@ -16,6 +16,7 @@ export class ComcolPageBrowseByComponent implements OnInit {
* The ID of the Community or Collection
*/
@Input() id: string;
@Input() url: string;
/**
* List of currently active browse configurations