From d1cd5eb50d2d134434829f979b5d725f16dd49ea Mon Sep 17 00:00:00 2001 From: Claas Kazzer <kazzer@ub.uni-leipzig.de> Date: Fri, 20 Apr 2018 17:07:06 +0200 Subject: [PATCH] refs #13039 * fixes toggler behaviour in collection-info --- themes/finc/js/collection_record.js | 8 ++++---- .../RecordDriver/SolrDefault/collection-info.phtml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/themes/finc/js/collection_record.js b/themes/finc/js/collection_record.js index 10040f5a6b9..366be1cf349 100644 --- a/themes/finc/js/collection_record.js +++ b/themes/finc/js/collection_record.js @@ -10,10 +10,10 @@ function showMoreInfoToggle() { // finc: Keep Accordion OPEN on load // toggleCollectionInfo(); $("#moreInfoToggle").removeClass('hidden'); - $("#moreInfoToggle").click(function moreInfoToggleClick(e) { - e.preventDefault(); - toggleCollectionInfo(); - }); + //$("#moreInfoToggle").click(function moreInfoToggleClick(e) { + // e.preventDefault(); + // toggleCollectionInfo(); + //}); } $(document).ready(function collectionRecordReady() { diff --git a/themes/finc/templates/RecordDriver/SolrDefault/collection-info.phtml b/themes/finc/templates/RecordDriver/SolrDefault/collection-info.phtml index 7f1758fd8f5..ac949052fe5 100644 --- a/themes/finc/templates/RecordDriver/SolrDefault/collection-info.phtml +++ b/themes/finc/templates/RecordDriver/SolrDefault/collection-info.phtml @@ -39,7 +39,7 @@ <? /* finc-specific snippet - Begin - CK */ ?> <? /* Do not set to 'hidden', make table below collapse in; adapt collection_record.js to keep accordion open - CK */ ?> - <a id="moreInfoToggle" href="#" class="accordion-toggler" data-toggle="collapse" aria-expanded="true"> + <a id="moreInfoToggle" href="#" class="accordion-toggler collapsed hidden" data-toggle="collapse" data-target="#collectionInfo" aria-expanded="true"> <?=$this->transEsc('Description')?> </a> <?/* Display Main Details */?> @@ -49,7 +49,7 @@ ?> <? if (!empty($fields)): ?> <?/* finc: we use 'collapse in' to initially hide the content, CK */?> - <table id="collectionInfo" class="table table-striped collapse in" style="display: table"> + <table id="collectionInfo" class="table table-striped collapse in"> <? /* Table summary not supported in html 5, finc-specific solution, CK */ ?> <caption class="sr-only"><?=$this->transEsc('Bibliographic Details')?></caption> <? foreach ($fields as $key => $current): ?> -- GitLab