-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
only add Display Search Facets to the Homepage #2275
Changes from 61 commits
5a9269e
7336188
fed9244
f2c6f3f
9910589
675c354
13f6d4e
5d3af64
326777a
22f1844
0e28e56
f6ba079
e7f8882
e0d8566
8b97c19
d6d0d40
e6253da
5ad3f97
c1acb11
79d961f
6d14a6d
e0b757c
f2ae1a8
cb3a191
1c25266
6678a17
7b027b5
ac4748e
b3db2f2
832f3cd
c365507
74dca8c
e6d62c4
4091528
09712bf
92a3720
3e30310
ecee746
84641b3
8b4752a
6612bd9
73464d6
0bb8fe0
860a0d5
644df3f
314742d
70d35f9
e59a33a
430d8dc
206bb2f
0c4497a
951c4ee
a56291f
f044c5c
e26ab14
7fd4a9c
3fd2453
989d0e5
0d85522
730b812
5094b47
19b689c
3461aaa
52a2807
9bfc103
155f812
55209b0
4907d5c
3da9493
6576739
a8eb9fc
a0d5a5a
dade463
b6f31b6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,78 +1,58 @@ | ||
<div class="container"> | ||
<div class="collection-page" | ||
*ngVar="(collectionRD$ | async) as collectionRD"> | ||
<div *ngIf="collectionRD?.hasSucceeded" @fadeInOut> | ||
<div *ngIf="collectionRD?.payload as collection"> | ||
<ds-view-tracker [object]="collection"></ds-view-tracker> | ||
<div class="d-flex flex-row border-bottom mb-4 pb-4"> | ||
<header class="comcol-header mr-auto"> | ||
<!-- Collection Name --> | ||
<ds-comcol-page-header | ||
[name]="dsoNameService.getName(collection)"> | ||
</ds-comcol-page-header> | ||
<!-- Collection logo --> | ||
<ds-comcol-page-logo *ngIf="logoRD$" | ||
[logo]="(logoRD$ | async)?.payload" | ||
[alternateText]="'collection.logo' | translate"> | ||
</ds-comcol-page-logo> | ||
<div class="collection-page" *ngVar="(collectionRD$ | async) as collectionRD"> | ||
<div *ngIf="collectionRD?.hasSucceeded" @fadeInOut> | ||
<div *ngIf="collectionRD?.payload as collection"> | ||
<ds-view-tracker [object]="collection"></ds-view-tracker> | ||
<div class="d-flex flex-row border-bottom mb-4 pb-4"> | ||
<header class="comcol-header mr-auto"> | ||
<!-- Collection Name --> | ||
<ds-comcol-page-header [name]="dsoNameService.getName(collection)"> | ||
</ds-comcol-page-header> | ||
<!-- Collection logo --> | ||
<ds-comcol-page-logo *ngIf="logoRD$" [logo]="(logoRD$ | async)?.payload" [alternateText]="'Collection Logo'"> | ||
</ds-comcol-page-logo> | ||
|
||
<!-- Handle --> | ||
<ds-themed-comcol-page-handle | ||
[content]="collection.handle" | ||
[title]="'collection.page.handle'" > | ||
</ds-themed-comcol-page-handle> | ||
<!-- Introductory text --> | ||
<ds-comcol-page-content | ||
[content]="collection.introductoryText" | ||
[hasInnerHtml]="true"> | ||
</ds-comcol-page-content> | ||
<!-- News --> | ||
<ds-comcol-page-content | ||
[content]="collection.sidebarText" | ||
[hasInnerHtml]="true" | ||
[title]="'collection.page.news'"> | ||
</ds-comcol-page-content> | ||
</header> | ||
<ds-dso-edit-menu></ds-dso-edit-menu> | ||
</div> | ||
<section class="comcol-page-browse-section"> | ||
<!-- Browse-By Links --> | ||
<ds-themed-comcol-page-browse-by | ||
[id]="collection.id" | ||
[contentType]="collection.type"> | ||
</ds-themed-comcol-page-browse-by> | ||
|
||
<ng-container *ngVar="(itemRD$ | async) as itemRD"> | ||
<div class="mt-4" *ngIf="itemRD?.hasSucceeded" @fadeIn> | ||
<h3 class="sr-only">{{'collection.page.browse.recent.head' | translate}}</h3> | ||
<ds-viewable-collection | ||
[config]="paginationConfig" | ||
[sortConfig]="sortConfig" | ||
[objects]="itemRD" | ||
[hideGear]="true"> | ||
</ds-viewable-collection> | ||
</div> | ||
<ds-error *ngIf="itemRD?.hasFailed" | ||
message="{{'error.recent-submissions' | translate}}"></ds-error> | ||
<ds-themed-loading *ngIf="!itemRD || itemRD.isLoading" | ||
message="{{'loading.recent-submissions' | translate}}"></ds-themed-loading> | ||
<div *ngIf="!itemRD?.isLoading && itemRD?.payload?.page.length === 0" class="alert alert-info w-100" role="alert"> | ||
{{'collection.page.browse.recent.empty' | translate}} | ||
<!-- Handle --> | ||
<ds-themed-comcol-page-handle [content]="collection.handle" [title]="'collection.page.handle'"> | ||
</ds-themed-comcol-page-handle> | ||
<!-- Introductory text --> | ||
<ds-comcol-page-content [content]="collection.introductoryText" [hasInnerHtml]="true"> | ||
</ds-comcol-page-content> | ||
<!-- News --> | ||
<ds-comcol-page-content [content]="collection.sidebarText" [hasInnerHtml]="true" [title]="'collection.page.news'"> | ||
</ds-comcol-page-content> | ||
</header> | ||
<ds-dso-edit-menu></ds-dso-edit-menu> | ||
</div> | ||
<section class="comcol-page-browse-section"> | ||
<!-- Browse-By Links --> | ||
<ds-themed-comcol-page-browse-by [id]="collection.id" [contentType]="collection.type"> | ||
</ds-themed-comcol-page-browse-by> | ||
<ng-container *ngVar="(itemRD$ | async) as itemRD"> | ||
<div class="mt-4" *ngIf="itemRD?.hasSucceeded" @fadeIn> | ||
<h3 class="sr-only">{{'collection.page.browse.recent.head' | | ||
translate}}</h3> | ||
<ds-viewable-collection [config]="paginationConfig" [sortConfig]="sortConfig" [objects]="itemRD" | ||
[hideGear]="true"> | ||
</ds-viewable-collection> | ||
</div> | ||
<ds-error *ngIf="itemRD?.hasFailed" message="{{'error.recent-submissions' | translate}}"></ds-error> | ||
<ds-themed-loading *ngIf="!itemRD || itemRD.isLoading" | ||
message="{{'loading.recent-submissions' | translate}}"></ds-themed-loading> | ||
<div *ngIf="!itemRD?.isLoading && itemRD?.payload?.page.length === 0" class="alert alert-info w-100" | ||
role="alert"> | ||
{{'collection.page.browse.recent.empty' | translate}} | ||
</div> | ||
</ng-container> | ||
</section> | ||
<footer *ngIf="collection.copyrightText" class="border-top my-5 pt-4"> | ||
<!-- Copyright --> | ||
<ds-comcol-page-content [content]="collection.copyrightText" [hasInnerHtml]="true"> | ||
</ds-comcol-page-content> | ||
</footer> | ||
</div> | ||
</div> | ||
<ds-error *ngIf="collectionRD?.hasFailed" message="{{'error.collection' | translate}}"></ds-error> | ||
<ds-themed-loading *ngIf="collectionRD?.isLoading" message="{{'loading.collection' | translate}}"></ds-themed-loading> | ||
</div> | ||
</ng-container> | ||
</section> | ||
<footer *ngIf="collection.copyrightText" class="border-top my-5 pt-4"> | ||
<!-- Copyright --> | ||
<ds-comcol-page-content | ||
[content]="collection.copyrightText" | ||
[hasInnerHtml]="true"> | ||
</ds-comcol-page-content> | ||
</footer> | ||
</div> | ||
</div> | ||
<ds-error *ngIf="collectionRD?.hasFailed" | ||
message="{{'error.collection' | translate}}"></ds-error> | ||
<ds-themed-loading *ngIf="collectionRD?.isLoading" | ||
message="{{'loading.collection' | translate}}"></ds-themed-loading> | ||
</div> | ||
</div> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,10 +28,12 @@ | |
<ds-themed-comcol-page-browse-by [id]="communityPayload.id" [contentType]="communityPayload.type"> | ||
</ds-themed-comcol-page-browse-by> | ||
|
||
<ds-themed-community-page-sub-community-list [community]="communityPayload"></ds-themed-community-page-sub-community-list> | ||
<ds-themed-community-page-sub-collection-list [community]="communityPayload"></ds-themed-community-page-sub-collection-list> | ||
<ds-themed-community-page-sub-community-list | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, could you undo the changes to this file too? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @GauravD2t : The changes to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @GauravD2t : Same as above, this |
||
[community]="communityPayload"></ds-themed-community-page-sub-community-list> | ||
<ds-themed-community-page-sub-collection-list | ||
[community]="communityPayload"></ds-themed-community-page-sub-collection-list> | ||
</section> | ||
<footer *ngIf="communityPayload.copyrightText" class="border-top my-5 pt-4"> | ||
<footer *ngIf="communityPayload.copyrightText" class="border-top my-5 pt-4"> | ||
<!-- Copyright --> | ||
<ds-comcol-page-content [content]="communityPayload.copyrightText" [hasInnerHtml]="true"> | ||
</ds-comcol-page-content> | ||
|
@@ -41,4 +43,4 @@ | |
|
||
<ds-error *ngIf="communityRD?.hasFailed" message="{{'error.community' | translate}}"></ds-error> | ||
<ds-themed-loading *ngIf="communityRD?.isLoading" message="{{'loading.community' | translate}}"></ds-themed-loading> | ||
</div> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
<ds-themed-home-news></ds-themed-home-news> | ||
<div class="container"> | ||
<ng-container *ngIf="(site$ | async) as site"> | ||
<ds-view-tracker [object]="site"></ds-view-tracker> | ||
</ng-container> | ||
<ds-themed-search-form [inPlaceSearch]="false" [searchPlaceholder]="'home.search-form.placeholder' | translate"></ds-themed-search-form> | ||
<ds-themed-top-level-community-list></ds-themed-top-level-community-list> | ||
<ds-recent-item-list *ngIf="recentSubmissionspageSize>0"></ds-recent-item-list> | ||
<div class="container-fluid"> | ||
<div class="row m-5"> | ||
<div class="col-sm-3"> | ||
<ds-configuration-search-page [sideBarWidth]="12" [showViewModes]="false" [searchEnabled]="false" | ||
[inPlaceSearch]="false" [showScopeSelector]="false"></ds-configuration-search-page> | ||
</div> | ||
<div class="col-sm-9"> | ||
<ng-container *ngIf="(site$ | async) as site"> | ||
<ds-view-tracker [object]="site"></ds-view-tracker> | ||
</ng-container> | ||
<ds-themed-search-form [inPlaceSearch]="false" | ||
[searchPlaceholder]="'home.search-form.placeholder' | translate"></ds-themed-search-form> | ||
<ds-themed-top-level-community-list></ds-themed-top-level-community-list> | ||
<ds-recent-item-list *ngIf="recentSubmissionspageSize>0"></ds-recent-item-list> | ||
</div> | ||
</div> | ||
</div> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,22 +3,17 @@ <h2 class="comcol-browse-label h5">{{'browse.comcol.head' | translate}}</h2> | |
<div class="d-none d-sm-block"> | ||
|
||
<div class="list-group list-group-horizontal"> | ||
<a *ngFor="let option of allOptions" | ||
class="list-group-item" | ||
[routerLink]="option.routerLink" | ||
[queryParams]="option.params" | ||
routerLinkActive="active">{{ option.label | translate }}</a> | ||
<a *ngFor="let option of allOptions" class="list-group-item" [routerLink]="option.routerLink" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think all the changes to this file can also be undone. These are specific to Community/Collection pages again There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @GauravD2t : The changes to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @GauravD2t : Same again here. I believe this |
||
[queryParams]="option.params" routerLinkActive="active">{{ option.label | translate }}</a> | ||
</div> | ||
</div> | ||
|
||
<div class="d-block d-sm-none"> | ||
<select name="browse-type" | ||
class="form-control" | ||
aria-label="Browse Community or Collection" | ||
(ngModelChange)="onSelectChange($event)" [ngModel]="currentOptionId$ | async"> | ||
<option *ngFor="let option of allOptions" | ||
[ngValue]="option.id" | ||
[attr.selected]="(currentOptionId$ | async) === option.id ? 'selected' : null">{{ option.label | translate }}</option> | ||
<select name="browse-type" class="form-control" aria-label="Browse Community or Collection" | ||
(ngModelChange)="onSelectChange($event)" [ngModel]="currentOptionId$ | async"> | ||
<option *ngFor="let option of allOptions" [ngValue]="option.id" | ||
[attr.selected]="(currentOptionId$ | async) === option.id ? 'selected' : null">{{ option.label | translate }} | ||
</option> | ||
</select> | ||
</div> | ||
</nav> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<h3>{{"search.filters.head" | translate}}</h3> | ||
<h3>{{filterLabel+'.filters.head' | translate}}</h3> | ||
<div *ngIf="(filters | async)?.hasSucceeded"> | ||
GauravD2t marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<div *ngFor="let filter of (filters | async)?.payload; trackBy: trackUpdate"> | ||
<ds-search-filter [filter]="filter" [inPlaceSearch]="inPlaceSearch" [refreshFilters]="refreshFilters"></ds-search-filter> | ||
</div> | ||
</div> | ||
<a class="btn btn-primary" [routerLink]="[searchLink]" [queryParams]="clearParams | async" queryParamsHandling="merge" role="button"><i class="fas fa-undo"></i> {{"search.filters.reset" | translate}}</a> | ||
<a class="btn btn-primary" *ngIf="inPlaceSearch" [routerLink]="[searchLink]" [queryParams]="clearParams | async" | ||
queryParamsHandling="merge" role="button"><i class="fas fa-undo"></i> {{"search.filters.reset" | translate}}</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it be possible to undo all the changes to this file? It appears that you may have just realigned the HTML, but it'd be best to revert all changes, otherwise you may cause code conflicts with other PRs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GauravD2t : The changes to the
collection-page.component.html
are still not undone. They still are visible in the files changed tab in GitHub: https://github.com/DSpace/dspace-angular/pull/2275/filesThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@GauravD2t : It appears that you still haven't removed the changes to this
collection-page.component.html
. Please look in GitHub at the "Files changed" tab and you'll see there are still 130 lines of this file which are shown as modified. https://github.com/DSpace/dspace-angular/pull/2275/files