From d5e12d0f9cdd96a4e33c76f4123bd8e997a725b4 Mon Sep 17 00:00:00 2001
From: Thomas Wood <thomas.wood09@imperial.ac.uk>
Date: Tue, 2 Feb 2016 22:11:25 +0000
Subject: [PATCH] Link people to authors bidirectionally

---
 Gemfile                               | 2 +-
 Gemfile.lock                          | 8 ++++----
 _config.yml                           | 1 +
 _includes/publication-authors.html    | 7 ++++++-
 _layouts/publication-entry.html       | 2 +-
 _layouts/publication.html             | 2 +-
 publications/{index.md => index.html} | 0
 7 files changed, 14 insertions(+), 8 deletions(-)
 rename publications/{index.md => index.html} (100%)

diff --git a/Gemfile b/Gemfile
index 0bf06a3..b6fa0ab 100644
--- a/Gemfile
+++ b/Gemfile
@@ -4,7 +4,7 @@ gem 'rake'
 gem 'jekyll'
 
 group :default, :jekyll_plugins do
-  gem 'jekyll-scholar', :git => 'https://github.com/edgemaster/jekyll-scholar.git', :branch => 'master'
+  gem 'jekyll-scholar', :git => 'https://github.com/inukshuk/jekyll-scholar.git', :ref => '4ef567dc730e373a9b000c97f210b899cd155e6a'
 end
 
 group :test do
diff --git a/Gemfile.lock b/Gemfile.lock
index 69e28e1..e475622 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -1,7 +1,7 @@
 GIT
-  remote: https://github.com/edgemaster/jekyll-scholar.git
-  revision: e0d4f7a10964f1b878c833fb67b570330d14bca6
-  branch: master
+  remote: https://github.com/inukshuk/jekyll-scholar.git
+  revision: 4ef567dc730e373a9b000c97f210b899cd155e6a
+  ref: 4ef567dc730e373a9b000c97f210b899cd155e6a
   specs:
     jekyll-scholar (5.6.0)
       bibtex-ruby (~> 4.0, >= 4.0.13)
@@ -19,7 +19,7 @@ GEM
       thread_safe (~> 0.3, >= 0.3.4)
       tzinfo (~> 1.1)
     addressable (2.4.0)
-    bibtex-ruby (4.1.2)
+    bibtex-ruby (4.2.0)
       latex-decode (~> 0.0)
     citeproc (1.0.2)
       namae (~> 0.8)
diff --git a/_config.yml b/_config.yml
index e97a946..dc65b39 100644
--- a/_config.yml
+++ b/_config.yml
@@ -43,6 +43,7 @@ scholar:
   details_layout: publication.html
 
   use_raw_bibtex_entry: true
+  bibtex_skip_fields: ['month_numeric']
 
   sort_by: year
   order: descending
diff --git a/_includes/publication-authors.html b/_includes/publication-authors.html
index fbad0b7..1565113 100644
--- a/_includes/publication-authors.html
+++ b/_includes/publication-authors.html
@@ -1 +1,6 @@
-{{ entry.author }}
+<ul class="list-inline">
+{% for author in include.authors %}
+{% assign matched = site.people | where:"lastname",author.last | first %}
+<li class="list-inline-item">{% if matched %}<a href="{{ matched.url }}">{% endif %}{{ author.first }} {{ author.last }}{% if matched %}</a>{% endif %}</li>
+{% endfor %}
+</ul>
diff --git a/_layouts/publication-entry.html b/_layouts/publication-entry.html
index 021a912..fdea805 100644
--- a/_layouts/publication-entry.html
+++ b/_layouts/publication-entry.html
@@ -3,6 +3,6 @@
   {% if link %}<a class="btn btn-secondary" role="button" href="{{ link }}"><i class="fa fa-file-text-o"></i></a>{% endif %}
 </div>
 <p class="pub-title h4"><a href="{{ details }}">{{ entry.title }}</a></p>
-<p class="pub-authors">{% include publication-authors.html %}</p>
+<p class="pub-authors">{% include publication-authors.html authors=entry.author_array %}</p>
 <p class="pub-venue">{% include publication-venue.html %}</p>
 
diff --git a/_layouts/publication.html b/_layouts/publication.html
index d2e7d2b..d9d9ddb 100644
--- a/_layouts/publication.html
+++ b/_layouts/publication.html
@@ -22,7 +22,7 @@ menu: false
   </div>
   <div class="col-sm-8">
     <h3>Authors</h3>
-    <p>{{ page.entry.author }}</p>
+    <p>{% include publication-authors.html authors=page.entry.author_array %}</p>
 
     {% if page.entry.abstract %}
     <h3>Abstract</h3>
diff --git a/publications/index.md b/publications/index.html
similarity index 100%
rename from publications/index.md
rename to publications/index.html
-- 
GitLab