IDE Research Columns

'; }) } break; case 'publish_categoryicon_en' : if (a['pageItems']['publish_categoryicon_en'] != undefined) { var iconCsv = a['pageItems']['publish_categoryicon_en']['publish_categoryicon_en']; var value = ""; iconCsv.split(',').forEach( function( icon ) { value += '

' + icon + '

'; }) } break; case 'publish_openaccess' : var value = ""; if (a['pageItems']['publish_openaccess'] != undefined) { value = '
'; value += ''; value += '
'; } else { value = '
'; } break; case 'publish_vol' : if (a['pageItems']['publish_vol'] != undefined) { value = a['pageItems']['publish_vol']['publish_vol']; } break; case 'report_vol' : if (a['pageItems']['report_vol'] != undefined) { value = a['pageItems']['report_vol']['report_vol']; } break; case 'publish_title' : if (a['pageItems']['publish_title'] != undefined) { value = a['pageItems']['publish_title']['publish_title']; } break; case 'publish_yearmonth' : if (a['pageItems']['publish_yearmonth'] != undefined) { value = a['pageItems']['publish_yearmonth']['publish_yearmonth']; } else { value = a['date']; } break; case 'publish_isbn' : if (a['pageItems']['publish_isbn'] != undefined) { value = " / ISBN" + a['pageItems']['publish_isbn']['publish_isbn']; } break; case 'publish_summary30' : if (a['pageItems']['publish_summary30'] != undefined) { var size = 153; value = a['pageItems']['publish_summary30']['publish_summary30']; var t = value.replace(/ /g,' '); if (t.length > size) { value = t.substring(0, size) + '…'; } } break; case 'publish_summary30_en' : if (a['pageItems']['publish_summary30'] != undefined) { var size = 237; value = a['pageItems']['publish_summary30']['publish_summary30']; var t = value.replace(/ /g,' '); if (t.length > size) { value = t.substring(0, size) + '…'; } } break; case 'publish_category' : if (a['pageItems']['publish_category'] != undefined) { value = a['pageItems']['publish_category']['publish_category']; } break; case 'report_title' : if (a['pageItems']['report_title'] != undefined) { value = a['pageItems']['report_title']['report_title']; } break; case 'title' : value = a['title']; break; case 'report_picture' : if (a['pageItems']['report_picture'] != undefined) { var imgvalue = a['pageItems']['report_picture']['report_picture']; } else { var imgvalue = '/library/images/book_noimage.gif'; imgvalue = 'no image'; } value = imgvalue; break; case 'report_vol' : if (a['pageItems']['report_vol'] != undefined) { value = ' / ' + a['pageItems']['report_vol']['report_vol']; } break; case 'report_authors' : if (a['pageItems']['report_authors'] != undefined) { value = a['pageItems']['report_authors']['report_authors'].replace('、', ' '); } break; case 'report_yearmonth' : if (a['pageItems']['report_yearmonth'] != undefined && a['pageItems']['report_yearmonth']['report_yearmonth']) { var day = new Date(a['pageItems']['report_yearmonth']['report_yearmonth']); value = new Intl.DateTimeFormat('en', { month: 'short'}).format(day) + ' ' + day.getFullYear(); } else { var day = new Date(a['date']); value = new Intl.DateTimeFormat('en', { month: 'short'}).format(day) + ' ' + day.getFullYear(); } break; case 'report_summary' : if (a['pageItems']['report_summary'] != undefined) { var size = 300; value = a['pageItems']['report_summary']['report_summary']; var t = value.replace(/ /g,' '); if (t.length > size) { value = t.substring(0, size) + '…'; } } break; default : value = ""; } $(sp).html(value); }); $.each($(record).find('#role_block_publish_authors'), function(index2, sp) { var value = ''; if (a['pageItems']['publish_authors'] != undefined) { value = a['pageItems']['publish_authors']['publish_authors']; value = value.replace('・', ' ').replace('、', ' '); } $(sp).html(value); }); $.each($(record).find('#role_block_report_authors'), function(index2, sp) { var value = ''; if (a['pageItems']['report_authors'] != undefined) { value = a['pageItems']['report_authors']['report_authors']; value = value.replace('・', ' ').replace('、', ' '); } $(sp).html(value); }); $.each($(record).find('#role_block_url'), function(index2, sp) { $(sp).attr("href", a['url']); }); $.each($(record).find('#role_block_report_link_or_pdf'), function(index2, sp) { var value = ''; if (a['pageItems']['report_link_or_pdf'] != undefined) { value = a['pageItems']['report_link_or_pdf']['report_link_or_pdf']; value = value.replace('・', ' ').replace('、', ' '); } $(sp).html(value); console.log(value); }); $(divId).append(record); } }); setPageInfo(pager); }