[Library|Trunk]

Claims:
	Search: remove class from filters to look like the search filters
	Display claims list: add "no title available" when it is not
	Direct index: don't make the direct index API call in development 


git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@58246 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
argiro.kokogiannaki 2020-03-13 09:16:44 +00:00
parent b28f08e4b8
commit 7021de1932
4 changed files with 8 additions and 8 deletions

View File

@ -62,7 +62,7 @@
<ul class="uk-list"> <ul class="uk-list">
<li class="uk-open"> <li class="uk-open">
<h5 class="uk-margin-bottom-remove searchFilterTitle">Years range <h5 class="uk-margin-bottom-remove ">Years range
</h5> </h5>
<div aria-expanded="false"> <div aria-expanded="false">
<div class="searchFilterBoxValues "> <div class="searchFilterBoxValues ">

View File

@ -106,8 +106,8 @@
</div>--> </div>-->
<!-- Type filter--> <!-- Type filter-->
<ul class="uk-list"> <ul class="uk-list">
<li class="uk-open"> <li class="uk-open uk-margin-small-bottom">
<h5 class="uk-margin-bottom-remove searchFilterTitle">Entity Type (4) <h5 class="uk-margin-bottom-remove ">Entity Type (4)
</h5> </h5>
<div aria-expanded="false"> <div aria-expanded="false">
<div class="searchFilterBoxValues "> <div class="searchFilterBoxValues ">
@ -125,7 +125,7 @@
</div> </div>
</li> </li>
<li class="uk-open"> <li class="uk-open">
<h5 class="uk-margin-bottom-remove searchFilterTitle">Published in <h5 class="uk-margin-bottom-remove">Published in
</h5> </h5>
<div aria-expanded="false"> <div aria-expanded="false">
<div class="searchFilterBoxValues "> <div class="searchFilterBoxValues ">

View File

@ -9,7 +9,7 @@ import {RouterHelper} from '../../../utils/routerHelper.class';
<span *ngIf="!externalPortalUrl" class="publication-title"> <span *ngIf="!externalPortalUrl" class="publication-title">
<span *ngIf="entity.openaireId"><a [queryParams]="routerHelper.createQueryParam(param,entity.openaireId)" routerLinkActive="router-link-active" <span *ngIf="entity.openaireId"><a [queryParams]="routerHelper.createQueryParam(param,entity.openaireId)" routerLinkActive="router-link-active"
[routerLink]="path"> {{entity.title}}</a></span> [routerLink]="path"> {{entity.title?entity.title:"[No title available]"}}</a></span>
<!--span *ngIf="url" class="uk-margin-small-left" ><a target="_blank" href="{{url}}" > <!--span *ngIf="url" class="uk-margin-small-left" ><a target="_blank" href="{{url}}" >
(<span class="custom-external custom-icon" ></span>link)</a></span--> (<span class="custom-external custom-icon" ></span>link)</a></span-->
</span> </span>

View File

@ -175,9 +175,9 @@ export class ClaimInsertComponent {
} }
//first call direct index service - when call is done (success or error) call isertBulkClaims method to insert claims in DB //first call direct index service - when call is done (success or error) call isertBulkClaims method to insert claims in DB
console.log("directclaims"); // console.log("directclaims");
console.log(directclaims); // console.log(directclaims);
if (directclaims.length > 0) { if (directclaims.length > 0 && this.properties.environment != "development"){
this.claimService.insertDirectRecords(directclaims, this.properties.claimsAPIURL).subscribe( this.claimService.insertDirectRecords(directclaims, this.properties.claimsAPIURL).subscribe(
data => { data => {
this.insertedRecords = data.insertedIds; this.insertedRecords = data.insertedIds;