8
8
let currentYear = null ;
9
9
for (const item of items) {
10
10
let doiurl = item .url === " " ? " https://doi.org/" + item .doi : item .url ;
11
+ let bibtitle = item .title .replace (/ '/ g , " \\ '" );
12
+ let bibauthors = item .authors .replace (/ '/ g , " \\ '" );
11
13
if (item .year !== currentYear) {
12
14
if (currentYear !== null ) { % >
13
15
< / div> <!-- End previous year section -->
@@ -23,27 +25,34 @@ for (const item of items) {
23
25
< div class = " row align-items-start" > <!-- align- items- start for top alignment -->
24
26
< div class = " col-md-2 col-3 d-flex flex-column justify-content-start align-items-start p-0 badge-left-align" > <!-- left- aligned, no padding -->
25
27
< a href= " https://github.com/computorg/<%- item.repo %>" target= " _blank" style= " margin-left:0;" >
26
- < img src= " https://img.shields.io/github/actions/workflow/status/computorg/<%- item.repo %>/build.yml?label=build&logo=github" class = " img-fluid" alt= " Build Status" style= " vertical-align: top; margin-top: 0; margin-left:-20px; margin-top:5px; display:block;" / >
28
+ < img src= " https://img.shields.io/github/actions/workflow/status/computorg/<%- item.repo %>/build.yml?label=build&logo=github" class = " img-fluid" alt= " Build Status" style= " margin-top: 0; margin-left:-20px; margin-top:5px; display:block;" / >
27
29
< / a>
28
30
< / div>
29
31
< div class = " col-md-10 col-9 pl-1" >
30
- < h5 class = " card-title mb-1" style= " font-size:1.1em;" >
32
+ <!-- < h5 class = " card-title mb-1" style= " font-size:1.1em;" >
31
33
< a href= " <%= doiurl %>" data- toggle= " modal" data- target= " #articleModal" class = " text-decoration-none" >< %= item .title % >< / a>
34
+ < / h5> -->
35
+ < h5 class = " card-title mb-1" style= " font-size:1.1em;" >
36
+ < a href= " <%= doiurl %>" target= " _blank" >< %= item .title % >< / a>
32
37
< / h5>
33
38
< % if (item .authors ) { % >
34
39
< p class = " text-muted mb-1" style= " font-size:0.97em;" >< %= item .authors % >< / p>
35
40
< % } % >
36
- < p class = " text-muted mb-2" style= " font-size:0.95em;" >< em> Computo< / em> , < %= item .year % > .< / p>
41
+ < div class = " d-flex justify-content-between align-items-center mb-2" style= " font-size:0.95em;" >
42
+ < span class = " text-muted" >< em> Computo< / em> , < %= item .year % > .< / span>
43
+ < span class = " text-muted text-right" style= " font-size:0.95em; white-space:nowrap;" >< em>< a href= " <%= doiurl %>" target= " _blank" >< %= doiurl % >< / a>< / em>< / span>
44
+ < / div>
37
45
< div class = " btn-group btn-group-sm" role= " group" aria- label= " Article actions" >
38
- < % if (item[" abstract'" ] && item[" abstract'" ].trim ()) { % >
46
+ < a href= " <%= doiurl %>" data- toggle= " modal" data- target= " #articleModal" class = " btn btn-outline-secondary btn-sm" > Preview< / a>
47
+ <!-- < % if (item[" abstract'" ] && item[" abstract'" ].trim ()) { % >
39
48
< button type= " button" class = " btn btn-outline-secondary btn-sm" data- toggle= " modal" data- target= " #abstractModal" data- abstract= " <%- item[" abstract' "].replace(/"/g, ' & quot;' ) %>" data-title="<%- item.title.replace(/"/g, ' & quot;' ) %>" style="padding:0.2em 0.6em;">ABS</button>
40
- <% } %>
41
- <a href="<%= doiurl %>" class="btn btn-outline-secondary btn-sm" target="_blank" style="padding:0.2em 0.6em;">HTML</a>
42
- <% if (item.pdf && item.pdf.trim()) { %>
49
+ <% } %> -->
50
+ <!-- < a href="<%= doiurl %>" class="btn btn-outline-secondary btn-sm" target="_blank" style="padding:0.2em 0.6em;">HTML</a> -- >
51
+ <!-- < % if (item.pdf && item.pdf.trim()) { %>
43
52
<a href="<%= item.pdf %>" class="btn btn-outline-secondary btn-sm" target="_blank" style="padding:0.2em 0.6em;">PDF</a>
44
- <% } %>
45
- <a href="https://github.com/computorg/<%- item.repo %>" class="btn btn-outline-secondary btn-sm" target="_blank" style="padding:0.2em 0.6em;">GIT REPO </a>
46
- <button type="button" class="btn btn-outline-secondary btn-sm" onclick="generateBibTex(' < %- item . title . replace ( / ' / g , " \\ ' " ) % > ' , ' < %- item . authors . replace ( / ' / g , " \\ ' " ) % > ' , ' < %= item .year % > ' , ' < %= doiurl % > ' )" style="padding:0.2em 0.6em;">BIB </button>
53
+ <% } %> -->
54
+ <a href="https://github.com/computorg/<%- item.repo %>" class="btn btn-outline-secondary btn-sm" target="_blank" style="padding:0.2em 0.6em;">Sources (Git) </a>
55
+ <button type="button" class="btn btn-outline-secondary btn-sm" onclick="generateBibTex(' < %- bibtitle % > ' , ' < %- bibauthors % > ' , ' < %= item .year % > ' , ' < %= doiurl % > ' )" style="padding:0.2em 0.6em;"><span style="font-variant: small-caps; font-family: ' Times New Roman ' , Times, serif;">Bib<span style="vertical-align: -0.2em;">T</span><span style="vertical-align: 0em;">E</span>X</span> </button>
47
56
</div>
48
57
</div>
49
58
</div>
0 commit comments