client/public/elements/pages/person/rp-page-person.js
/**
   * @method _resetEleProps
   * @description Resets properties to their native state.
   * Ususally called before data for a new individual is loaded.
   */
@method _resetEleProps
@description Resets properties to their native state.
Ususally called before data for a new individual is loaded.
@method _resetEleProps @description Resets properties to their native state . Ususally called before data for a new individual is loaded .
_resetEleProps() {
    this.individual = {};
    this.tempGrantObject = {};
    this.individualStatus = 'loading';
    this.retrievedPublications = {};
    this.retrievedGrants = [];
    this.showMoreGrants = false;
    this.totalPublications = 0;
    this.totalGrants = 0;
    this.isOwnProfile = false;
    this.publicationOverview = {};
    this.hasMultiplePubTypes = false;
    this.emailArray = [];
    this.websitesArray = [];
    this.grantStatus = 'loading';
    this.publicationOverviewStatus = 'loading';
    this.showResearchSubjectCount = this.defaultResearchSubjectCount;
    this.title = {};
    this.additionalTitles = [];
    this.svgIcon = {
      'url': html`
              <svg class="svg-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 640">
                <path d="M640,328V312a16,16,0,0,0-16-16H344V256h72a32,32,0,0,0,32-32V96a32,32,0,0,0-32-32H224a32,32,0,0,0-32,32V224a32,32,0,0,0,32,32h72v40H16A16,16,0,0,0,0,312v16a16,16,0,0,0,16,16H120v40H64a32,32,0,0,0-32,32V544a32,32,0,0,0,32,32H224a32,32,0,0,0,32-32V416a32,32,0,0,0-32-32H168V344H472v40H416a32,32,0,0,0-32,32V544a32,32,0,0,0,32,32H576a32,32,0,0,0,32-32V416a32,32,0,0,0-32-32H520V344H624A16,16,0,0,0,640,328ZM256,192V128H384v64ZM192,512H96V448h96Zm352,0H448V448h96Z"/>
              </svg> `,
      'email': html`
              <svg class="svg-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                <path d="M502.3,190.8a6,6,0,0,1,9.7,4.7V400a48,48,0,0,1-48,48H48A48,48,0,0,1,0,400V195.6a6,6,0,0,1,9.7-4.7c22.4,17.4,52.1,39.5,154.1,113.6,21.1,15.4,56.7,47.8,92.2,47.6,35.7.3,72-32.8,92.3-47.6C450.3,230.4,479.9,208.2,502.3,190.8ZM256,320c23.2.4,56.6-29.2,73.4-41.4,132.7-96.3,142.8-104.7,173.4-128.7A23.93,23.93,0,0,0,512,131V112a48,48,0,0,0-48-48H48A48,48,0,0,0,0,112v19a24.08,24.08,0,0,0,9.2,18.9c30.6,23.9,40.7,32.4,173.4,128.7,16.8,12.2,50.2,41.8,73.4,41.4Z"/>
              </svg>`,
      'orcid': html `
              <svg class="svg-icon" xmlns="http://www.w3.org/2000/svg"viewBox="0 0 512 512">
                <path id="path2"
                  d="m 336.6206,194.53756 c -7.12991,-3.32734 -13.8671,-5.55949 -20.25334,-6.61343 -6.36534,-1.09517 -16.57451,-1.61223 -30.71059,-1.61223 h -36.70409 v 152.74712 h 37.63425 c 14.6735,0 26.08126,-1.01267 34.22385,-3.01709 8.14259,-2.00442 14.92159,-4.52592 20.35674,-7.62608 5.43519,-3.07925 10.416,-6.8615 14.94192,-11.38742 14.4876,-14.71475 21.74129,-33.27334 21.74129,-55.7176 0,-22.05151 -7.44016,-40.05177 -22.34085,-53.98159 -5.49732,-5.16674 -11.82143,-9.44459 -18.88918,-12.79281 z M 255.99999,8.0000031 C 119.02153,8.0000031 8.0000034,119.04185 8.0000034,255.99998 8.0000034,392.95812 119.02153,504 255.99999,504 392.97849,504 504,392.95812 504,255.99998 504,119.04185 392.97849,8.0000031 255.99999,8.0000031 Z M 173.66372,365.51268 H 144.27546 V 160.1481 h 29.38826 z M 158.94954,138.69619 c -11.13935,0 -20.21208,-9.01056 -20.21208,-20.21208 0,-11.11841 9.05183,-20.191181 20.21208,-20.191181 11.18058,0 20.23244,9.051831 20.23244,20.191181 -0.0219,11.22184 -9.05186,20.21208 -20.23244,20.21208 z m 241.3866,163.59715 c -5.29051,12.54475 -12.83407,23.58066 -22.65053,33.08742 -9.98203,9.83734 -21.59659,17.19443 -34.84378,22.19616 -7.74983,3.01709 -14.83852,5.06335 -21.30725,6.11726 -6.4891,1.01267 -18.82759,1.50883 -37.07593,1.50883 H 219.5033 V 160.1481 h 69.23318 c 27.96195,0 50.03378,4.1541 66.31951,12.54476 16.26485,8.36977 29.18144,20.72859 38.79164,36.97254 9.61013,16.26483 14.4254,34.01757 14.4254,53.19607 0.0227,13.76426 -2.66619,26.90802 -7.93576,39.43187 z"/>
              </svg>`,
      'scopus': html `
              <svg class="svg-icon" xmlns="http://www.w3.org/2000/svg"viewBox="0 0 512 512">
                <path id="rect1609"
                  d="M 64,64 V 448 H 448 V 64 Z m 116.81542,99.92578 c 22.22181,0 32.04017,2.58584 45.73537,8.27051 l -1.292,20.41113 c -14.72837,-8.7855 -26.35575,-11.36718 -43.15137,-11.36718 -19.37945,0 -29.2002,14.72659 -29.2002,28.16308 0,18.08753 17.31277,24.80703 33.59181,34.62597 20.92965,12.40292 42.63573,23.51411 42.63573,48.06153 0,32.2992 -27.64955,48.57714 -54.00585,48.57714 -18.86288,0 -32.5565,-2.84253 -45.99316,-9.04393 l 3.10254,-20.41407 c 13.17814,8.01015 24.54717,11.88867 41.85937,11.88867 17.57072,0 32.29688,-11.88662 32.29688,-28.42383 0,-17.05391 -16.53489,-23.51559 -32.29688,-33.07617 -21.18819,-12.91968 -44.44336,-24.28934 -44.44336,-50.64551 0,-26.35612 19.37863,-47.02734 51.16112,-47.02734 z m 161.70412,0 c 26.09777,0 37.72572,3.10211 51.9375,9.82031 l -1.54982,19.37988 c -15.50393,-8.52716 -31.78349,-11.88573 -52.97168,-11.88573 -33.59128,0 -62.27343,26.61294 -62.27343,69.76464 0,40.82619 29.19944,71.5752 65.8916,71.5752 16.79562,0 33.59152,-3.35879 49.35351,-11.88575 l 1.54981,19.6377 c -13.95327,6.97658 -31.52275,9.82031 -52.71094,9.82031 -42.11835,0 -87.33692,-31.00949 -87.33692,-87.59766 0,-49.6116 37.98197,-88.6289 88.11037,-88.6289 z" />
              </svg>
        `
    };
  }
_resetEleProps ( ) { this . individual = { } ; this . tempGrantObject = { } ; this . individualStatus = 'loading' ; this . retrievedPublications = { } ; this . retrievedGrants = [ ] ; this . showMoreGrants = false ; this . totalPublications = 0 ; this . totalGrants = 0 ; this . isOwnProfile = false ; this . publicationOverview = { } ; this . hasMultiplePubTypes = false ; this . emailArray = [ ] ; this . websitesArray = [ ] ; this . grantStatus = 'loading' ; this . publicationOverviewStatus = 'loading' ; this . showResearchSubjectCount = this . defaultResearchSubjectCount ; this . title = { } ; this . additionalTitles = [ ] ; this . svgIcon = { 'url' : html ` ` , 'email' : html ` ` , 'orcid' : html ` ` , 'scopus' : html ` ` } ; }
@method _resetEleProps
 @description Resets properties to their native state.
@method _resetEleProps @description Resets properties to their native state .