{"id":3105,"date":"2021-11-07T18:37:10","date_gmt":"2021-11-07T16:37:10","guid":{"rendered":"https:\/\/icsdweb.aegean.gr\/aegeanrbtcs\/?page_id=3105"},"modified":"2022-11-21T12:20:25","modified_gmt":"2022-11-21T10:20:25","slug":"publications-3","status":"publish","type":"page","link":"https:\/\/icsdweb.aegean.gr\/aegeanrbtcs\/publications-3\/","title":{"rendered":"\u0394\u03b7\u03bc\u03bf\u03c3\u03b9\u03b5\u03cd\u03c3\u03b5\u03b9\u03c2"},"content":{"rendered":"\n<!doctype html>\n<html lang=\"eng\">\n<body>\n\t<div id=\"publications\"><\/div>\n\t\n\t<script type=\"text\/javascript\">\n\t\tvar request = new XMLHttpRequest();\n\t\tvar request2 = new XMLHttpRequest();\n\t\t\n\t\trequest.open('GET', 'https:\/\/www.icsd.aegean.gr\/api\/publication\/pubs.php?pubtype=1&user=65,57');\n\t\trequest2.open('GET', 'https:\/\/www.icsd.aegean.gr\/api\/publication\/pubs.php?pubtype=2&user=65,57');\n\t\t\n\t\trequest2.onload = function() {\n\t\t\tvar data = JSON.parse(request.responseText);\n\t\t\tvar data2 = JSON.parse(request2.responseText);\n\t\t\t\t\n\t\t\tvar publication = \"\";\n\t\t\tpublication += \"<p><h2 style='text-align:center;'>Total publications: \" + (data.records.length+data2.records.length) + \"<\/h2>\";\n\t\t\t\n\t\t\tj = 0; <!-- journal counter\n\t\t\tk = 0; <!-- conference counter\n\t\t\tconsole.log(data2.records.length);\n\t\t\tfor (i = 0; i < (data.records.length + data2.records.length); i++){\n\t\t\tconsole.log(\"j = \" + j + \", k = \" + k);\n\t\t\t\tif (j < data.records.length && data.records[j].year >= data2.records[k].year){\t\t\t\t\t\t\t\t\n\t\t\t\t\tpublication += \"<p>\" + \"[\" + (i+1) + \"] \" + data.records[j].authors + \", \" + \"<b>\" + data.records[j].title + \"<\/b>\" + \", \" + \"<i>\" + \n\t\t\t\t\tdata.records[j].journal + \"<\/i>\" + \", Vol.\" + data.records[j].volume + \", No.\" + data.records[j].number + \", pp.\" + data.records[j].pages + \n\t\t\t\t\t\", \" + data.records[j].year + \", \" + data.records[j].publisher;\n\t\t\t\t\tj = j+1;\n\t\t\t\t\t\n\t\t\t\t} else if (k < data2.records.length) {\n\t\t\t\t\n\t\t\t\t\tpublication += \"<p>\" + \"[\" + (i+1) + \"] \" + data2.records[k].authors + \", \" + \"<b>\" + data2.records[k].title + \"<\/b>\" + \", \" + \n\t\t\t\t\t\"<i>\" + data2.records[k].conference + \"<\/i>\" + \", pp.\" + data2.records[k].pages + \", \" + data2.records[k].year;\n\t\t\t\t\tk = k+1;\n\t\t\t\t\tif (k >= data2.records.length){\n\t\t\t\t\t\tk = data2.records.length-1;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tdocument.getElementById(\"publications\").innerHTML =publication;\n\t\t};\n\t\trequest2.send();\n\t\trequest.send();\n\t\n\t<\/script>\n<\/body>\n<\/html>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":11,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_links_to":"","_links_to_target":""},"_links":{"self":[{"href":"https:\/\/icsdweb.aegean.gr\/aegeanrbtcs\/wp-json\/wp\/v2\/pages\/3105"}],"collection":[{"href":"https:\/\/icsdweb.aegean.gr\/aegeanrbtcs\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/icsdweb.aegean.gr\/aegeanrbtcs\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/icsdweb.aegean.gr\/aegeanrbtcs\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/icsdweb.aegean.gr\/aegeanrbtcs\/wp-json\/wp\/v2\/comments?post=3105"}],"version-history":[{"count":17,"href":"https:\/\/icsdweb.aegean.gr\/aegeanrbtcs\/wp-json\/wp\/v2\/pages\/3105\/revisions"}],"predecessor-version":[{"id":4503,"href":"https:\/\/icsdweb.aegean.gr\/aegeanrbtcs\/wp-json\/wp\/v2\/pages\/3105\/revisions\/4503"}],"wp:attachment":[{"href":"https:\/\/icsdweb.aegean.gr\/aegeanrbtcs\/wp-json\/wp\/v2\/media?parent=3105"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}