From c75fcfebe348db32b36eac5a2a3626211e2ac0a3 Mon Sep 17 00:00:00 2001
From: Demian Katz <demian.katz@villanova.edu>
Date: Sat, 8 Jul 2017 16:49:59 -0400
Subject: [PATCH] Fixed list formatting.

---
 .../templates/myresearch/mylist.phtml         | 38 ++++++++++---------
 1 file changed, 21 insertions(+), 17 deletions(-)

diff --git a/themes/bootstrap3/templates/myresearch/mylist.phtml b/themes/bootstrap3/templates/myresearch/mylist.phtml
index 3c4893f788d..0c3ace56786 100644
--- a/themes/bootstrap3/templates/myresearch/mylist.phtml
+++ b/themes/bootstrap3/templates/myresearch/mylist.phtml
@@ -29,17 +29,19 @@
 
 <div class="<?=$this->layoutClass('mainbody')?>">
   <h2><?=$list ? $this->escapeHtml($list->title) : $this->transEsc("Your Favorites")?></h2>
-  <div class="search-header">
-    <? if ($recordTotal > 0): ?>
-      <?
-        $transParams = [
-          '%%start%%' => $this->localizedNumber($this->results->getStartRecord()),
-          '%%end%%'   => $this->localizedNumber($this->results->getEndRecord()),
-          '%%total%%' => $this->localizedNumber($recordTotal)
-        ];
-      ?>
-      <span class="search-stats"><?=$this->translate('showing_items_of_html', $transParams); ?></span>
-    <? endif; ?>
+  <nav class="search-header hidden-print">
+    <div class="search-stats">
+      <? if ($recordTotal > 0): ?>
+        <?
+          $transParams = [
+            '%%start%%' => $this->localizedNumber($this->results->getStartRecord()),
+            '%%end%%'   => $this->localizedNumber($this->results->getEndRecord()),
+            '%%total%%' => $this->localizedNumber($recordTotal)
+          ];
+        ?>
+        <?=$this->translate('showing_items_of_html', $transParams); ?>
+      <? endif; ?>
+    </div>
     <div class="search-controls">
       <? if (isset($list)): ?>
         <? if ($list->editAllowed($account->isLoggedIn())): ?>
@@ -55,14 +57,16 @@
           </div>
         <? endif; ?>
       <? endif; ?>
+      <? if ($recordTotal > 0): ?>
+        <?=$this->render('search/controls/limit.phtml')?>
+        <?=$this->render('search/controls/sort.phtml')?>
+      <? endif; ?>
     </div>
-  </div>
-<? if ($list && !empty($list->description)): ?>
-  <p><?=$this->escapeHtml($list->description)?></p>
-<? endif; ?>
+  </nav>
+  <? if ($list && !empty($list->description)): ?>
+    <p><?=$this->escapeHtml($list->description)?></p>
+  <? endif; ?>
   <? if ($recordTotal > 0): ?>
-    <?=$this->render('search/controls/limit.phtml')?>
-    <?=$this->render('search/controls/sort.phtml')?>
     <form class="form-inline" method="post" name="bulkActionForm" action="<?=$this->url('cart-myresearchbulk')?>" data-lightbox data-lightbox-onsubmit="bulkFormHandler">
       <?=$this->context($this)->renderInContext('myresearch/bulk-action-buttons.phtml', ['idPrefix' => '', 'list' => isset($list) ? $list : null, 'account' => $this->account])?>
       <? foreach ($this->results->getResults() as $i=>$current): ?>
-- 
GitLab