|
| 1 | +{%- assign paper = site.data.bibere.papers[include.pid] -%} |
| 2 | +{%- if paper -%} |
| 3 | + {%- capture clean_id -%} |
| 4 | + {{ include.pid | replace: ":", "_" | replace: "-", "_" }} |
| 5 | + {%- endcapture -%} |
| 6 | + <li id="{{ clean_id }}"> |
| 7 | + <!-- Author --> |
| 8 | + {%- for a in paper.authors -%} |
| 9 | + {%- assign author = site.data.bibere.authors[a] -%} |
| 10 | + {%- if a == include.mainAuthor -%} |
| 11 | + {%- assign authorClass = "mainAuthor" -%} |
| 12 | + {%- else -%} |
| 13 | + {%- assign authorClass = "author" -%} |
| 14 | + {%- endif -%} |
| 15 | + <span class="{{ authorClass }}"> |
| 16 | + {%- if author -%} |
| 17 | + {%- if author.website -%} |
| 18 | + <a href="{{ author.website }}">{{ author.name.first }} {{ author.name.last }}</a> |
| 19 | + {%- else -%} |
| 20 | + {{ author.name.first }} {{ author.name.last }} |
| 21 | + {%- endif -%} |
| 22 | + {%- else -%} |
| 23 | + {{ a }} |
| 24 | + {%- endif -%} |
| 25 | + </span> |
| 26 | + {%- if forloop.last == true -%} |
| 27 | + . |
| 28 | + {%- else -%} |
| 29 | + , |
| 30 | + {%- endif -%} |
| 31 | + {%- endfor -%} |
| 32 | + <!-- Title --> |
| 33 | + {%- assign clean_title = paper.title | replace: "}", '' | strip_newlines -%} |
| 34 | + <span class="title">{{ clean_title | replace: "{", '' }}.</span> |
| 35 | + <!-- Venue --> |
| 36 | + <span class="venue"> |
| 37 | + {%- assign venue = site.data.bibere.venues[paper.venue] -%} |
| 38 | + {%- if paper.type == "Thesis" -%}PhD Thesis, {%- endif -%} |
| 39 | + {%- if paper.type == "TechReport" -%}Technical Report, {%- endif -%} |
| 40 | + {%- if venue -%} |
| 41 | + {{ venue.name }} |
| 42 | + {%- else -%} |
| 43 | + {{ paper.venue }} |
| 44 | + {%- endif -%}. |
| 45 | + </span> |
| 46 | + <!-- Year --> |
| 47 | + <span class="year">{{ paper.year }}</span> |
| 48 | + <!-- Tag --> |
| 49 | + <span class="tag_{{ paper.type }} tag label label-default">{{ paper.type }}</span> |
| 50 | + {%- for tag in paper.extraTags -%} |
| 51 | + <span class="tag_{{ tag }} tag label label-default">{{ tag }}</span> |
| 52 | + {%- endfor -%} |
| 53 | + <br/> |
| 54 | + <!-- Notes --> |
| 55 | + {%- if paper.emphasis -%} |
| 56 | + <span class="emphasisNote">{{ paper.emphasis }}</span><br/> |
| 57 | + {%- endif -%} |
| 58 | + {%- if paper.note -%} |
| 59 | + <span class="note">{{ paper.note }}</span><br/> |
| 60 | + {%- endif -%} |
| 61 | + <!-- Links --> |
| 62 | + [ |
| 63 | + {%- if paper.links -%} |
| 64 | + {%- for item in paper.links -%} |
| 65 | + {% assign link_first_char = item.link | slice:0,1 %} |
| 66 | + {%- if link_first_char == "/" and site.bibere.file_base_url -%} |
| 67 | + <a href="{{ site.bibere.file_base_url }}{{item.link}}">{{item.name}}</a>, |
| 68 | + {%- else -%} |
| 69 | + <a href="{{item.link}}">{{item.name}}</a>, |
| 70 | + {%- endif -%} |
| 71 | + {%- endfor -%} |
| 72 | + {%- endif -%} |
| 73 | + <!-- Abstract --> |
| 74 | + {%- if paper.abstract -%} |
| 75 | + <a class="collapse-clicker" onclick="$('#{{ clean_id }}_abstract').slideToggle(200)">Abstract</a>, |
| 76 | + {%- endif -%} |
| 77 | + <!-- BibTex --> |
| 78 | + <a class="collapse-clicker" onclick="$('#{{ clean_id }}_bibtex').slideToggle(200)">BibTex</a> ] |
| 79 | + {%- if paper.abstract -%} |
| 80 | + <div class="collapse" id="{{ clean_id }}_abstract"> |
| 81 | + <div class="panel panel-primary"> |
| 82 | + <div class="panel-body details-panel"> |
| 83 | + {{- paper.abstract -}} |
| 84 | + </div> |
| 85 | + </div> |
| 86 | + </div> |
| 87 | + {%- endif -%} |
| 88 | + <div class="collapse" id="{{ clean_id }}_bibtex"> |
| 89 | + <div class="panel panel-info"> |
| 90 | + <pre class="panel-body details-panel"> |
| 91 | + {%- include bibere/bibtex.html pid=include.pid -%} |
| 92 | + </pre> |
| 93 | + </div> |
| 94 | + </div> |
| 95 | + </li> |
| 96 | +{%- else -%} |
| 97 | + <p class="text-danger">Paper with id {{include.pid}} not found!</p> |
| 98 | + {{ error.standard_error }} |
| 99 | +{%- endif -%} |
0 commit comments