Project

General

Profile

« Previous | Next » 

Revision 60619

[Trunk | Library]:
1. resultLanding.component.html & result-preview.component.html: Show orcid buttons in all environments (production too) | in <orcid-work> added "resultTitle" property.
2. myOrcidLinks.component.ts: Added "getPersonalDetails()" method and link to advanced research outcomes page, filtered by user's name (if personal details from ORCID fails, use name from AAI - getUserInfo).
3. searchMyOrcidResults.module.ts: Removed PagingModule and added NoLoadPaging.
4. searchMyOrcidResults.component.ts: Added method "totalPages()" to calculate pages in paging.
5. searchMyOrcidResults.component.html:
a. Added <no-load-paging> (instead of custom paging with <paging-no-load>).
b. In <orcid-work> added "resultTitle" property.
c. Fix widths of grid inside card for result preview and orcid buttons.
6. orcid-work.component.ts:
a. Added "resultTitle" @Input property, to show it in notifications, instead of pids.
b. Updated messages for errors and for multiple put-codes.
c. Use "danger" notifications instead of "warning" when an error occurs.
d. For search and my orcid links pages, in orcid buttons, use <icon> for icons | For landing page, updated icons in orcid buttons.
e. Added message "The action will affect your real ORCID iD." in tooltips, when environment == 'beta'.
f. Removed property "procedurePaused" and its usage replaced by "currentAction".
g. [Bug fix] For search pages, added "uk-align-right", in order orcid button not to take width for the whole line.
h. [Bug fix] In method "getOrcidWorks()" check "Session.isLoggedIn()" was missing.
7. orcid.component.ts: If personal details from ORCID fails, use name from AAI - getUserInfo.
8. orcid.module.ts: Added IconsModule and registered icons: add, remove, preview, refresh in IconsService.
9. searchResult.component.ts: Call "orcidService.getPutCodes()" in all environments (production too).

View differences:

result-preview.component.html
270 270
    </div>
271 271
  </div>
272 272
  <!--&& loggedIn -->
273
  <div
274
      *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)))"
273
  <div *ngIf="(result.pop_inf && result.DOI) ||
274
                (properties.adminToolsPortalType == 'explore' &&
275
                  ((showOrcid && result.identifiers && result.identifiers.size > 0) || (result.orcidUpdateDates?.length > 0 || result.orcidCreationDates?.length > 0)))"
275 276
      class="result-preview-bottom">
276 277
    <!-- Impact Factors-->
277 278
    <span class="uk-flex uk-flex-top">
......
347 348
      </div>
348 349
    </ng-container>
349 350
      <!-- && loggedIn    -->
350
    <span
351
        *ngIf="properties.environment != 'production' && properties.adminToolsPortalType == 'explore' && showOrcid && result.identifiers && result.identifiers.size > 0"
351
    <span *ngIf="properties.adminToolsPortalType == 'explore' && showOrcid && result.identifiers && result.identifiers.size > 0"
352 352
        class="uk-width-1-3 uk-width-expand@s">
353 353
<!--          class="uk-flex uk-flex-middle  uk-flex-right uk-width-expand">-->
354
      <orcid-work *ngIf="showOrcid && result.identifiers && result.identifiers.size > 0" [resultId]="result.relcanId"
354
      <orcid-work *ngIf="showOrcid && result.identifiers && result.identifiers.size > 0"
355
                  [resultId]="result.relcanId" [resultTitle]="result.title"
355 356
                  [type]="result.resultType" [pageType]="'search'"
356 357
                  [putCodes]="result.orcidPutCodes" [givenPutCode]="true" [identifiers]="result.identifiers">
357 358
      </orcid-work>
358 359
    </span>
359
    <span
360
        *ngIf="properties.environment != 'production' && properties.adminToolsPortalType == 'explore' && (result.orcidUpdateDates?.length > 0 || result.orcidCreationDates?.length > 0)"
360
    <span *ngIf="properties.adminToolsPortalType == 'explore' && (result.orcidUpdateDates?.length > 0 || result.orcidCreationDates?.length > 0)"
361 361
        class="uk-width-expand uk-text-right">
362 362
      <span *ngIf="result.orcidCreationDates?.length > 0" class="uk-display-inline-block">
363 363
        <span class="uk-text-muted">Added in ORCID:</span>

Also available in: Unified diff