diff --git a/doajtest/testbook/public_site/ToC.yml b/doajtest/testbook/public_site/ToC.yml index b481085cf9..8f3d10cd11 100644 --- a/doajtest/testbook/public_site/ToC.yml +++ b/doajtest/testbook/public_site/ToC.yml @@ -13,3 +13,19 @@ tests: results: - On the ToC of the journal with discontinued date in the past or today - the discontinued date is displayed - On the ToC of the journal with discontinued date in the future - the discontinued date is not displayed +- title: Test articles journal's page + context: + role: anonymous + steps: + - step: To prepare for this test, ensure that a journal is publicly available in DOAJ, containing a minimum of 4 articles, with 2 from one month and 2 from another, and these months must not be consecutive (e.g. 2 articles from January and 2 from March). + - step: Search for the above journal + results: + - On the "Articles" tab in the ToC of the journal, the articles are displayed. + - On the left, the "Month" facet is displayed. + - step: Select one of the years from the Year facet + - step: Select one of the months from the list + results: + - On the "Articles" tab in the ToC of the journal, the articles from the selected month are displayed. + - On the left, the "Month" facet is displayed. + - The selected month is displayed as selected in the "Month" facet. + diff --git a/portality/static/js/edges/public.toc.edge.js b/portality/static/js/edges/public.toc.edge.js index 8b45812cec..3ec7c8f22f 100644 --- a/portality/static/js/edges/public.toc.edge.js +++ b/portality/static/js/edges/public.toc.edge.js @@ -107,7 +107,7 @@ $.extend(true, doaj, { interval: "month", display: "Month", deactivateThreshold: 1, - active: false, + active: true, displayFormatter : function(val) { var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; var mi = (new Date(parseInt(val))).getUTCMonth(); @@ -120,7 +120,8 @@ $.extend(true, doaj, { open: false, togglable: true, countFormat: countFormat, - hideInactive: true + hideInactive: true, + hideEmpty: true }) }),