From 81d7a0556948281d11d8f0652ecdca61005c4318 Mon Sep 17 00:00:00 2001 From: Neil Lawrence Date: Fri, 24 Feb 2017 21:02:47 +0000 Subject: [PATCH] Changes to scripting to improve presentation. --- db/v4/saeys08a.bib | 5 +++-- db/v6.bib | 4 +++- ruby/bibliography.bib | 2 +- ruby/bibtex2yaml.rb | 6 +++++- ruby/citeproc.yaml | 2 +- ruby/index.html | 4 ++-- 6 files changed, 15 insertions(+), 8 deletions(-) diff --git a/db/v4/saeys08a.bib b/db/v4/saeys08a.bib index 5a5f281..b13fc0c 100644 --- a/db/v4/saeys08a.bib +++ b/db/v4/saeys08a.bib @@ -1,7 +1,8 @@ @InProceedings{saeys08a, - title = {Best Agglomerative Ranked Subset for Feature Selection}, - author = {Yvan Saeys and Huan Liu and I\~naki Inza and Louis Wehenkel and Yves {Van de Peer}, + title = {Preface}, + author = {Yvan Saeys and Huan Liu and I\~naki Inza and Louis Wehenkel and Yves {Van de Peer}}, pages = {1-4}, abstract = {Welcome to FSDM'08}, + section = {preface}, pdf = {http://jmlr.org/proceedings/papers/v4/saeys08a/saeys08a.pdf}, } diff --git a/db/v6.bib b/db/v6.bib index ad3a6dc..bcf12c0 100644 --- a/db/v6.bib +++ b/db/v6.bib @@ -1,12 +1,14 @@ @proceedings{GuyonIJDSB2008, editor = {Guyon, Isabelle and Janzing, Dominik and Sch\"{o}lkopf, Bernhard}, - booktitle = {Causality: Objectives and Assessment (NIPS 2008 Workshop)}, + booktitle = {Proceedings of Workshop on Causality: Objectives and Assessment at NIPS 2008}, + name = {Causality: Objectives and Assessment}, series = {Journal of Machine Learning Research - Proceedings Track}, volume = {6}, year = {2008}, start = {2008-12-12}, end = {2008-12-12}, published = {2010-02-18}, + address = {Whistler, Canada}, shortname = {COA}, bibsource = {http://jmlr.csail.mit.edu/proceedings/}, sections = {intro=Introduction|theory=Fundamentals and Algorithms|challenge=Challenge Contributions} diff --git a/ruby/bibliography.bib b/ruby/bibliography.bib index a5f5724..8ca3dfb 100644 --- a/ruby/bibliography.bib +++ b/ruby/bibliography.bib @@ -13,7 +13,7 @@ @Proceedings{ series = {Proceedings of Machine Learning Research}, volume = {{ site.volume }} {{c}} -{% assign sorted = (site.posts | sort: 'firstpage') %} +{% assign sorted = (site.posts | sort: 'order') %} {% for post in sorted %} {% capture id %}{{ post.id | remove_first: '/' }}{% endcapture %} @InProceedings{{o}}{{ id }}, diff --git a/ruby/bibtex2yaml.rb b/ruby/bibtex2yaml.rb index eff7a5d..319888c 100755 --- a/ruby/bibtex2yaml.rb +++ b/ruby/bibtex2yaml.rb @@ -75,7 +75,7 @@ def bibtohash(obj, bib) ha['comments'] = false end end - + if ha.has_key?('sections') sections = ha['sections'].split('|') hasections = Array.new(sections.length) @@ -107,6 +107,10 @@ def bibtohash(obj, bib) if ha.has_key?('end') ha['end'] = Date.parse ha['end'] end + if ha.has_key?('pages') + ha['order'] = pages[0].to_i + end + return ha end diff --git a/ruby/citeproc.yaml b/ruby/citeproc.yaml index 322d47d..fee9cc0 100644 --- a/ruby/citeproc.yaml +++ b/ruby/citeproc.yaml @@ -1,7 +1,7 @@ --- layout: null --- -{% assign sorted = (site.posts | sort: 'firstpage') %}{% for post in sorted %}{% capture id %}{{ post.id | remove_first: '/' }}{% endcapture %} +{% assign sorted = (site.posts | sort: 'order') %}{% for post in sorted %}{% capture id %}{{ post.id | remove_first: '/' }}{% endcapture %} - title: "{{ post.title }}" volume: {{ post.volume }} URL: {{site.url}}{{site.baseurl}}{{ post.url }}{% if post.doi %} diff --git a/ruby/index.html b/ruby/index.html index b1e8572..b09fe2f 100644 --- a/ruby/index.html +++ b/ruby/index.html @@ -38,7 +38,7 @@

Volume {{ site.volume }}: {{ site.conference.name }}, {% if days > 1 %}{% if {% if site.sections %} {% for section in site.sections %}

{{ section.title }}

- {% assign sorted = (site.posts | sort: 'firstpage') %} + {% assign sorted = (site.posts | sort: 'order') %} {% for post in sorted %} {% if section.name == post.section %} {% include listpaper.html %} @@ -48,7 +48,7 @@

{{ section.title }}

{% endfor %} {% endif %}
- {% assign sorted = (site.posts | sort: 'firstpage') %} + {% assign sorted = (site.posts | sort: 'order') %} {% for post in sorted %} {% unless post.section %} {% include listpaper.html %}