From 90a9f5d90b99ca965fac38e1fb74ae35d8dce596 Mon Sep 17 00:00:00 2001 From: Vit Brunner Date: Tue, 21 Apr 2015 20:32:36 +0200 Subject: [PATCH] Get meta keys from config, if defined --- source/scripts/controllers/comparison.js.coffee | 2 +- source/tests/the_raven/config.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/source/scripts/controllers/comparison.js.coffee b/source/scripts/controllers/comparison.js.coffee index 47c99ba..b62b95a 100644 --- a/source/scripts/controllers/comparison.js.coffee +++ b/source/scripts/controllers/comparison.js.coffee @@ -30,7 +30,7 @@ angular.module("sideBySide").controller "ComparisonController", headingKey = poems.config.heading or "Author" $scope.headings = (version[headingKey] for version in transformed.meta) - $scope.metaKeys = poems.getMetaKeys() + $scope.metaKeys = poems.config.metaKeys or poems.getMetaKeys() $scope.all = poems.all scroll() diff --git a/source/tests/the_raven/config.json b/source/tests/the_raven/config.json index f632cd6..7343bec 100644 --- a/source/tests/the_raven/config.json +++ b/source/tests/the_raven/config.json @@ -19,5 +19,6 @@ "1910-barbara-beaupre.md", "1970-baranczak.md" ], - "display": { "Language": [ "cs" ] } + "display": { "Language": [ "cs" ] }, + "metaKeys": [ "Author", "Title", "Year", "Language" ] }