Update website
This commit is contained in:
parent
8d8da33b9a
commit
973d933aa9
@ -2,6 +2,7 @@
|
|||||||
<IfModule mod_rewrite.c>
|
<IfModule mod_rewrite.c>
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
RewriteRule ^(.*/)?\.git/ - [F,L]
|
RewriteRule ^(.*/)?\.git/ - [F,L]
|
||||||
|
RewriteRule ^(.*/)?\composer\.(.*) - [F,L]
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# Alternatively, you can use the following directive to deny access
|
# Alternatively, you can use the following directive to deny access
|
||||||
|
@ -22,10 +22,30 @@ try {
|
|||||||
$parser->parseFile('assets/bib/export-bibtex.bib');
|
$parser->parseFile('assets/bib/export-bibtex.bib');
|
||||||
$entries = $listener->export();
|
$entries = $listener->export();
|
||||||
|
|
||||||
print_r($entries);
|
$tpl = $m->loadTemplate("publi_bib_html");
|
||||||
|
|
||||||
|
|
||||||
|
echo $tpl->render(
|
||||||
|
array(
|
||||||
|
'ROOT_URL' => $iap_root,
|
||||||
|
'title'=>'Guilhem Lavaux\'s publications',
|
||||||
|
'publi'=>$entries,
|
||||||
|
'configure_script'=>[
|
||||||
|
'MathJax = {
|
||||||
|
tex: {
|
||||||
|
inlineMath: [[\'$\', \'$\'], [\'\\\\(\', \'\\\\)\']]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
'
|
||||||
|
],
|
||||||
|
'external_scripts'=>[
|
||||||
|
'src="https://polyfill.io/v3/polyfill.min.js?features=es6"',
|
||||||
|
'id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"'
|
||||||
|
],
|
||||||
|
'bar' => 'baz'));
|
||||||
|
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
print_r($e);
|
echo $e->getMessage()) . "<br/>";
|
||||||
print_r($e->getMessage());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
72
views/publi_bib_html.mustache
Normal file
72
views/publi_bib_html.mustache
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
{{> public_header}}
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.authors.author {
|
||||||
|
}
|
||||||
|
|
||||||
|
span.author::after {
|
||||||
|
content:";";
|
||||||
|
}
|
||||||
|
|
||||||
|
span.author:last-child::after {
|
||||||
|
content:"";
|
||||||
|
}
|
||||||
|
|
||||||
|
.citation_count {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.pubdetail {
|
||||||
|
color: rgba(200,200,255, 0.55);
|
||||||
|
}
|
||||||
|
|
||||||
|
</style>
|
||||||
|
|
||||||
|
{{> generic_header}}
|
||||||
|
|
||||||
|
<!-- Wrapper -->
|
||||||
|
<div id="wrapper">
|
||||||
|
|
||||||
|
<section id="main" class="wrapper">
|
||||||
|
<div class="inner">
|
||||||
|
<h1 class="major">List of publications</h1>
|
||||||
|
<p><strong>Usage:</strong> you may sort by year or by citations by clicking on the corresponding header in the table below (see dotted line under the respective header). You may also find my publications on ADS <a href="https://ui.adsabs.harvard.edu/public-libraries/8MO19J9bRUa2IUFVFIBgZw">here</a></p>
|
||||||
|
<div class="table-wrapper">
|
||||||
|
<table id="publications">
|
||||||
|
<thead>
|
||||||
|
<th onclick="sortTable(0)">Title<br/>
|
||||||
|
<span class="authors">Authors</span><br/>
|
||||||
|
<span class="doi">DOI</span>
|
||||||
|
</th>
|
||||||
|
<th style='min-width:3em'><a href="publications.php?sort_year={{sort_year}}">Year</a></th>
|
||||||
|
<th style='min-width:10em'>arXiv</th>
|
||||||
|
<th><a href="publications.php?sort={{sort_citation}}">Citations</a></th>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{{# publi }}
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<b>{{{ title }}}</b><br/>
|
||||||
|
<div class='authors'>
|
||||||
|
{{# authors }}
|
||||||
|
<span class="author">{{ . }}</span>
|
||||||
|
{{/ authors }}
|
||||||
|
</div>
|
||||||
|
<div class='doi'><a href='https://dx.doi.org/{{doi}}' target="_blank">DOI: {{ doi }}</a></div>
|
||||||
|
{{#doi}}<div class='pubdetail'>{{journal}} ({{year}}) {{#volume}}<span class="publi-volume">{{.}}</span>{{/volume}}{{#page}}, {{.}}{{/page}}</div>{{/doi}}
|
||||||
|
</td>
|
||||||
|
<td>{{ year }}</td>
|
||||||
|
<td><a href="https://arxiv.org/abs/{{ arxiv }}" target="_blank">{{ arxiv }}</a></td>
|
||||||
|
<td><span class="citation_count">{{ citation_count }}</span></td>
|
||||||
|
</tr>
|
||||||
|
{{/ publi }}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
{{> public_footer}}
|
Loading…
Reference in New Issue
Block a user