From b876fd127992bb542541beba2baba628e40a8ad9 Mon Sep 17 00:00:00 2001 From: Chris Hallberg <crhallberg@gmail.com> Date: Tue, 17 Mar 2015 17:20:28 -0400 Subject: [PATCH] pubdatevis facet fix and selection fix. --- module/VuFind/src/VuFind/Controller/AjaxController.php | 2 +- themes/bootstrap3/templates/Recommend/PubDateVisAjax.phtml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module/VuFind/src/VuFind/Controller/AjaxController.php b/module/VuFind/src/VuFind/Controller/AjaxController.php index b2895952962..054a0230e85 100644 --- a/module/VuFind/src/VuFind/Controller/AjaxController.php +++ b/module/VuFind/src/VuFind/Controller/AjaxController.php @@ -799,7 +799,7 @@ class AjaxController extends AbstractBase $from = $to = ''; if (isset($filters[$current])) { foreach ($filters[$current] as $filter) { - if (preg_match('/\[\d+ TO \d+\]/', $filter)) { + if (preg_match('/\[[\d\*]+ TO [\d\*]+\]/', $filter)) { $range = explode(' TO ', trim($filter, '[]')); $from = $range[0] == '*' ? '' : $range[0]; $to = $range[1] == '*' ? '' : $range[1]; diff --git a/themes/bootstrap3/templates/Recommend/PubDateVisAjax.phtml b/themes/bootstrap3/templates/Recommend/PubDateVisAjax.phtml index e4fd974b16c..1e3f4af4ec8 100644 --- a/themes/bootstrap3/templates/Recommend/PubDateVisAjax.phtml +++ b/themes/bootstrap3/templates/Recommend/PubDateVisAjax.phtml @@ -10,7 +10,7 @@ <? foreach ($visFacets as $facetField=>$facetRange): ?> <div class="authorbox"> - <div id="datevis<?=$this->escapeHtml($facetField)?>xWrapper" style="display: none;"> + <div id="datevis<?=$this->escapeHtml($facetField)?>xWrapper" class="hidden"> <strong><?=$this->transEsc($facetRange['label']) ?></strong> <? /* space the flot visualisation */ ?> <div id="datevis<?=$facetField ?>x" style="margin:0 10px;width:auto;height:80px;cursor:crosshair;"></div> -- GitLab