CIFOR–ICRAF publishes over 750 publications every year on agroforestry, forests and climate change, landscape restoration, rights, forest policy and much more – in multiple languages.

Soil and land health

Soil and land health

Generating the evidence base to restore degraded lands and build resilient healthy soil systems to address climate change, land degradation, biodiversity loss and food and nutrition insecurity

With over one third of the Earth’s surface degraded and over 3.2 billion people negatively affected by degradation, continuing business as usual is no longer an option. It is clear that without healthy, well-functioning soil we cannot produce nutritious food and achieve food systems transformation. The UN Decade on Ecosystem Restoration 2021–2030 is a critical call to action and opportunity to restore ecosystem and soil health.

CIFOR-ICRAF is a global centre of excellence for soil and land restoration, integrated soil information, and soil organic carbon accounting, with relevance for food and nutrition security, national restoration goals and climate commitments. Providing rigorous actionable evidence, partnerships and global engagement are core to our work. Through co-leading the Coalition of Action 4 Soil Health (CA4SH) we are ensuring actionable evidence directly informs global soil agendas and ecosystem health investments.

About this theme

Efforts to avoid, reduce and reverse land and soil degradation are critical pathways to achieving the SDGs, addressing the climate crisis and reaching global restoration targets. CIFOR-ICRAF Soil and Land Health scientists are generating robust data and analysis, from the field to the lab.

Key objectives of our work

  1. To advance applied landscape-scale soil and ecosystem health analytics for impact, including the tracking of restoration investments and soil organic carbon accounting
  2. To advance the development, application and scaling of soil spectroscopy, remote sensing, machine learning and other novel technologies for rapid assessments of Soil and Land Health at scale
  3. To contribute to and inform global agendas on ecosystem restoration and soil health, based on state-of-the-art science
  4. To build capacity on systematic monitoring techniques and soil spectroscopy across national and international programmes

Through this research, CIFOR-ICRAF supports the Paris Agreement and the Sustainable Development Goals, particularly Goal 15: Life on Land.

Learn more about our state-of-the-art Soil and Land Health Laboratory.

Soil and Land Health: Fast facts

An estimated 95% of our food is directly or indirectly produced in soil1
1/3 of the Earth’s surface is degraded,2 negatively impacting 3.2 billion people3

 

RELATED TOPICS

Latest updates

Publications

` for (i = 0; i < limit; i++) { placeholderBox += `
` } placeholderBox += `
` function knowledgeProducts(res, contentType, currentPageNumber) { let productsHTML = '' let currentLang = $('html')[0].lang let months = [] if (currentLang === 'en') { months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; } else if (currentLang === 'es') { months = ["en.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ag.", "sept.", "oct.", "nov.", "dic."]; } else if (currentLang === 'fr') { months = ["Jan.", "Fév.", "Mar.", "Avr.", "Mai", "Juin", "Juil.", "Août", "Sept.", "Oct.", "Nov.", "Déc."]; } else if (currentLang === 'id') { months = ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ags", "Sep", "Okt", "Nov", "Des"]; } else if (currentLang === 'pt-br') { months = ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez"]; } if (res.data.All) { let products = res.data.All.response.docs let totalPages = Math.ceil(res.data.All.response.numFound / 15) $('.total-pages').text(totalPages) if (contentType === 'publication') { let publicationBox = '' publicationBox += `
` products.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `` }) publicationBox += `
` $('.product-items-container').html(publicationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/publications?lpage=" + totalPages) } else if (contentType === 'infographic') { let publicationBox = '' publicationBox += `
` products.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `` }) publicationBox += `
` $('.product-items-container').html(publicationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/infographics?lpage=" + totalPages) } else if (contentType === 'video') { let videoBox = '' videoBox += `
` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear videoBox += `` }) videoBox += `
` $('.product-items-container').html(videoBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/videos?lpage=" + totalPages) } else if (contentType === 'presentation') { let presentationBox = '' presentationBox += `
` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear presentationBox += `` }) presentationBox += `
` $('.product-items-container').html(presentationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/presentations?lpage=" + totalPages) } else if (contentType === 'podcasts') { let podcastBox = '' podcastBox += `
` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear podcastBox += `` }) podcastBox += `
` $('.product-items-container').html(podcastBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/podcasts?lpage=" + totalPages) } else if (contentType === 'news') { let newsBox = '' newsBox += `
` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `` }) newsBox += `
` $('.product-items-container').html(newsBox) $('.pagination-ci li').last().find('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/news?lpage=" + totalPages) } else if (contentType === 'dataset') { let datasetBox = '' datasetBox += `
` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear datasetBox += `

${item.dcTitle}

` }) datasetBox += `
` $('.product-items-container').html(datasetBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/datasets?lpage=" + totalPages) } else if (contentType === 'photo') { let photoBox = '' photoBox += `
` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear photoBox += `` }) photoBox += `
` $('.product-items-container').html(photoBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/photos?lpage=" + totalPages) } let totalResult = res.data.All.response.numFound ?? 0 let resultsPerPage = 15; let currentPage = currentPageNumber ?? 1; let rightLinks = currentPage + 3; let previousLinks = currentPage - 3; let paginationHTML = ''; let baseUrl = 'https://www.cifor-icraf.org/research/theme/soil-and-land-health/'; let queryString = '&'; totalPages = Math.ceil(totalResult / resultsPerPage); $('.current-page').text(currentPage) if (currentPageNumber) { window.history.replaceState({}, 'Page 1', baseUrl) } if (previousLinks > 1) { paginationHTML += `
  • ` } if (currentPage === 1) { paginationHTML += `
  • ` } if (currentPage > 1) { paginationHTML += `
  • ` } for (let i = previousLinks; i <= currentPage; i++) { if (i > 0) { if (i === currentPage) { paginationHTML += `
  • ${i}
  • ` } else { paginationHTML += `
  • ${i}
  • ` } } } for (let i = currentPage + 1; i < rightLinks; i++) { if (i <= totalPages) { if (i === currentPage) { paginationHTML += `
  • ${i}
  • ` } else { paginationHTML += `
  • ${i}
  • ` } } } if (currentPage !== totalPages) { paginationHTML += `
  • ` } if (currentPage === totalPages) { paginationHTML += `
  • ` } if (rightLinks < totalPages) { paginationHTML += `
  • ` } $('.pagination-ci').html('') $('.pagination-ci').html(paginationHTML) } else { if (res.country && res.country === 'sri+lanka') { // News if (res.data.News.response.docs.length !== 0) { let newsBox = '' let news = res.data.News.response.docs productsHTML += `

    News

    ` news.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `` }) productsHTML += newsBox + `
    ` } } // Publications if (res.data.Publication.response.docs.length !== 0) { let publicationBox = '' let publications = res.data.Publication.response.docs productsHTML += `

    Publications

    ` publications.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `` }) productsHTML += publicationBox + `
    ` } // Videos if (res.data.Video.response.docs.length !== 0) { let videoBox = '' let videos = res.data.Video.response.docs productsHTML += `

    Videos

    ` videos.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear videoBox += `` }) productsHTML += videoBox + `
    ` } // Presentations if (res.data.Presentation.response.docs.length !== 0) { let presentationBox = '' let presentations = res.data.Presentation.response.docs productsHTML += `

    Presentations

    ` presentations.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear presentationBox += `` }) productsHTML += presentationBox + `
    ` } // Podcasts if (res.data.Podcasts.response.docs.length !== 0) { let podcastBox = '' let podcasts = res.data.Podcasts.response.docs productsHTML += `

    Podcasts

    ` podcasts.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear podcastBox += `` }) productsHTML += podcastBox + `
    ` } if (res.country && res.country !== 'sri+lanka') { // News if (res.data.News.response.docs.length !== 0) { let newsBox = '' let news = res.data.News.response.docs productsHTML += `

    News

    ` news.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `` }) productsHTML += newsBox + `
    ` } } // Datasets if (res.data.Dataset.response.docs.length !== 0) { let datasetBox = '' let dataset = res.data.Dataset.response.docs productsHTML += `

    Datasets

    ` dataset.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear datasetBox += `

    ${item.dcTitle}

    ` }) productsHTML += datasetBox + `
    ` } // Photos if (res.data.Photo.response.docs.length !== 0) { let photoBox = '' let photo = res.data.Photo.response.docs productsHTML += `

    Photos

    ` photo.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear photoBox += `` }) productsHTML += photoBox + `
    ` } } $('.products-container').html(productsHTML) let knowledgeLang = res.knowledge_product_language if (knowledgeLang === 'one') { if (currentLang === 'en') { $('#language').val('english') } else if (currentLang === 'id') { $('#language').val('indonesian') } else if (currentLang === 'fr') { $('#language').val('french') } else if (currentLang === 'es') { $('#language').val(['spanish', 'portuguese']) } else if (currentLang === 'pt-br') { $('#language').val(['spanish', 'portuguese']) } } else { $('#language').val('') } $('#language').trigger('change') } if (knowledgeLanguage === 'all') { setTimeout(function() { $('#show-products-all-languages').prop("checked", true); $('.products-container').empty() $('.products-container').append(placeholderBox + placeholderBox + placeholderBox) }, 500); $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'all', nav_language: 'en', set_cookie: 'no', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', page_number: '1', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '') }).fail(function(error) { }); } $('#show-products-all-languages').change( function() { $ct = '' == '' ? '.products-container' : '.product-items-container' $($ct).empty() $($ct).append(placeholderBox + placeholderBox + placeholderBox) if ($(this).is(':checked')) { $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'all', nav_language: 'en', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '', 1) }).fail(function(error) { }); } else { $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'one', nav_language: 'en', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '', 1) }).fail(function(error) { }); } });

    Resources

    ` for (i = 0; i < limit; i++) { placeholderBox += `
    ` } placeholderBox += `
    ` function knowledgeProducts(res, contentType, currentPageNumber) { let productsHTML = '' let currentLang = $('html')[0].lang let months = [] if (currentLang === 'en') { months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; } else if (currentLang === 'es') { months = ["en.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ag.", "sept.", "oct.", "nov.", "dic."]; } else if (currentLang === 'fr') { months = ["Jan.", "Fév.", "Mar.", "Avr.", "Mai", "Juin", "Juil.", "Août", "Sept.", "Oct.", "Nov.", "Déc."]; } else if (currentLang === 'id') { months = ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ags", "Sep", "Okt", "Nov", "Des"]; } else if (currentLang === 'pt-br') { months = ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez"]; } if (res.data.All) { let products = res.data.All.response.docs let totalPages = Math.ceil(res.data.All.response.numFound / 15) $('.total-pages').text(totalPages) if (contentType === 'publication') { let publicationBox = '' publicationBox += `
    ` products.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) publicationBox += `
    ` $('.product-items-container').html(publicationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/publications?lpage=" + totalPages) } else if (contentType === 'infographic') { let publicationBox = '' publicationBox += `
    ` products.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) publicationBox += `
    ` $('.product-items-container').html(publicationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/infographics?lpage=" + totalPages) } else if (contentType === 'video') { let videoBox = '' videoBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear videoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) videoBox += `
    ` $('.product-items-container').html(videoBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/videos?lpage=" + totalPages) } else if (contentType === 'presentation') { let presentationBox = '' presentationBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear presentationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) presentationBox += `
    ` $('.product-items-container').html(presentationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/presentations?lpage=" + totalPages) } else if (contentType === 'podcasts') { let podcastBox = '' podcastBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear podcastBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) podcastBox += `
    ` $('.product-items-container').html(podcastBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/podcasts?lpage=" + totalPages) } else if (contentType === 'news') { let newsBox = '' newsBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) newsBox += `
    ` $('.product-items-container').html(newsBox) $('.pagination-ci li').last().find('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/news?lpage=" + totalPages) } else if (contentType === 'dataset') { let datasetBox = '' datasetBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear datasetBox += `

    ${item.dcTitle}

    ` }) datasetBox += `
    ` $('.product-items-container').html(datasetBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/datasets?lpage=" + totalPages) } else if (contentType === 'photo') { let photoBox = '' photoBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear photoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) photoBox += `
    ` $('.product-items-container').html(photoBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/photos?lpage=" + totalPages) } let totalResult = res.data.All.response.numFound ?? 0 let resultsPerPage = 15; let currentPage = currentPageNumber ?? 1; let rightLinks = currentPage + 3; let previousLinks = currentPage - 3; let paginationHTML = ''; let baseUrl = 'https://www.cifor-icraf.org/research/theme/soil-and-land-health/'; let queryString = '&'; totalPages = Math.ceil(totalResult / resultsPerPage); $('.current-page').text(currentPage) if (currentPageNumber) { window.history.replaceState({}, 'Page 1', baseUrl) } if (previousLinks > 1) { paginationHTML += `
  • ` } if (currentPage === 1) { paginationHTML += `
  • ` } if (currentPage > 1) { paginationHTML += `
  • ` } for (let i = previousLinks; i <= currentPage; i++) { if (i > 0) { if (i === currentPage) { paginationHTML += `
  • ${i}
  • ` } else { paginationHTML += `
  • ${i}
  • ` } } } for (let i = currentPage + 1; i < rightLinks; i++) { if (i <= totalPages) { if (i === currentPage) { paginationHTML += `
  • ${i}
  • ` } else { paginationHTML += `
  • ${i}
  • ` } } } if (currentPage !== totalPages) { paginationHTML += `
  • ` } if (currentPage === totalPages) { paginationHTML += `
  • ` } if (rightLinks < totalPages) { paginationHTML += `
  • ` } $('.pagination-ci').html('') $('.pagination-ci').html(paginationHTML) } else { if (res.country && res.country === 'sri+lanka') { // News if (res.data.News.response.docs.length !== 0) { let newsBox = '' let news = res.data.News.response.docs productsHTML += `

    News

    ` news.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += newsBox + `
    Browse all
    ` } } // Publications if (res.data.Publication.response.docs.length !== 0) { let publicationBox = '' let publications = res.data.Publication.response.docs productsHTML += `

    Publications

    ` publications.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += publicationBox + `
    Browse all
    ` } // Videos if (res.data.Video.response.docs.length !== 0) { let videoBox = '' let videos = res.data.Video.response.docs productsHTML += `

    Videos

    ` videos.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear videoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += videoBox + `
    Browse all
    ` } // Presentations if (res.data.Presentation.response.docs.length !== 0) { let presentationBox = '' let presentations = res.data.Presentation.response.docs productsHTML += `

    Presentations

    ` presentations.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear presentationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += presentationBox + `
    Browse all
    ` } // Podcasts if (res.data.Podcasts.response.docs.length !== 0) { let podcastBox = '' let podcasts = res.data.Podcasts.response.docs productsHTML += `

    Podcasts

    ` podcasts.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear podcastBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += podcastBox + `
    Browse all
    ` } if (res.country && res.country !== 'sri+lanka') { // News if (res.data.News.response.docs.length !== 0) { let newsBox = '' let news = res.data.News.response.docs productsHTML += `

    News

    ` news.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += newsBox + `
    Browse all
    ` } } // Datasets if (res.data.Dataset.response.docs.length !== 0) { let datasetBox = '' let dataset = res.data.Dataset.response.docs productsHTML += `

    Datasets

    ` dataset.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear datasetBox += `

    ${item.dcTitle}

    ` }) productsHTML += datasetBox + `
    Browse all
    ` } // Photos if (res.data.Photo.response.docs.length !== 0) { let photoBox = '' let photo = res.data.Photo.response.docs productsHTML += `

    Photos

    ` photo.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear photoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += photoBox + `
    Browse all
    ` } } $('.products-container').html(productsHTML) let knowledgeLang = res.knowledge_product_language if (knowledgeLang === 'one') { if (currentLang === 'en') { $('#language').val('english') } else if (currentLang === 'id') { $('#language').val('indonesian') } else if (currentLang === 'fr') { $('#language').val('french') } else if (currentLang === 'es') { $('#language').val(['spanish', 'portuguese']) } else if (currentLang === 'pt-br') { $('#language').val(['spanish', 'portuguese']) } } else { $('#language').val('') } $('#language').trigger('change') } if (knowledgeLanguage === 'all') { setTimeout(function() { $('#show-products-all-languages').prop("checked", true); $('.products-container').empty() $('.products-container').append(placeholderBox + placeholderBox + placeholderBox) }, 500); $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'all', nav_language: 'en', set_cookie: 'no', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', page_number: '1', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '') }).fail(function(error) { }); } $('#show-products-all-languages').change( function() { $ct = '' == '' ? '.products-container' : '.product-items-container' $($ct).empty() $($ct).append(placeholderBox + placeholderBox + placeholderBox) if ($(this).is(':checked')) { $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'all', nav_language: 'en', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '', 1) }).fail(function(error) { }); } else { $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'one', nav_language: 'en', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '', 1) }).fail(function(error) { }); } });

    Publications

    Videos

    ` for (i = 0; i < limit; i++) { placeholderBox += `
    ` } placeholderBox += `
    ` function knowledgeProducts(res, contentType, currentPageNumber) { let productsHTML = '' let currentLang = $('html')[0].lang let months = [] if (currentLang === 'en') { months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; } else if (currentLang === 'es') { months = ["en.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ag.", "sept.", "oct.", "nov.", "dic."]; } else if (currentLang === 'fr') { months = ["Jan.", "Fév.", "Mar.", "Avr.", "Mai", "Juin", "Juil.", "Août", "Sept.", "Oct.", "Nov.", "Déc."]; } else if (currentLang === 'id') { months = ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ags", "Sep", "Okt", "Nov", "Des"]; } else if (currentLang === 'pt-br') { months = ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez"]; } if (res.data.All) { let products = res.data.All.response.docs let totalPages = Math.ceil(res.data.All.response.numFound / 15) $('.total-pages').text(totalPages) if (contentType === 'publication') { let publicationBox = '' publicationBox += `
    ` products.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) publicationBox += `
    ` $('.product-items-container').html(publicationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/publications?lpage=" + totalPages) } else if (contentType === 'infographic') { let publicationBox = '' publicationBox += `
    ` products.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) publicationBox += `
    ` $('.product-items-container').html(publicationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/infographics?lpage=" + totalPages) } else if (contentType === 'video') { let videoBox = '' videoBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear videoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) videoBox += `
    ` $('.product-items-container').html(videoBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/videos?lpage=" + totalPages) } else if (contentType === 'presentation') { let presentationBox = '' presentationBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear presentationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) presentationBox += `
    ` $('.product-items-container').html(presentationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/presentations?lpage=" + totalPages) } else if (contentType === 'podcasts') { let podcastBox = '' podcastBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear podcastBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) podcastBox += `
    ` $('.product-items-container').html(podcastBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/podcasts?lpage=" + totalPages) } else if (contentType === 'news') { let newsBox = '' newsBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) newsBox += `
    ` $('.product-items-container').html(newsBox) $('.pagination-ci li').last().find('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/news?lpage=" + totalPages) } else if (contentType === 'dataset') { let datasetBox = '' datasetBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear datasetBox += `

    ${item.dcTitle}

    ` }) datasetBox += `
    ` $('.product-items-container').html(datasetBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/datasets?lpage=" + totalPages) } else if (contentType === 'photo') { let photoBox = '' photoBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear photoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) photoBox += `
    ` $('.product-items-container').html(photoBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/photos?lpage=" + totalPages) } let totalResult = res.data.All.response.numFound ?? 0 let resultsPerPage = 15; let currentPage = currentPageNumber ?? 1; let rightLinks = currentPage + 3; let previousLinks = currentPage - 3; let paginationHTML = ''; let baseUrl = 'https://www.cifor-icraf.org/research/theme/soil-and-land-health/'; let queryString = '&'; totalPages = Math.ceil(totalResult / resultsPerPage); $('.current-page').text(currentPage) if (currentPageNumber) { window.history.replaceState({}, 'Page 1', baseUrl) } if (previousLinks > 1) { paginationHTML += `
  • ` } if (currentPage === 1) { paginationHTML += `
  • ` } if (currentPage > 1) { paginationHTML += `
  • ` } for (let i = previousLinks; i <= currentPage; i++) { if (i > 0) { if (i === currentPage) { paginationHTML += `
  • ${i}
  • ` } else { paginationHTML += `
  • ${i}
  • ` } } } for (let i = currentPage + 1; i < rightLinks; i++) { if (i <= totalPages) { if (i === currentPage) { paginationHTML += `
  • ${i}
  • ` } else { paginationHTML += `
  • ${i}
  • ` } } } if (currentPage !== totalPages) { paginationHTML += `
  • ` } if (currentPage === totalPages) { paginationHTML += `
  • ` } if (rightLinks < totalPages) { paginationHTML += `
  • ` } $('.pagination-ci').html('') $('.pagination-ci').html(paginationHTML) } else { if (res.country && res.country === 'sri+lanka') { // News if (res.data.News.response.docs.length !== 0) { let newsBox = '' let news = res.data.News.response.docs productsHTML += `

    News

    ` news.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += newsBox + `
    Browse all
    ` } } // Publications if (res.data.Publication.response.docs.length !== 0) { let publicationBox = '' let publications = res.data.Publication.response.docs productsHTML += `

    Publications

    ` publications.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += publicationBox + `
    Browse all
    ` } // Videos if (res.data.Video.response.docs.length !== 0) { let videoBox = '' let videos = res.data.Video.response.docs productsHTML += `

    Videos

    ` videos.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear videoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += videoBox + `
    Browse all
    ` } // Presentations if (res.data.Presentation.response.docs.length !== 0) { let presentationBox = '' let presentations = res.data.Presentation.response.docs productsHTML += `

    Presentations

    ` presentations.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear presentationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += presentationBox + `
    Browse all
    ` } // Podcasts if (res.data.Podcasts.response.docs.length !== 0) { let podcastBox = '' let podcasts = res.data.Podcasts.response.docs productsHTML += `

    Podcasts

    ` podcasts.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear podcastBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += podcastBox + `
    Browse all
    ` } if (res.country && res.country !== 'sri+lanka') { // News if (res.data.News.response.docs.length !== 0) { let newsBox = '' let news = res.data.News.response.docs productsHTML += `

    News

    ` news.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += newsBox + `
    Browse all
    ` } } // Datasets if (res.data.Dataset.response.docs.length !== 0) { let datasetBox = '' let dataset = res.data.Dataset.response.docs productsHTML += `

    Datasets

    ` dataset.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear datasetBox += `

    ${item.dcTitle}

    ` }) productsHTML += datasetBox + `
    Browse all
    ` } // Photos if (res.data.Photo.response.docs.length !== 0) { let photoBox = '' let photo = res.data.Photo.response.docs productsHTML += `

    Photos

    ` photo.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear photoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += photoBox + `
    Browse all
    ` } } $('.products-container').html(productsHTML) let knowledgeLang = res.knowledge_product_language if (knowledgeLang === 'one') { if (currentLang === 'en') { $('#language').val('english') } else if (currentLang === 'id') { $('#language').val('indonesian') } else if (currentLang === 'fr') { $('#language').val('french') } else if (currentLang === 'es') { $('#language').val(['spanish', 'portuguese']) } else if (currentLang === 'pt-br') { $('#language').val(['spanish', 'portuguese']) } } else { $('#language').val('') } $('#language').trigger('change') } if (knowledgeLanguage === 'all') { setTimeout(function() { $('#show-products-all-languages').prop("checked", true); $('.products-container').empty() $('.products-container').append(placeholderBox + placeholderBox + placeholderBox) }, 500); $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'all', nav_language: 'en', set_cookie: 'no', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', page_number: '1', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '') }).fail(function(error) { }); } $('#show-products-all-languages').change( function() { $ct = '' == '' ? '.products-container' : '.product-items-container' $($ct).empty() $($ct).append(placeholderBox + placeholderBox + placeholderBox) if ($(this).is(':checked')) { $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'all', nav_language: 'en', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '', 1) }).fail(function(error) { }); } else { $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'one', nav_language: 'en', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '', 1) }).fail(function(error) { }); } });

    Videos

    News

    ` for (i = 0; i < limit; i++) { placeholderBox += `
    ` } placeholderBox += `
    ` function knowledgeProducts(res, contentType, currentPageNumber) { let productsHTML = '' let currentLang = $('html')[0].lang let months = [] if (currentLang === 'en') { months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; } else if (currentLang === 'es') { months = ["en.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ag.", "sept.", "oct.", "nov.", "dic."]; } else if (currentLang === 'fr') { months = ["Jan.", "Fév.", "Mar.", "Avr.", "Mai", "Juin", "Juil.", "Août", "Sept.", "Oct.", "Nov.", "Déc."]; } else if (currentLang === 'id') { months = ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ags", "Sep", "Okt", "Nov", "Des"]; } else if (currentLang === 'pt-br') { months = ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez"]; } if (res.data.All) { let products = res.data.All.response.docs let totalPages = Math.ceil(res.data.All.response.numFound / 15) $('.total-pages').text(totalPages) if (contentType === 'publication') { let publicationBox = '' publicationBox += `
    ` products.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) publicationBox += `
    ` $('.product-items-container').html(publicationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/publications?lpage=" + totalPages) } else if (contentType === 'infographic') { let publicationBox = '' publicationBox += `
    ` products.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) publicationBox += `
    ` $('.product-items-container').html(publicationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/infographics?lpage=" + totalPages) } else if (contentType === 'video') { let videoBox = '' videoBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear videoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) videoBox += `
    ` $('.product-items-container').html(videoBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/videos?lpage=" + totalPages) } else if (contentType === 'presentation') { let presentationBox = '' presentationBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear presentationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) presentationBox += `
    ` $('.product-items-container').html(presentationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/presentations?lpage=" + totalPages) } else if (contentType === 'podcasts') { let podcastBox = '' podcastBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear podcastBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) podcastBox += `
    ` $('.product-items-container').html(podcastBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/podcasts?lpage=" + totalPages) } else if (contentType === 'news') { let newsBox = '' newsBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) newsBox += `
    ` $('.product-items-container').html(newsBox) $('.pagination-ci li').last().find('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/news?lpage=" + totalPages) } else if (contentType === 'dataset') { let datasetBox = '' datasetBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear datasetBox += `

    ${item.dcTitle}

    ` }) datasetBox += `
    ` $('.product-items-container').html(datasetBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/datasets?lpage=" + totalPages) } else if (contentType === 'photo') { let photoBox = '' photoBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear photoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) photoBox += `
    ` $('.product-items-container').html(photoBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/photos?lpage=" + totalPages) } let totalResult = res.data.All.response.numFound ?? 0 let resultsPerPage = 15; let currentPage = currentPageNumber ?? 1; let rightLinks = currentPage + 3; let previousLinks = currentPage - 3; let paginationHTML = ''; let baseUrl = 'https://www.cifor-icraf.org/research/theme/soil-and-land-health/'; let queryString = '&'; totalPages = Math.ceil(totalResult / resultsPerPage); $('.current-page').text(currentPage) if (currentPageNumber) { window.history.replaceState({}, 'Page 1', baseUrl) } if (previousLinks > 1) { paginationHTML += `
  • ` } if (currentPage === 1) { paginationHTML += `
  • ` } if (currentPage > 1) { paginationHTML += `
  • ` } for (let i = previousLinks; i <= currentPage; i++) { if (i > 0) { if (i === currentPage) { paginationHTML += `
  • ${i}
  • ` } else { paginationHTML += `
  • ${i}
  • ` } } } for (let i = currentPage + 1; i < rightLinks; i++) { if (i <= totalPages) { if (i === currentPage) { paginationHTML += `
  • ${i}
  • ` } else { paginationHTML += `
  • ${i}
  • ` } } } if (currentPage !== totalPages) { paginationHTML += `
  • ` } if (currentPage === totalPages) { paginationHTML += `
  • ` } if (rightLinks < totalPages) { paginationHTML += `
  • ` } $('.pagination-ci').html('') $('.pagination-ci').html(paginationHTML) } else { if (res.country && res.country === 'sri+lanka') { // News if (res.data.News.response.docs.length !== 0) { let newsBox = '' let news = res.data.News.response.docs productsHTML += `

    News

    ` news.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += newsBox + `
    Browse all
    ` } } // Publications if (res.data.Publication.response.docs.length !== 0) { let publicationBox = '' let publications = res.data.Publication.response.docs productsHTML += `

    Publications

    ` publications.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += publicationBox + `
    Browse all
    ` } // Videos if (res.data.Video.response.docs.length !== 0) { let videoBox = '' let videos = res.data.Video.response.docs productsHTML += `

    Videos

    ` videos.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear videoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += videoBox + `
    Browse all
    ` } // Presentations if (res.data.Presentation.response.docs.length !== 0) { let presentationBox = '' let presentations = res.data.Presentation.response.docs productsHTML += `

    Presentations

    ` presentations.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear presentationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += presentationBox + `
    Browse all
    ` } // Podcasts if (res.data.Podcasts.response.docs.length !== 0) { let podcastBox = '' let podcasts = res.data.Podcasts.response.docs productsHTML += `

    Podcasts

    ` podcasts.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear podcastBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += podcastBox + `
    Browse all
    ` } if (res.country && res.country !== 'sri+lanka') { // News if (res.data.News.response.docs.length !== 0) { let newsBox = '' let news = res.data.News.response.docs productsHTML += `

    News

    ` news.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += newsBox + `
    Browse all
    ` } } // Datasets if (res.data.Dataset.response.docs.length !== 0) { let datasetBox = '' let dataset = res.data.Dataset.response.docs productsHTML += `

    Datasets

    ` dataset.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear datasetBox += `

    ${item.dcTitle}

    ` }) productsHTML += datasetBox + `
    Browse all
    ` } // Photos if (res.data.Photo.response.docs.length !== 0) { let photoBox = '' let photo = res.data.Photo.response.docs productsHTML += `

    Photos

    ` photo.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear photoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += photoBox + `
    Browse all
    ` } } $('.products-container').html(productsHTML) let knowledgeLang = res.knowledge_product_language if (knowledgeLang === 'one') { if (currentLang === 'en') { $('#language').val('english') } else if (currentLang === 'id') { $('#language').val('indonesian') } else if (currentLang === 'fr') { $('#language').val('french') } else if (currentLang === 'es') { $('#language').val(['spanish', 'portuguese']) } else if (currentLang === 'pt-br') { $('#language').val(['spanish', 'portuguese']) } } else { $('#language').val('') } $('#language').trigger('change') } if (knowledgeLanguage === 'all') { setTimeout(function() { $('#show-products-all-languages').prop("checked", true); $('.products-container').empty() $('.products-container').append(placeholderBox + placeholderBox + placeholderBox) }, 500); $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'all', nav_language: 'en', set_cookie: 'no', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', page_number: '1', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '') }).fail(function(error) { }); } $('#show-products-all-languages').change( function() { $ct = '' == '' ? '.products-container' : '.product-items-container' $($ct).empty() $($ct).append(placeholderBox + placeholderBox + placeholderBox) if ($(this).is(':checked')) { $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'all', nav_language: 'en', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '', 1) }).fail(function(error) { }); } else { $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'one', nav_language: 'en', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '3', content_type: '', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '', 1) }).fail(function(error) { }); } });

    News

    Presentation

    ` for (i = 0; i < limit; i++) { placeholderBox += `
    ` } placeholderBox += `
    ` function knowledgeProducts(res, contentType, currentPageNumber) { let productsHTML = '' let currentLang = $('html')[0].lang let months = [] if (currentLang === 'en') { months = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; } else if (currentLang === 'es') { months = ["en.", "feb.", "mar.", "abr.", "may.", "jun.", "jul.", "ag.", "sept.", "oct.", "nov.", "dic."]; } else if (currentLang === 'fr') { months = ["Jan.", "Fév.", "Mar.", "Avr.", "Mai", "Juin", "Juil.", "Août", "Sept.", "Oct.", "Nov.", "Déc."]; } else if (currentLang === 'id') { months = ["Jan", "Feb", "Mar", "Apr", "Mei", "Jun", "Jul", "Ags", "Sep", "Okt", "Nov", "Des"]; } else if (currentLang === 'pt-br') { months = ["jan", "fev", "mar", "abr", "mai", "jun", "jul", "ago", "set", "out", "nov", "dez"]; } if (res.data.All) { let products = res.data.All.response.docs let totalPages = Math.ceil(res.data.All.response.numFound / 15) $('.total-pages').text(totalPages) if (contentType === 'publication') { let publicationBox = '' publicationBox += `
    ` products.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) publicationBox += `
    ` $('.product-items-container').html(publicationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/publications?lpage=" + totalPages) } else if (contentType === 'infographic') { let publicationBox = '' publicationBox += `
    ` products.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) publicationBox += `
    ` $('.product-items-container').html(publicationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/infographics?lpage=" + totalPages) } else if (contentType === 'video') { let videoBox = '' videoBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear videoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) videoBox += `
    ` $('.product-items-container').html(videoBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/videos?lpage=" + totalPages) } else if (contentType === 'presentation') { let presentationBox = '' presentationBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear presentationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) presentationBox += `
    ` $('.product-items-container').html(presentationBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/presentations?lpage=" + totalPages) } else if (contentType === 'podcasts') { let podcastBox = '' podcastBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear podcastBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) podcastBox += `
    ` $('.product-items-container').html(podcastBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/podcasts?lpage=" + totalPages) } else if (contentType === 'news') { let newsBox = '' newsBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) newsBox += `
    ` $('.product-items-container').html(newsBox) $('.pagination-ci li').last().find('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/news?lpage=" + totalPages) } else if (contentType === 'dataset') { let datasetBox = '' datasetBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear datasetBox += `

    ${item.dcTitle}

    ` }) datasetBox += `
    ` $('.product-items-container').html(datasetBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/datasets?lpage=" + totalPages) } else if (contentType === 'photo') { let photoBox = '' photoBox += `
    ` products.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear photoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) photoBox += `
    ` $('.product-items-container').html(photoBox) $('a[aria-label="First"]').attr("href", "/research/theme/soil-and-land-health/photos?lpage=" + totalPages) } let totalResult = res.data.All.response.numFound ?? 0 let resultsPerPage = 15; let currentPage = currentPageNumber ?? 1; let rightLinks = currentPage + 3; let previousLinks = currentPage - 3; let paginationHTML = ''; let baseUrl = 'https://www.cifor-icraf.org/research/theme/soil-and-land-health/'; let queryString = '&'; totalPages = Math.ceil(totalResult / resultsPerPage); $('.current-page').text(currentPage) if (currentPageNumber) { window.history.replaceState({}, 'Page 1', baseUrl) } if (previousLinks > 1) { paginationHTML += `
  • ` } if (currentPage === 1) { paginationHTML += `
  • ` } if (currentPage > 1) { paginationHTML += `
  • ` } for (let i = previousLinks; i <= currentPage; i++) { if (i > 0) { if (i === currentPage) { paginationHTML += `
  • ${i}
  • ` } else { paginationHTML += `
  • ${i}
  • ` } } } for (let i = currentPage + 1; i < rightLinks; i++) { if (i <= totalPages) { if (i === currentPage) { paginationHTML += `
  • ${i}
  • ` } else { paginationHTML += `
  • ${i}
  • ` } } } if (currentPage !== totalPages) { paginationHTML += `
  • ` } if (currentPage === totalPages) { paginationHTML += `
  • ` } if (rightLinks < totalPages) { paginationHTML += `
  • ` } $('.pagination-ci').html('') $('.pagination-ci').html(paginationHTML) } else { if (res.country && res.country === 'sri+lanka') { // News if (res.data.News.response.docs.length !== 0) { let newsBox = '' let news = res.data.News.response.docs productsHTML += `

    News

    ` news.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += newsBox + `
    Browse all
    ` } } // Publications if (res.data.Publication.response.docs.length !== 0) { let publicationBox = '' let publications = res.data.Publication.response.docs productsHTML += `

    Publications

    ` publications.forEach(function(item) { let objectDate = new Date(item.dcDateIssued); let year = objectDate.getFullYear(); publicationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += publicationBox + `
    Browse all
    ` } // Videos if (res.data.Video.response.docs.length !== 0) { let videoBox = '' let videos = res.data.Video.response.docs productsHTML += `

    Videos

    ` videos.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear videoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += videoBox + `
    Browse all
    ` } // Presentations if (res.data.Presentation.response.docs.length !== 0) { let presentationBox = '' let presentations = res.data.Presentation.response.docs productsHTML += `

    Presentations

    ` presentations.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear presentationBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += presentationBox + `
    Browse all
    ` } // Podcasts if (res.data.Podcasts.response.docs.length !== 0) { let podcastBox = '' let podcasts = res.data.Podcasts.response.docs productsHTML += `

    Podcasts

    ` podcasts.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear podcastBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += podcastBox + `
    Browse all
    ` } if (res.country && res.country !== 'sri+lanka') { // News if (res.data.News.response.docs.length !== 0) { let newsBox = '' let news = res.data.News.response.docs productsHTML += `

    News

    ` news.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear newsBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += newsBox + `
    Browse all
    ` } } // Datasets if (res.data.Dataset.response.docs.length !== 0) { let datasetBox = '' let dataset = res.data.Dataset.response.docs productsHTML += `

    Datasets

    ` dataset.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear datasetBox += `

    ${item.dcTitle}

    ` }) productsHTML += datasetBox + `
    Browse all
    ` } // Photos if (res.data.Photo.response.docs.length !== 0) { let photoBox = '' let photo = res.data.Photo.response.docs productsHTML += `

    Photos

    ` photo.forEach(function(item) { let productDateIssued = item.dcDateIssued let productNewDate = new Date(productDateIssued) let productDate = productNewDate.getDate() let productMonth = months[productNewDate.getMonth()] let productYear = productNewDate.getFullYear() let productFullDate = productDate + ' ' + productMonth + ' ' + productYear photoBox += `
    thumbnail of ${item.dcTitle}

    ${item.dcTitle}

    ` }) productsHTML += photoBox + `
    Browse all
    ` } } $('.products-container').html(productsHTML) let knowledgeLang = res.knowledge_product_language if (knowledgeLang === 'one') { if (currentLang === 'en') { $('#language').val('english') } else if (currentLang === 'id') { $('#language').val('indonesian') } else if (currentLang === 'fr') { $('#language').val('french') } else if (currentLang === 'es') { $('#language').val(['spanish', 'portuguese']) } else if (currentLang === 'pt-br') { $('#language').val(['spanish', 'portuguese']) } } else { $('#language').val('') } $('#language').trigger('change') } if (knowledgeLanguage === 'all') { setTimeout(function() { $('#show-products-all-languages').prop("checked", true); $('.products-container').empty() $('.products-container').append(placeholderBox + placeholderBox + placeholderBox) }, 500); $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'all', nav_language: 'en', set_cookie: 'no', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '1', content_type: '', page_number: '1', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '') }).fail(function(error) { }); } $('#show-products-all-languages').change( function() { $ct = '' == '' ? '.products-container' : '.product-items-container' $($ct).empty() $($ct).append(placeholderBox + placeholderBox + placeholderBox) if ($(this).is(':checked')) { $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'all', nav_language: 'en', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '1', content_type: '', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '', 1) }).fail(function(error) { }); } else { $.ajax({ url: 'https://www.cifor-icraf.org/wp-json/ci/v1/multilanguage', data: { language: 'one', nav_language: 'en', country: '', sub_name: 'Soil+and+land+health', subject_domain: '', limit: '1', content_type: '', sort_by: '-date' }, dataType: 'json' }).done(function(res) { knowledgeProducts(res, '', 1) }).fail(function(error) { }); } });

    Presentations

    Projects