From a565d39f1908fa405b18cc798d273b0fcbaff070 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Wed, 28 Jan 2015 13:53:24 +0000 Subject: [PATCH] check translations, part facets filter/navi, MKWS-365 --- src/templates/navi.handlebars | 2 +- test/spec/mkws-pazpar2.js | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/templates/navi.handlebars b/src/templates/navi.handlebars index 5139fd7..fd56157 100644 --- a/src/templates/navi.handlebars +++ b/src/templates/navi.handlebars @@ -7,7 +7,7 @@ filters click - handler script to remove limit }} {{#each filters}} - {{{mkws-translate facet}}}: {{value}} + {{{mkws-translate facet}}}: {{value}} {{#unless @last}}|{{/unless}} {{/each}} diff --git a/test/spec/mkws-pazpar2.js b/test/spec/mkws-pazpar2.js index e24a1bd..bd60454 100644 --- a/test/spec/mkws-pazpar2.js +++ b/test/spec/mkws-pazpar2.js @@ -819,7 +819,7 @@ describe("Check translations", function () { } }); - xit("facets", function () { + xit("facets sidebar", function () { var list = $(".mkws-facet-title"); expect(list.length).toBe(3); @@ -829,6 +829,15 @@ describe("Check translations", function () { expect($(list[2]).text()).toBe(M("Authors")); }); + it("facets navigation", function () { + var list = $(".mkws-navi > span"); + + expect(list.length).toBe(2); + + expect($(list[0]).text()).toBe(M("source")); + expect($(list[1]).text()).toBe(M("author")); + }); + it("navigation", function () { var list = $(".mkws-pager-desc > span"); -- 1.7.10.4