From afaaf9ef9f574f096859aa5474cce410fad2972f Mon Sep 17 00:00:00 2001 From: "James A. Overton" Date: Tue, 3 Nov 2015 16:27:51 -0500 Subject: [PATCH] Sort ontology list: Foundry, Library, Obsolete - update extract-metadata.py to sort YAML objects - update ontology_table.html to change sort and add classes - add custom.css to highlight Foundry and Obsolete rows - modify default.html to use custom.css --- _includes/ontology_table.html | 5 ++--- _includes/themes/bootstrap-3/default.html | 2 +- css/custom.css | 7 +++++++ util/extract-metadata.py | 21 ++++++++++++++++++--- 4 files changed, 28 insertions(+), 7 deletions(-) create mode 100644 css/custom.css diff --git a/_includes/ontology_table.html b/_includes/ontology_table.html index 49e0ce9e0..0d29dd023 100644 --- a/_includes/ontology_table.html +++ b/_includes/ontology_table.html @@ -1,9 +1,8 @@ Download table as: [ YAML | JSON-LD | RDF/Turtle ] - {% assign sorted_ontologies = site.ontologies | sort: 'in_foundry_order', 'last' %} - {% for ont in sorted_ontologies %} - + {% for ont in site.ontologies %} +
{% if ont.is_obsolete %} diff --git a/_includes/themes/bootstrap-3/default.html b/_includes/themes/bootstrap-3/default.html index 0e27dd515..3a076c521 100644 --- a/_includes/themes/bootstrap-3/default.html +++ b/_includes/themes/bootstrap-3/default.html @@ -19,7 +19,7 @@ - +