- U of A
- Occupational Therapy
- Directory
'); }if(a.Educations && a.Educations.length){var educationPanel = '
' + '
' + '
Education
' + '
' + '
';var edPanel = 0;var edCount = 0;$.each(a.Educations, function(key, val){if(val.CWD) {educationPanel += val.CWD;} else {edCount ++;if(edPanel === 0){educationPanel +='';edPanel ++;}educationPanel +='
';if(edCount === a.Educations.length){educationPanel +=''; }}}); educationPanel += '
';$('#accordiond17e134').append(educationPanel);}if(a.Publications && a.Publications.length){var publicationPanel = '
' + '
' + '
Publications
' + '
' + '
';var pubPanel = 0;var pubCount = 0; $.each(a.Publications, function(key, val){if(val.CWD) {publicationPanel += val.CWD;} else {pubCount ++;if(pubPanel === 0){publicationPanel +='';pubPanel ++;}publicationPanel +='
';if(pubCount === a.Publications.length){publicationPanel +=''; }}}); publicationPanel += '
';$('#accordiond17e134').append(publicationPanel);}if(a.EditorialReviews && a.EditorialReviews.length){var editorialReviewPanel = '
' + '
' + '
Editorial Review
' + '
' + '
'; editorialReviewPanel +=''; $.each(a.EditorialReviews, function(key, val){editorialReviewPanel += '
'; }); editorialReviewPanel +=''; editorialReviewPanel += '
';$('#accordiond17e134').append(editorialReviewPanel);}if(a.Presentations && a.Presentations.length){var presentationPanel = '
' + '
' + '
Presentations
' + '
' + '
'; presentationPanel +=''; $.each(a.Presentations, function(key, val){presentationPanel +='
';}); presentationPanel +=''; presentationPanel += '
';$('#accordiond17e134').append(presentationPanel);}if(a.ProfessionalServices && a.ProfessionalServices.length){var professionalServicesPanel = '
' + '
' + '
Professional Services
' + '
' + '
'; professionalServicesPanel +=''; $.each(a.ProfessionalServices, function(key, val){professionalServicesPanel += '
';}); professionalServicesPanel +=''; professionalServicesPanel += '
';$('#accordiond17e134').append(professionalServicesPanel);}if(a.PublicServices && a.PublicServices.length){var publicServicesPanel = '
' + '
' + '
Public Services
' + '
' + '
'; publicServicesPanel +=''; $.each(a.PublicServices, function(key, val){publicServicesPanel += '
';}); publicServicesPanel +=''; publicServicesPanel += '
';$('#accordiond17e134').append(publicServicesPanel);}if(a.ResearchInterests && a.ResearchInterests.length){var researchInterestPanel = '
' + '
' + '
Research Activity
' + '
' + '
'; $.each(a.ResearchInterests , function(key, val){if(val.CWD){researchInterestPanel += val.CWD;} else {researchInterestPanel +='
';if(val.title){ researchInterestPanel += val.title;}if(val.description) {researchInterestPanel += ', ' + val.description; }researchInterestPanel += '
';}}); researchInterestPanel += '
';$('#accordiond17e134').append(researchInterestPanel);}if(a.TeachingInterests && a.TeachingInterests.length){var teachingInterestPanel = '
' + '
' + '
Teaching Interest
' + '
' + '
'; $.each(a.TeachingInterests , function(key, val){if(val.CWD) {teachingInterestPanel += val.CWD;} else {teachingInterestPanel +='
';if(val.title){ teachingInterestPanel += val.title;}teachingInterestPanel += '
';}}); teachingInterestPanel += '
';$('#accordiond17e134').append(teachingInterestPanel);}if(a.experience) {var experiencePanel = '
' + '
' + '
Professional Experiences
' + '
' + '
';experiencePanel += a.experience;experiencePanel += '
';$('#accordiond17e134').append(experiencePanel);}if(a.LicensuresCertifications && a.LicensuresCertifications.length){var licensuresCertificationsPanel = '
' + '
' + '
' + '
' + '
'; licensuresCertificationsPanel +=''; $.each(a.LicensuresCertifications , function(key, val){licensuresCertificationsPanel += '
';}); licensuresCertificationsPanel +=''; licensuresCertificationsPanel += '
';$('#accordiond17e134').append(licensuresCertificationsPanel);}if(a.ContractGrants && a.ContractGrants.length){var contractGrantPanel = '
' + '
' + '
Contracts/Grants
' + '
' + '
';contractGrantPanel +='';$.each(a.ContractGrants , function(key, val){contractGrantPanel +='
';}); contractGrantPanel +=''; contractGrantPanel += '
';$('#accordiond17e134').append(contractGrantPanel);}if(a.HonorsAwards && a.HonorsAwards.length){var honorsAwardsPanel = '
' + '
' + '
Honors/Awards
' + '
' + '
';var awdPanel = 0; var awdCount = 0; $.each(a.HonorsAwards , function(key, val){if(val.CWD) {honorsAwardsPanel += val.CWD;} else {awdCount ++;if(awdPanel === 0){honorsAwardsPanel +='';awdPanel ++;}honorsAwardsPanel +='
';}if(awdCount === a.HonorsAwards.length){honorsAwardsPanel +=''; }}); honorsAwardsPanel += '
';$('#accordiond17e134').append(honorsAwardsPanel);}if(a.IntellectualProperty && a.IntellectualProperty.length){var intellectualPropertyPanel = '
' + '
' + '
Intellectual Property
' + '
' + '
';intellectualPropertyPanel +='';$.each(a.IntellectualProperty , function(key, val){intellectualPropertyPanel +='
';}); intellectualPropertyPanel +=''; intellectualPropertyPanel += '
';$('#accordiond17e134').append(intellectualPropertyPanel);}if(a.NonCreditInstructionTaught && a.NonCreditInstructionTaught.length){var nonCreditInstructionTaughtPanel = '
' + '
' + '
Non-Credit Instruction Taught
' + '
' + '
'; nonCreditInstructionTaughtPanel +=''; $.each(a.NonCreditInstructionTaught, function(key, val){nonCreditInstructionTaughtPanel += '
'; }); nonCreditInstructionTaughtPanel +=''; nonCreditInstructionTaughtPanel += '
';$('#accordiond17e134').append(nonCreditInstructionTaughtPanel);}if(a.PerformancesExhibits && a.PerformancesExhibits.length){var performancesExhibitsPanel = '
' + '
' + '
Performances Exhibits
' + '
' + '
';performancesExhibitsPanel +='';$.each(a.PerformancesExhibits , function(key, val){performancesExhibitsPanel +='
';}); performancesExhibitsPanel +=''; performancesExhibitsPanel += '
';$('#accordiond17e134').append(performancesExhibitsPanel);}if(a.ProfessionalMembership && a.ProfessionalMembership.length){var professionalMembershipPanel = '
' + '
' + '
Professional Membership
' + '
' + '
';professionalMembershipPanel +='';$.each(a.ProfessionalMembership , function(key, val){professionalMembershipPanel +='
';}); professionalMembershipPanel +=''; professionalMembershipPanel += '
';$('#accordiond17e134').append(professionalMembershipPanel);}if(a.Courses && a.Courses.length){var coursesPanel = '
' + '
' + '
Scheduled Teaching
' + '
' + '
';var cdPanel = 0; var cdCount = 0; $.each(a.Courses, function(key, val){if(val.CWD){coursesPanel += val.CWD;} else {cdCount ++;if(cdPanel === 0){coursesPanel +='';cdPanel ++;}if(val.degree_program){//console.log(val.degree_program);coursesPanel += val.degree_program;} else {coursesPanel += '
';}if(cdCount === a.Courses.length){coursesPanel +=''; }}}); coursesPanel += '
';$('#accordiond17e134').append(coursesPanel);}setTimeout(function(){//alert("test");$("#accordiond17e134").find(".panel-collapse:first").addClass("in");// now delete introductory-content div$('.hide-on-profile-page').hide();// scroll any accordion that is opened into focus $('.panel-collapse').on('shown.bs.collapse', function(e) { //alert('hello'); var $panel = $(this).closest('.panel'); $('html,body').animate({scrollTop: $panel.offset().top }, 0);});}, 500); }}); }); */ $(function () {// scroll any accordion that is opened into focus $('.panel-collapse').on('shown.bs.collapse', function(e) { var $panel = $(this).closest('.panel'); $('html,body').animate({scrollTop: $panel.offset().top }, 500);});$.ajax({ url: "https://campusdata.uark.edu/apiv2/facultystaffprofile/user/" + userid, data: {}, cache: 'true', success: function (a) { $('.profile').attr('id','phpdirectory-profile-' + userid); if(a.image) { image = ""; } else { image = "
"; }$('.thumbnailContainer').append(image);$('.vcard').append('
' + a.firstName + " " + a.lastName + '
');$('.vcard').append('
' + a.title + '
');if (a.otherTitle != null && a.otherTitle != "") { $('.vcard').append('
' + a.otherTitle + '
'); }if(a.parentOrganization !== a.department && a.department) {$('.vcard').append('
' + a.parentOrganization + '
' + a.department + '
');} else if(a.department){$('.vcard').append('
' + a.department + '
');}if(a.phoneNumber) { $('.vcard').append('
Phone: ' +a.phoneNumber+ '
'); }if(a.faxNumber) { $('.vcard').append('
Fax: ' +a.faxNumber+ '
'); }$('.vcard').append('
Email: ' + a.email + '
');$('.vcard').append('
Download vcard
');$('.vcard').append('
Campus Directory
');if (a.twitterUrl) { $('#socialIcon').append('Twitter')} if (a.academicEdu) { $('#socialIcon').append('Academia')} if (a.googleScholar) { $('#socialIcon').append('Google Scholar')} if (a.scholarWorks) { $('#socialIcon').append('ScholarWorks')} if (a.ssrn) { $('#socialIcon').append('SSRN')}if (a.scopusAuthorUrl) { $('#socialIcon').append('Scopus')}if (a.publonsResearcherUrl) { $('#socialIcon').append('Publons')}if (a.facebookUrl) { $('#socialIcon').append('Facebook')} if (a.instagramUrl) { $('#socialIcon').append('Instagram')} if (a.linkedInUrl) { $('#socialIcon').append('LinkedIn')} if (a.blogs) { $('#socialIcon').append('Blogs')}if (a.website) { $('#leftPanel').append('
Visit Website
'); }if (a.cvFile) { $('#leftPanel').append('
Download CV
') }if(a.bioInfo) { $('#rightPanel').append('
' + a.bioInfo +'
'); }if(a.education || a.publications || a.presentations || a.professionalServices || a.experience || a.editorialReviews || a.publicServices || a. researchInterest || a. teachingInterest || a.contractGrants || a.courses || a.honorsAwards || a.intellectualProperty || a.nonCreditInstructionTaught || a.performancesExhibits || a.professionalMembership || a.licensuresCertifications){$('#rightPanel').append('
'); }if(a.education){var educationPanel = '
' +'
' +'
' +'
' + a.education+ '
';$('#accordiond17e134').append(educationPanel);}if(a.publications){var publicationPanel = '
' +'
' +'
' +'
' + a.publications+ '
';$('#accordiond17e134').append(publicationPanel);}if(a.experience){var experiencePanel = '
' +'
' +'
' +'
' + a.experience+ '
';$('#accordiond17e134').append(experiencePanel);}if(a.editorialReviews){var editorialReviewPanel = '
' +'
' +'
' +'
' + a.editorialReviews+ '
';$('#accordiond17e134').append(editorialReviewPanel);}if(a.presentations){var presentationPanel = '
' +'
' +'
' +'
' + a.presentations+ '
';$('#accordiond17e134').append(presentationPanel);}if(a.professionalServices){var professionalServicesPanel = '
' +'
' +'
' +'
' + a.professionalServices+ '
';$('#accordiond17e134').append(professionalServicesPanel);}if(a.publicServices){var publicServicesPanel = '
' +'
' +'
' +'
' + a.publicServices+ '
';$('#accordiond17e134').append(publicServicesPanel);}if(a.researchInterest){var researchInterestPanel = '
' +'
' +'
' +'
' + a.researchInterest+ '
';$('#accordiond17e134').append(researchInterestPanel);}if(a.teachingInterest){var teachingInterestPanel = '
' +'
' +'
' +'
' + a.teachingInterest+ '
';$('#accordiond17e134').append(teachingInterestPanel);}if(a.licensuresCertifications){var licensuresCertificationsPanel = '
' +'
' +'
' +'
' + a.licensuresCertifications+ '
';$('#accordiond17e134').append(licensuresCertificationsPanel);}if(a.contractGrants){var contractGrantPanel = '
' +'
' +'
' +'
' + a.contractGrants+ '
';$('#accordiond17e134').append(contractGrantPanel);}if(a.honorsAwards){var honorsAwardsPanel = '
' +'
' +'
' +'
' + a.honorsAwards+ '
';$('#accordiond17e134').append(honorsAwardsPanel);}if(a.intellectualProperty){var intellectualPropertyPanel = '
' +'
' +'
' +'
' + a.intellectualProperty+ '
';$('#accordiond17e134').append(intellectualPropertyPanel);}if(a.nonCreditInstructionTaught){var nonCreditInstructionTaughtPanel = '
' +'
' +'
' +'
' + a.nonCreditInstructionTaught+ '
';$('#accordiond17e134').append(nonCreditInstructionTaughtPanel);}if(a.performancesExhibits){var performancesExhibitsPanel = '
' +'
' +'
' +'
' + a.performancesExhibits+ '
';$('#accordiond17e134').append(performancesExhibitsPanel);}if(a.professionalMembership){var performancesExhibitsPanel = '
' +'
' +'
' +'
' + a.performancesExhibits+ '
';$('#accordiond17e134').append(professionalMembershipPanel);}if(a.courses){var coursesPanel = '
' +'
' +'
' +'
' + a.courses+ '
';$('#accordiond17e134').append(coursesPanel);}setTimeout(function(){ //alert("test");$("#accordiond17e134").find(".accordion-collapse:first").collapse('show'); // $("#accordiond17e134").find(".accordion-collapse:first").addClass("show"); // now delete introductory-content div $('.hide-on-profile-page').hide(); // scroll any accordion that is opened into focus /* $('.accordion-collapse').on('shown.bs.collapse', function(e) { //alert('hello'); var $panel = $(this).closest('.accordion-item'); $('html,body').animate({ scrollTop: $panel.offset().top }, 0); });*/ }, 500);}}); }); function nth(n){return["st","nd","rd"][((n+90)%100-10)%10-1]||"th"} // ]]>