[Explore|Trunk]
Home: add advanced search link when "All content" is selected. git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@59004 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
cac44d718e
commit
2dca865d5f
|
@ -52,8 +52,32 @@
|
|||
class="uk-button portal-button uk-text-bold uk-padding uk-padding-remove-vertical uk-margin-small-left">
|
||||
Search
|
||||
</button>
|
||||
<div class="uk-margin-small-top uk-margin-left"> <a *ngIf="selectedEntity!= 'all'" (click)="goTo(false)"
|
||||
class="portal-link">Advanced Search</a></div>
|
||||
<div class="uk-margin-small-top uk-margin-left">
|
||||
<!-- (click)="goTo(false)"-->
|
||||
<a *ngIf="selectedEntity!='all'" (click)="goTo(false)" class="portal-link">Advanced Search</a>
|
||||
<a *ngIf="selectedEntity=='all'" class="portal-link ">Advanced Search</a></div>
|
||||
<div *ngIf="selectedEntity=='all'" uk-dropdown class="uk-dropdown default-dropdown">
|
||||
<ul class="uk-list uk-margin-remove-bottom">
|
||||
<li *ngIf="showSoftware || showPublications || showOrp || showDatasets"><a
|
||||
[routerLink]="properties.searchLinkToAdvancedResults" [queryParams]="{qf:true, q: keyword, op: 'and'}"
|
||||
>Research
|
||||
outcomes</a></li>
|
||||
<li *ngIf="showProjects"><a
|
||||
[routerLink]="properties.searchLinkToAdvancedProjects" [queryParams]="{q: keyword, op: 'and'}" >
|
||||
Projects</a></li>
|
||||
<li *ngIf="showDataProviders"><a
|
||||
[routerLink]="properties.searchLinkToAdvancedDataProviders" [queryParams]="{q: keyword, op: 'and'}">
|
||||
Content providers</a></li>
|
||||
<li *ngIf="showOrganizations"><a
|
||||
[routerLink]="properties.searchLinkToAdvancedOrganizations" [queryParams]="{q: keyword, op: 'and'}">
|
||||
Organizations</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--<div class="uk-inline">
|
||||
<button class="uk-button uk-button-default" type="button">Hover</button>
|
||||
<div uk-dropdown>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.</div>
|
||||
</div>-->
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
|
|
@ -137,6 +137,7 @@ export class HomeComponent {
|
|||
showOrp: boolean = false;
|
||||
showProjects:boolean= false;
|
||||
showDataProviders:boolean= false;
|
||||
showOrganizations:boolean= false;
|
||||
properties: EnvProperties;
|
||||
public readMore: boolean = false;
|
||||
public subPub;public subData;public subProjects;public subOrg; public subDataPr;
|
||||
|
@ -231,6 +232,7 @@ public subPub;public subData;public subProjects;public subOrg; public subDataPr;
|
|||
this.showOrp = showEntity["orp"];
|
||||
this.showProjects = showEntity["project"];
|
||||
this.showDataProviders = showEntity["datasource"];
|
||||
this.showOrganizations = showEntity["organization"];
|
||||
this.getNumbers();
|
||||
// if(this.showDataProviders) {
|
||||
// this.fetchDataproviders.getResultsForHome(this.numResults, this.properties);
|
||||
|
|
Loading…
Reference in New Issue