{"id":3854,"date":"2024-07-02T08:13:30","date_gmt":"2024-07-02T08:13:30","guid":{"rendered":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/?p=3854"},"modified":"2024-07-02T12:30:53","modified_gmt":"2024-07-02T12:30:53","slug":"aaa-test-page","status":"publish","type":"post","link":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/?p=3854","title":{"rendered":"AAA-test-page"},"content":{"rendered":"\n<!-- \n<iframe loading=\"lazy\" style=\"line-height: 1.3em;\" src=\"https:\/\/mapir.uma.es\/mapirpubsite\/index.php\/export\/bytopic\/24\/1\/aigaion_pubs_for_joomlawrapper.css\/none\/mapir_formatted_list\/type\/none\" width=\"100%\" height=\"30000\" frameborder=\"0\"><p>The list is loaded from another server. If you see this, there has been a problem.<\/iframe>\n-->\n\n\n\n<style>\n    .form-container {\n        width: 100%;\n        background-color: white;\n        padding: 20px;\n        border-radius: 5px;\n        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);\n    }\n    .form-container input {\n        padding: 10px;\n        margin: 10px 0;\n        width: 100px;\n        border: 1px solid #ccc;\n        border-radius: 5px;\n    }\n    .form-container button {\n        padding: 10px 20px;\n        background-color: #28a745;\n        color: white;\n        border: none;\n        border-radius: 5px;\n        cursor: pointer;\n    }\n    .form-container button:hover {\n        background-color: #218838;\n    }\n    #resultFrame {\n        width: 100%;\n        border: 0px; \n        line-height: 1.3em;\n        height: 100%;        \n    }\n<\/style>\n\n\n<div class=\"form-container\">\n    <form id=\"numberForm\">\n        Since (year) <input type=\"number\" id=\"numberInput\" value=\"none\" placeholder=\"all\">\n        <button type=\"submit\">Submit<\/button>\n        <button type=\"reset\">Reset<\/button>\n    <\/form>\n    <div id=\"abstract\"><\/div>\n    <iframe id=\"resultFrame\" name=\"resultFrame\"><\/iframe>\n<\/div>\n\n<script>\n    \/\/ Init with all publications\n    var iframe = document.getElementById('resultFrame');\n    iframe.src = 'https:\/\/mapir.uma.es\/mapirpubsite\/index.php\/export\/byauthor\/71\/1\/aigaion_pubs_for_joomlawrapper_images.css\/none\/mapir_formatted_image_list\/type\/none';\n\n    \/\/ Update publications (form)\n    document.getElementById('numberForm').addEventListener('submit', function(event) {\n        event.preventDefault();\n        var number = document.getElementById('numberInput').value;\n        var currentYear = new Date().getFullYear();\n        if (number!='none'){\n            number = currentYear - number;\n        }\n        \/\/ Update pub list\n        var iframe = document.getElementById('resultFrame');\n        iframe.src = 'https:\/\/mapir.uma.es\/mapirpubsite\/index.php\/export\/byauthor\/71\/1\/aigaion_pubs_for_joomlawrapper_images.css\/none\/mapir_formatted_image_list\/type\/' + number;\n    });\n\n    \/\/ Adjust height \n    document.getElementById('resultFrame').addEventListener('load', function() {\n        var iframe = document.getElementById('resultFrame');\n        iframe.style.height = iframe.contentWindow.document.body.scrollHeight + 50 +'px';\n\n\/\/ Get pub_types\nconst collection = iframe.contentWindow.document.getElementsByClassName(\"aigaion_divtype\");\ndocument.getElementById(\"abstract\").innerHTML = \"\";\nfor (let i = 0; i < collection.length; i++) {\n  var current_data = document.getElementById(\"abstract\").innerHTML; \n  document.getElementById(\"abstract\").innerHTML = current_data + ' ' + collection[i].getElementsByTagName(\"h2\")[0].innerHTML;\n}\n\n\/\/ Get pub years\nconst list_years= iframe.contentWindow.document.getElementsByClassName(\"aigaion_divyear\");\nvar list_years_num = [];\nfor (let i = 0; i < list_years.length; i++) {\n\tlist_years_num.push(Number(list_years[i].innerHTML))\n}\nvar min_year = Math.min(...list_years_num);\n\nvar current_data = document.getElementById(\"abstract\").innerHTML;\ndocument.getElementById(\"abstract\").innerHTML = 'Listing period [' + min_year + '-' + new Date().getFullYear() + '] ' + current_data;\ndocument.getElementById(\"numberInput\").placeholder= min_year;\ndocument.getElementById(\"numberInput\").value= min_year ;\n\n\/\/ Get Quartiles for Journals\n\n    });\n<\/script>\n\n\n\n<!-- ABSTRACT -->\n<script>\n\n\n       \n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Since (year) Submit Reset<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/index.php?rest_route=\/wp\/v2\/posts\/3854"}],"collection":[{"href":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3854"}],"version-history":[{"count":50,"href":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/index.php?rest_route=\/wp\/v2\/posts\/3854\/revisions"}],"predecessor-version":[{"id":3930,"href":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/index.php?rest_route=\/wp\/v2\/posts\/3854\/revisions\/3930"}],"wp:attachment":[{"href":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mapir.isa.uma.es\/mapirwebsite\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}