From 47566d3ef870a5c8c70ba67c9272547e84b0b700 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Thu, 12 Jul 2018 08:47:45 -0400
Subject: [PATCH] Fix WorldCatIdentities more/less functionality. - Resolves
 VUFIND-1275.

---
 .../templates/Recommend/WorldCatIdentities.phtml           | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/themes/bootstrap3/templates/Recommend/WorldCatIdentities.phtml b/themes/bootstrap3/templates/Recommend/WorldCatIdentities.phtml
index 50af892e97c..07938465a7b 100644
--- a/themes/bootstrap3/templates/Recommend/WorldCatIdentities.phtml
+++ b/themes/bootstrap3/templates/Recommend/WorldCatIdentities.phtml
@@ -4,8 +4,8 @@
     <dl>
       <?php $i = 0; foreach ($worldCatIdentities as $author => $subjects): ?>
         <?php if (++$i == 4): ?>
-          <dd id="moreWCIdents"><a href="#" onclick="moreFacets('WCIdents'); return false;"><?=$this->transEsc('more')?> ...</a></dd>
-          <span class="hidden" id="narrowGroupHidden_WCIdents">
+          <dd id="more-WCIdents"><a href="#" onclick="moreFacets('WCIdents'); return false;"><?=$this->transEsc('more')?> ...</a></dd>
+          <span class="hidden WCIdents">
         <?php endif; ?>
         <dd>
         <a href="<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($author)?>%22&amp;type=Author"><?=$this->escapeHtml($author)?></a>
@@ -14,7 +14,8 @@
           <dd><?=$this->transEsc('Related Subjects')?>:</dd>
           <?php $j = 0; foreach ($subjects as $subj): ?>
             <?php if (++$j == 3): ?>
-              <dd id="moreWCIdents<?=$i?>"><a href="#" onclick="moreFacets('WCIdents<?=$i?>'); return false;"><?=$this->transEsc('more')?> ...</a></dd>
+              <dd id="more-WCIdents<?=$i?>"><a href="#" onclick="moreFacets('WCIdents<?=$i?>'); return false;"><?=$this->transEsc('more')?> ...</a></dd>
+              <span class="hidden WCIdents<?=$i?>">
             <?php endif; ?>
             <dd>&bull; <a href="<?=$this->url('search-results')?>?lookfor=%22<?=urlencode($subj)?>%22&amp;type=Subject"><?=$this->escapeHtml($subj)?></a></dd>
           <?php endforeach; ?>
-- 
GitLab