- U of A
- Horticulture
- People
- Administration & Staff
'); }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(val.degree) educationPanel += val.degree;if (val.major) educationPanel += ', ' + val.major;if (val.school)educationPanel += ', ' + val.school; if(val.city) { educationPanel += ', ' + val.city; } 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 (val.title) { publicationPanel += val.title; } if (val.journal) { publicationPanel += ', ' + val.journal; } if (val.volume) { publicationPanel += ', ' + val.volume; } if (val.issue) { publicationPanel += ', ' + val.issue; }if (val.pageNum) { publicationPanel += ', page no: ' + val.pageNum; }if (val.DTM_pub || val.DTY_pub) { publicationPanel += ', ' + val.DTM_pub + ' ' + val.DTY_pub; } 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 += '
- ';if(val.title) { editorialReviewPanel += val.title + ', '; }if(val.role) { editorialReviewPanel += val.role; } if(val.organization) { editorialReviewPanel += ', ' + val.organization; } if(val.DTY_end) { editorialReviewPanel += ', '+ val.DTY_end; }editorialReviewPanel += ' '; }); editorialReviewPanel +='
'; editorialReviewPanel += '
';$('#accordiond17e134').append(editorialReviewPanel);}if(a.Presentations && a.Presentations.length){var presentationPanel = '
' + '
' + '
Presentations
' + '
' + '
'; presentationPanel +='
- '; $.each(a.Presentations, function(key, val){presentationPanel +='
- '; if (val.title) {presentationPanel += val.title; } if (val.name_conf) {presentationPanel += ', ' + val.name_conf; } if (val.DTY_date || val.DTM_date) { presentationPanel += ', ' + val.DTM_date + ' ' + val.DTY_date; } presentationPanel +=' ';}); presentationPanel +='
'; presentationPanel += '
';$('#accordiond17e134').append(presentationPanel);}if(a.ProfessionalServices && a.ProfessionalServices.length){var professionalServicesPanel = '
' + '
' + '
Professional Services
' + '
' + '
'; professionalServicesPanel +='
- '; $.each(a.ProfessionalServices, function(key, val){professionalServicesPanel += '
- ';if(val.role) { professionalServicesPanel += val.role + ', '; } if(val.organization) { professionalServicesPanel += val.organization; }if(val.elecapp) { professionalServicesPanel += ', ' + val.elecapp; }if(val.DTM_start && val.DTY_start) { professionalServicesPanel += ' , ' + val.DTM_start + ' ' +val.DTY_start; } if(val.DTM_end && val.DTY_end) { professionalServicesPanel += ' - ' + val.DTM_end + ' ' +val.DTY_end; }professionalServicesPanel += ' ';}); professionalServicesPanel +='
'; professionalServicesPanel += '
';$('#accordiond17e134').append(professionalServicesPanel);}if(a.PublicServices && a.PublicServices.length){var publicServicesPanel = '
' + '
' + '
Public Services
' + '
' + '
'; publicServicesPanel +='
- '; $.each(a.PublicServices, function(key, val){publicServicesPanel += '
- ';if(val.role) { publicServicesPanel += val.role + ', '; } if(val.organization) { publicServicesPanel += val.organization; }if(val.elecapp) { publicServicesPanel += ', ' + val.elecapp; }if(val.DTM_start || val.DTY_start) { publicServicesPanel += ' , ' + val.DTM_start + ' ' +val.DTY_start; } if(val.DTM_end || val.DTY_end) { publicServicesPanel += ' - ' + val.DTM_end + ' ' +val.DTY_end; }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 += '
- ';if(val.title){ licensuresCertificationsPanel += val.title + ', ';}if(val.organization) {licensuresCertificationsPanel += val.organization; }licensuresCertificationsPanel += ' ';}); licensuresCertificationsPanel +='
'; licensuresCertificationsPanel += '
';$('#accordiond17e134').append(licensuresCertificationsPanel);}if(a.ContractGrants && a.ContractGrants.length){var contractGrantPanel = '
' + '
' + '
Contracts/Grants
' + '
' + '
';contractGrantPanel +='
- ';$.each(a.ContractGrants , function(key, val){contractGrantPanel +='
- '+ val.title;if(val.sponsor_org) { contractGrantPanel += ', ' + val.sponsor_org; }if(val.award_org) { contractGrantPanel += ', ' + val.award_org; }if(val.status) { contractGrantPanel += ', ' + val.status; }if(val.amount) { contractGrantPanel += ', $' + val.amount; }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 +='
- '+ val.name; if(val.organization != null) { honorsAwardsPanel += ' ' + val.organization; } 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 +='
- ';if(val.format) { intellectualPropertyPanel += val.format; }if(val.title) { intellectualPropertyPanel += ', ' + val.title; }if(val.propertyId) { intellectualPropertyPanel += ', ' + val.propertyId; }if(val.patent_status) { intellectualPropertyPanel += ', ' + val.patent_status; }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 += '
- ';if(val.type) { nonCreditInstructionTaughtPanel += val.type }if(val.audience) { nonCreditInstructionTaughtPanel += ', ' + val.audience; }if(val.organization) { nonCreditInstructionTaughtPanel += ', ' + val.organization; }if(val.profAcad) { nonCreditInstructionTaughtPanel += ', ' + val.profAcad; }nonCreditInstructionTaughtPanel += ' '; }); nonCreditInstructionTaughtPanel +='
'; nonCreditInstructionTaughtPanel += '
';$('#accordiond17e134').append(nonCreditInstructionTaughtPanel);}if(a.PerformancesExhibits && a.PerformancesExhibits.length){var performancesExhibitsPanel = '
' + '
' + '
Performances Exhibits
' + '
' + '
';performancesExhibitsPanel +='
- ';$.each(a.PerformancesExhibits , function(key, val){performancesExhibitsPanel +='
- ';if(val.activity) { performancesExhibitsPanel += val.activity; }if(val.type) { performancesExhibitsPanel += ', ' + val.type; }if(val.title) { performancesExhibitsPanel += ', ' + val.title; }if(val.venue) { performancesExhibitsPanel += ', ' + val.venue; }if(val.web_address) { performancesExhibitsPanel += ', ' + val.web_address; }if(val.DTM_end) { performancesExhibitsPanel += ', ' + val.DTM_end + ' '; }if(val.DTD_end) { performancesExhibitsPanel += val.DTD_end + nth(5) + ', '; }if(val.DTY_end) { performancesExhibitsPanel += val.DTY_end; }performancesExhibitsPanel += ' ';}); performancesExhibitsPanel +='
'; performancesExhibitsPanel += '
';$('#accordiond17e134').append(performancesExhibitsPanel);}if(a.ProfessionalMembership && a.ProfessionalMembership.length){var professionalMembershipPanel = '
' + '
' + '
Professional Membership
' + '
' + '
';professionalMembershipPanel +='
- ';$.each(a.ProfessionalMembership , function(key, val){professionalMembershipPanel +='
- ';if(val.organization) { professionalMembershipPanel += val.organization; }if(val.DTY_start) { professionalMembershipPanel += ', ' + val.DTY_start + ' '; }if(val.DTY_end) { professionalMembershipPanel += val.DTY_end; }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(val.coursePre != null && val.courseNum != null ) { coursesPanel += val.coursePre + ' ' + val.courseNum; }if(val.title != null) { coursesPanel += ' - ' + val.title; }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"} // ]]>