{"id":6277,"date":"2020-11-27T22:08:12","date_gmt":"2020-11-27T14:08:12","guid":{"rendered":"http:\/\/140.122.64.119\/geo\/?page_id=6277"},"modified":"2025-12-09T17:16:30","modified_gmt":"2025-12-09T09:16:30","slug":"issues","status":"publish","type":"page","link":"https:\/\/www.geo.ntnu.edu.tw\/index.php\/en\/issues\/","title":{"rendered":"issues"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"6277\" class=\"elementor elementor-6277\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-4659666 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"4659666\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e198661\" data-id=\"e198661\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-506f9fe elementor-widget elementor-widget-heading\" data-id=\"506f9fe\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h1 class=\"elementor-heading-title elementor-size-default\">Issues<\/h1>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-d4c3404 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"d4c3404\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d691de9\" data-id=\"d691de9\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ab73135 elementor-widget elementor-widget-html\" data-id=\"ab73135\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<script>\r\n  \/\/ \r\n  const jsonUrl = 'https:\/\/www.geo.ntnu.edu.tw\/wp-content\/uploads\/2025\/12\/JGR_index_new2.json';\r\n<\/script>\r\n\r\n\r\n\r\n<div id=\"search-form\">\r\n  <!--  -->\r\n  <div class=\"form-row\">\r\n    <div class=\"form-group\">\r\n      <label for=\"vol\">Issue No.\uff1a<\/label>\r\n      <input id=\"vol\" type=\"text\" placeholder=\"Enter issue number\" \/>\r\n    <\/div>\r\n    <div class=\"form-group\">\r\n      <label for=\"year_AD\">Year\uff1a<\/label>\r\n      <input id=\"year_AD\" type=\"text\" placeholder=\"Enter issue year (YYYY)\" \/>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <!--  -->\r\n  <div class=\"form-row\">\r\n    <div class=\"form-group\">\r\n      <label for=\"author_english\">Author (English)\uff1a<\/label>\r\n      <input id=\"author_english\" type=\"text\" placeholder=\"Enter author's English name\" \/>\r\n    <\/div>\r\n    <div class=\"form-group\">\r\n      <label for=\"author_chinese\">Author (Chinese)\uff1a<\/label>\r\n      <input id=\"author_chinese\" type=\"text\" placeholder=\"Enter author's Chinese name\" \/>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <!--  -->\r\n  <div class=\"form-row\">\r\n    <div class=\"form-group\">\r\n      <label for=\"title_english\">Title (English)\uff1a<\/label>\r\n      <input id=\"title_english\" type=\"text\" placeholder=\"Enter article title (English)\" \/>\r\n    <\/div>\r\n    <div class=\"form-group\">\r\n      <label for=\"title_chinese\">Title (Chinese)\uff1a<\/label>\r\n      <input id=\"title_chinese\" type=\"text\" placeholder=\"Enter article title (Chinese)\" \/>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <!--  -->\r\n  <div class=\"form-buttons\">\r\n    <button id=\"search-btn\">Search<\/button>\r\n    <button id=\"clear-btn\">Clear Filters<\/button>\r\n  <\/div>\r\n<\/div>\r\n\r\n\r\n<table id=\"result-table\" border=\"1\">\r\n  <thead>\r\n    <tr>\r\n      <th style=\"white-space: nowrap;text-transform: capitalize;\">#<\/th>\r\n      <th style=\"white-space: nowrap;text-transform: capitalize;\">Issue No.<\/th>\r\n      <th style=\"white-space: nowrap;text-transform: capitalize;\">Year<\/th>\r\n      <th style=\"white-space: nowrap;text-transform: capitalize;\">Month<\/th>\r\n      <th style=\"white-space: nowrap;text-transform: capitalize;\">Title\/Author<\/th>\r\n      <th style=\"white-space: nowrap;text-transform: capitalize;\">Pages<\/th>\r\n      <th style=\"white-space: nowrap;text-transform: capitalize;\">Full text<\/th>\r\n    <\/tr>\r\n  <\/thead>\r\n  <tbody><\/tbody>\r\n<\/table>\r\n\r\n\r\n<!--  -->\r\n<div id=\"loading\" style=\"display: none;\">Please wait...<\/div>\r\n\r\n<script src=\"https:\/\/code.jquery.com\/jquery-3.6.0.min.js\"><\/script>\r\n<script>\r\n\r\n\/\/\r\n  function normalizeTai(str) {\r\n    return str.replace(\/\u81fa\/g, '\u53f0');\r\n  }\r\n\r\n$(document).ready(function() {\r\n  console.log('Page loaded and jQuery is ready.');\r\n\r\n  \/\/ \r\n  $('#search-btn').on('click', function() {\r\n    console.log('Search button clicked.');\r\n\r\n    \/\/ \r\n    $('#loading').show();\r\n\r\n    \/\/ \r\n    const vol = $('#vol').val().trim();\r\n    const year_AD = $('#year_AD').val().trim();\r\n    const author_chinese = $('#author_chinese').val().trim().toLowerCase();\r\n    const author_english = $('#author_english').val().trim().toLowerCase();\r\n    const title_chinese = $('#title_chinese').val().trim().toLowerCase();\r\n    const title_english = $('#title_english').val().trim().toLowerCase();\r\n\r\n    \/\/ \r\n        $.getJSON(jsonUrl, function(data) {\r\n      console.log('JSON data fetched:', data);\r\n\r\n      \/\/ \r\n      let filteredData = data.filter(function(item) {\r\n        const getString = (field) => field ? field.toString() : '';\r\n        const getLowerString = (field) => field ? field.toString().toLowerCase() : '';\r\n\r\n        return (\r\n          (vol === '' || (item.vol && item.vol == vol)) &&\r\n          (year_AD === '' || (item.year_AD && item.year_AD == year_AD)) &&\r\n          (author_english === '' || getLowerString(item.author_english).includes(author_english)) &&\r\n          (author_chinese === '' || getLowerString(item.author_chinese).includes(author_chinese)) &&\r\n          (title_english === '' || getLowerString(item.title_english).includes(title_english)) &&\r\n          (title_chinese === '' || normalizeTai(getLowerString(item.title_chinese)).includes(normalizeTai(title_chinese)))\r\n        );\r\n      });\r\n\r\n      console.log('Filtered Data:', filteredData); \/\/ \r\n\r\n      \/\/ \r\n      $('#result-table tbody').empty();\r\n\r\n      if (filteredData.length === 0) {\r\n        $('#result-table tbody').append('<tr><td colspan=\"7\">No matching results<\/td><\/tr>');\r\n      } else {\r\n        \/\/ \r\n        filteredData.forEach(function(item, index) {\r\n          const row = \r\n            `<tr>\r\n              <td style=\"white-space: nowrap;\">${index + 1}<\/td>\r\n              <td style=\"white-space: nowrap;\">No.${item.vol || ''}<\/td>\r\n              <td style=\"white-space: nowrap;\">${item.year_AD || ''}<\/td>\r\n              <td style=\"white-space: nowrap;\">${item.month || ''}<\/td>\r\n              <td>\r\n                ${item.title_chinese || ''}<br>\r\n                ${item.author_chinese || ''}<br>\r\n                ${item.title_english || ''}<br>\r\n                ${item.author_english || ''}\r\n              <\/td>\r\n              <td style=\"white-space: nowrap;\">${item.page_start || ''}-${item.page_end || ''}<\/td>\r\n              <td style=\"white-space: nowrap;\"><a href=\"https:\/\/www1.geo.ntnu.edu.tw\/JGR\/${item.filename}\" target=\"_blank\">\r\n                  <img decoding=\"async\" src=\"https:\/\/www.geo.ntnu.edu.tw\/wp-content\/uploads\/2024\/09\/icon_pdf_b.png\" width=\"20\" alt=\"\u4e0b\u8f09\"><\/a>\r\n              <\/td>\r\n            <\/tr>`;\r\n          $('#result-table tbody').append(row);\r\n        });\r\n      }\r\n\r\n      \/\/ \r\n      $('#loading').hide();\r\n    }).fail(function(jqXHR, textStatus, errorThrown) {\r\n      console.error('Error fetching JSON:', textStatus, errorThrown);\r\n      alert('Unable to load data, please try later.');\r\n\r\n      \/\/ \r\n      $('#loading').hide();\r\n    });\r\n  });\r\n\r\n  \/\/ \r\n  $('#clear-btn').on('click', function() {\r\n    console.log('Clear button clicked.');\r\n\r\n    \/\/ \r\n    $('#vol').val('');\r\n    $('#year_AD').val('');\r\n    $('#author_english').val('');\r\n    $('#author_chinese').val('');\r\n    $('#title_english').val('');\r\n    $('#title_chinese').val('');\r\n\r\n    \/\/ \r\n    $('#result-table tbody').empty();\r\n  });\r\n});\r\n<\/script>\r\n\r\n<style>\r\n  \/*  *\/\r\n  #search-form {\r\n    width: 100%;\r\n    max-width: 800px;\r\n    margin: 20px auto;\r\n  }\r\n\r\n  .form-row {\r\n    display: flex;\r\n    justify-content: space-between;\r\n    margin-bottom: 10px;\r\n  }\r\n\r\n  .form-group {\r\n    display: flex;\r\n    align-items: center;\r\n    width: 48%; \/*  *\/\r\n  }\r\n\r\n  .form-group label {\r\n    min-width: 110px; \/*  *\/\r\n    margin-right: 10px;\r\n    text-align: right;\r\n    white-space: nowrap; \/*  *\/\r\n  }\r\n\r\n  .form-group input {\r\n    flex: 1; \/*  *\/\r\n    padding: 8px;\r\n    border: 1px solid \r\n    #ccc ;\r\n    border-radius: 4px;\r\n    width: 100%; \/*  *\/\r\n  }\r\n  \r\n  input::placeholder {\r\n    color: #CCD5E4; \/*  *\/\r\n    opacity: 1; \/*  *\/\r\n}\r\n\r\n  \/*  *\/\r\n  .form-buttons {\r\n    display: flex;\r\n    justify-content: center;\r\n    gap: 20px;\r\n    margin-top: 20px;\r\n  }\r\n\r\n  .form-buttons button {\r\n    padding: 5px 20px;\r\n    background-color: #CB1C3F;\r\n    color: white;\r\n    border: none;\r\n    border-radius: 4px;\r\n    cursor: pointer;\r\n    font-size: 16px;\r\n  }\r\n\r\n  .form-buttons button:hover {\r\n    background-color: #94142D;\r\n  }\r\n\r\n  \/*  *\/\r\n  @media (max-width: 600px) {\r\n    .form-row {\r\n      flex-direction: column; \/*  *\/\r\n    }\r\n\r\n    .form-group {\r\n      width: 100%; \/*  *\/\r\n    }\r\n  }\r\n<\/style>\r\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Issues Issue No.\uff1a Year\uff1a Author (English)\uff1a Author (Chine [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","footnotes":""},"class_list":["post-6277","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/www.geo.ntnu.edu.tw\/index.php\/wp-json\/wp\/v2\/pages\/6277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.geo.ntnu.edu.tw\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.geo.ntnu.edu.tw\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.geo.ntnu.edu.tw\/index.php\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.geo.ntnu.edu.tw\/index.php\/wp-json\/wp\/v2\/comments?post=6277"}],"version-history":[{"count":155,"href":"https:\/\/www.geo.ntnu.edu.tw\/index.php\/wp-json\/wp\/v2\/pages\/6277\/revisions"}],"predecessor-version":[{"id":30245,"href":"https:\/\/www.geo.ntnu.edu.tw\/index.php\/wp-json\/wp\/v2\/pages\/6277\/revisions\/30245"}],"wp:attachment":[{"href":"https:\/\/www.geo.ntnu.edu.tw\/index.php\/wp-json\/wp\/v2\/media?parent=6277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}