Project

General

Profile

« Previous | Next » 

Revision 60520

[Library | Trunk]: Result preview: add hasLink param and check pid if result preview has been changed

View differences:

result-preview.component.html
1 1
<!-- Before title -->
2
<div uk-grid>
3
  <div class="uk-width-1-1">
2
<div *ngIf="result">
3
  <div>
4 4
    <!-- deposit searchPage URL -->
5 5
    <span class="uk-width-expand uk-flex-right">
6 6
        <a *ngIf="result.websiteURL && promoteWebsiteURL" href="{{result.websiteURL}}" target="_blank" type="submit"
......
187 187
      <span>
188 188
            <a href="{{result.websiteURL}}" target="_blank">
189 189
              <span class="custom-external custom-icon"></span>
190
                {{result.websiteURL}}
190
              {{result.websiteURL}}
191 191
            </a>
192 192
        </span>
193 193
    </div>
......
197 197
      <span>
198 198
        <a href="{{result.OAIPMHURL}}" target="_blank">
199 199
          <span class="custom-external custom-icon"></span>
200
            {{result.OAIPMHURL}}
200
          {{result.OAIPMHURL}}
201 201
        </a>
202 202
      </span>
203 203
    </div>
......
212 212
  </span>
213 213
    </div>
214 214
  </div>
215
</div>
216
<!-- Description -->
217
<div *ngIf="result.description" class="uk-margin-small-bottom multi-line-ellipsis lines-3">
218
  <p class="uk-text-muted">
219
    {{result.description}}
220
  </p>
221
</div>
222
<!-- Download from-->
223
<div *ngIf="result.hostedBy_collectedFrom && result.hostedBy_collectedFrom.length > 0"
224
     class="uk-margin-small-bottom download-from">
225
  <div *ngFor="let from of result.hostedBy_collectedFrom"
226
       [title]="from.bestAccessMode ? from.bestAccessMode : 'Not available'"
227
       class="uk-flex">
215
  <!-- Description -->
216
  <div *ngIf="result.description" class="uk-margin-small-bottom multi-line-ellipsis lines-3">
217
    <p class="uk-text-muted">
218
      {{result.description}}
219
    </p>
220
  </div>
221
  <!-- Download from-->
222
  <div *ngIf="result.hostedBy_collectedFrom && result.hostedBy_collectedFrom.length > 0"
223
       class="uk-margin-small-bottom download-from">
224
    <div *ngFor="let from of result.hostedBy_collectedFrom"
225
         [title]="from.bestAccessMode ? from.bestAccessMode : 'Not available'"
226
         class="uk-flex">
228 227
    <span class="uk-margin-small-right">
229 228
      <img [src]="from.icon">
230 229
    </span>
231
    <span class="uk-width-expand">
230
      <span class="uk-width-expand">
232 231
      <span class="uk-margin-right uk-display-inline-block">
233 232
        <span class="uk-text-muted">Download from: </span>
234 233
        <span *ngIf="from.downloadUrl.length > 1" class="title">
......
260 259
        </span>
261 260
      </span>
262 261
    </span>
262
    </div>
263 263
  </div>
264
</div>
265
<!--&& loggedIn -->
266
<div *ngIf="(result.pop_inf && result.DOI) || (properties.environment != 'production' && properties.adminToolsPortalType == 'explore' && ((showOrcid && result.identifiers && result.identifiers.size > 0) || (result.orcidUpdateDates?.length > 0 || result.orcidCreationDates?.length > 0)))"
267
    class="result-preview-bottom">
268
  <!-- Impact Factors-->
269
  <span class="uk-flex uk-flex-top">
264
  <!--&& loggedIn -->
265
  <div
266
      *ngIf="(result.pop_inf && result.DOI) || (properties.environment != 'production' && properties.adminToolsPortalType == 'explore' && ((showOrcid && result.identifiers && result.identifiers.size > 0) || (result.orcidUpdateDates?.length > 0 || result.orcidCreationDates?.length > 0)))"
267
      class="result-preview-bottom">
268
    <!-- Impact Factors-->
269
    <span class="uk-flex uk-flex-top">
270 270
    <ng-container *ngIf="result.pop_inf && result.DOI">
271 271
    <!--Popularity -->
272 272
    <a title="Popularity" class="popularity-{{result.pop_inf[0]}}  uk-margin-right uk-flex uk-flex-middle">
......
301 301
             href="https://bip.imis.athena-innovation.gr/site/details?id={{result.DOI}}">View more details</a>
302 302
        </div>
303 303
</div>
304
<!--Influence -->
304
      <!--Influence -->
305 305
<a title="Influence" class="influence-{{result.pop_inf[1]}} uk-margin-right uk-flex uk-flex-middle">
306 306
  <svg xmlns="http://www.w3.org/2000/svg" width="12.667" height="14" viewBox="0 0 12.667 14">
307 307
    <defs><!--<style>.a{fill:#e1920a;}</style>--></defs>
......
338 338
        </div>
339 339
      </div>
340 340
    </ng-container>
341
<!-- && loggedIn    -->
342
    <span *ngIf="properties.environment != 'production' && properties.adminToolsPortalType == 'explore' && showOrcid && result.identifiers && result.identifiers.size > 0"
343
         class="uk-width-1-3 uk-width-expand@s">
341
      <!-- && loggedIn    -->
342
    <span
343
        *ngIf="properties.environment != 'production' && properties.adminToolsPortalType == 'explore' && showOrcid && result.identifiers && result.identifiers.size > 0"
344
        class="uk-width-1-3 uk-width-expand@s">
344 345
<!--          class="uk-flex uk-flex-middle  uk-flex-right uk-width-expand">-->
345
      <orcid-work *ngIf="showOrcid && result.identifiers && result.identifiers.size > 0" [resultId]="result.relcanId" [type]="result.resultType" [pageType]="'search'"
346
                [putCodes]="result.orcidPutCodes" [givenPutCode]="true" [identifiers]="result.identifiers">
346
      <orcid-work *ngIf="showOrcid && result.identifiers && result.identifiers.size > 0" [resultId]="result.relcanId"
347
                  [type]="result.resultType" [pageType]="'search'"
348
                  [putCodes]="result.orcidPutCodes" [givenPutCode]="true" [identifiers]="result.identifiers">
347 349
      </orcid-work>
348 350
    </span>
349
    <span *ngIf="properties.environment != 'production' && properties.adminToolsPortalType == 'explore' && (result.orcidUpdateDates?.length > 0 || result.orcidCreationDates?.length > 0)"
350
              class="uk-width-expand uk-text-right">
351
    <span
352
        *ngIf="properties.environment != 'production' && properties.adminToolsPortalType == 'explore' && (result.orcidUpdateDates?.length > 0 || result.orcidCreationDates?.length > 0)"
353
        class="uk-width-expand uk-text-right">
351 354
      <span *ngIf="result.orcidCreationDates?.length > 0" class="uk-display-inline-block">
352 355
        <span class="uk-text-muted">Added in ORCID:</span>
353 356
        <span *ngFor="let date of result.orcidCreationDates; let i=index">
......
367 370
      </span>
368 371
    </span>
369 372
  </span>
373
  </div>
370 374
</div>

Also available in: Unified diff