From d1e70265fd805e44b84f92b3ab55a8becb50e65c Mon Sep 17 00:00:00 2001
From: Claas Kazzer <kazzer@uni-leipzig.de>
Date: Mon, 11 Jan 2021 16:55:33 +0100
Subject: [PATCH] refs #18012 [finc:BARF] add lang undefines tags

* adds lang="" to core files, result list and bookbag
* adds more tags for fav list
* adds more tags to myaccount views
---
 .../RecordDriver/EDS/result-list.phtml        |  2 +-
 themes/finc/scss/compiled.scss                |  5 ++++
 .../RecordDriver/DefaultRecord/core.phtml     |  5 ++--
 .../DefaultRecord/list-entry.phtml            |  4 +--
 .../DefaultRecord/result-list.phtml           |  2 +-
 .../FincMissing/result-list.phtml             |  2 +-
 .../templates/RecordDriver/SolrAI/core.phtml  |  5 ++--
 .../RecordDriver/SolrAI/result-list.phtml     |  2 +-
 .../RecordDriver/SolrLido/core.phtml          |  4 +--
 .../RecordDriver/SolrMarc/core.phtml          |  5 ++--
 .../templates/RecordTab/description.phtml     |  4 +--
 .../templates/RecordTab/descriptionlido.phtml |  2 +-
 themes/finc/templates/RecordTab/toc.phtml     | 28 +++++++++++++++++++
 themes/finc/templates/browse/home.phtml       |  2 +-
 themes/finc/templates/cart/contents.phtml     |  6 ++--
 .../templates/myresearch/checkedout.phtml     |  2 +-
 themes/finc/templates/myresearch/fines.phtml  |  2 +-
 .../templates/myresearch/historicloans.phtml  |  2 +-
 themes/finc/templates/myresearch/holds.phtml  |  4 +--
 .../templates/myresearch/illrequests.phtml    |  2 +-
 themes/finc/templates/myresearch/mylist.phtml |  2 +-
 .../myresearch/storageretrievalrequests.phtml |  2 +-
 .../finc/templates/search/history-table.phtml |  2 +-
 23 files changed, 64 insertions(+), 32 deletions(-)
 create mode 100644 themes/finc/templates/RecordTab/toc.phtml

diff --git a/themes/finc-accessibility/templates/RecordDriver/EDS/result-list.phtml b/themes/finc-accessibility/templates/RecordDriver/EDS/result-list.phtml
index a8ddccec426..ae136fa197d 100644
--- a/themes/finc-accessibility/templates/RecordDriver/EDS/result-list.phtml
+++ b/themes/finc-accessibility/templates/RecordDriver/EDS/result-list.phtml
@@ -37,7 +37,7 @@
             if (!empty($item)): ?>
               <div class="resultItemLine1">
                 <?php if('Ti' == $item['Group']): ?>
-                  <a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull _record_link"  data-view="<?=$this->params->getOptions()->getListViewOption()?>">
+                  <a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull _record_link"  data-view="<?=$this->params->getOptions()->getListViewOption()?>" lang="">
                   <?=$item['Data']?> </a>
                 <?php else:?>
                   <p>
diff --git a/themes/finc/scss/compiled.scss b/themes/finc/scss/compiled.scss
index a67f2e0335a..094ad9742b4 100644
--- a/themes/finc/scss/compiled.scss
+++ b/themes/finc/scss/compiled.scss
@@ -2911,6 +2911,11 @@ footer ul {
   }
 }
 
+// Favorites list description
+.list-desc {
+  margin-top: 1rem;
+}
+
 // Result List - END
 
 // Translate feature (Admin panel)
diff --git a/themes/finc/templates/RecordDriver/DefaultRecord/core.phtml b/themes/finc/templates/RecordDriver/DefaultRecord/core.phtml
index 53e91883a96..abfa3146c70 100644
--- a/themes/finc/templates/RecordDriver/DefaultRecord/core.phtml
+++ b/themes/finc/templates/RecordDriver/DefaultRecord/core.phtml
@@ -46,8 +46,7 @@
        */
     ?>
       <?php /* finc: add schema tags for title #13850 - VE */ ?>
-    <h1
-      property="name"><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
+    <h1 property="name" lang=""><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
 
     <?php /* #18307 remove summary from core */ ?>
 
@@ -70,7 +69,7 @@
         <?php foreach ($coreFields as $current): ?>
           <tr>
             <th><?= $this->transEsc($current['label']) ?>:</th>
-            <td data-title="<?= $this->transEsc($current['label']) ?>:"><?= $current['value'] ?></td>
+            <td lang="" data-title="<?= $this->transEsc($current['label']) ?>:"><?= $current['value'] ?></td>
           </tr>
         <?php endforeach; ?>
       </table>
diff --git a/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml b/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml
index 04e30ed779b..3412cfef99c 100644
--- a/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml
+++ b/themes/finc/templates/RecordDriver/DefaultRecord/list-entry.phtml
@@ -40,7 +40,7 @@ $thumbnailAlignment = $this->record($this->driver)->getThumbnailAlignment('list'
           <?php $missing = $this->driver instanceof \VuFind\RecordDriver\Missing; ?>
           <?php $describedById = $driver->getSourceIdentifier() . '|' . $driver->getUniqueId(); ?>
             <?php if ($missing && $this->driver->isCachedRecord()): ?>
-                <span id="<?=$describedById?>" class="title"><?=$this->record($this->driver)->getTitleHtml()?></span>
+                <span id="<?=$describedById?>" class="title" lang=""><?=$this->record($this->driver)->getTitleHtml()?></span>
                 <p class="alert alert-info">
                     <?= $this->translate('record_from_cache')?>
                     <?php if ($queryParams = $this->record($this->driver)->getAdvancedSearchQueryParams()): ?>
@@ -49,7 +49,7 @@ $thumbnailAlignment = $this->record($this->driver)->getThumbnailAlignment('list'
                 </p>
             <?php elseif (!$missing): ?>
                 <a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="getFull" data-view="<?=$this->params->getOptions()->getListViewOption() ?>">
-                    <span id="<?=$describedById?>" class="title"><?=$this->record($this->driver)->getTitleHtml()?></span>
+                    <span id="<?=$describedById?>" class="title" lang=""><?=$this->record($this->driver)->getTitleHtml()?></span>
                 </a>
             <?php endif;?>
         </div>
diff --git a/themes/finc/templates/RecordDriver/DefaultRecord/result-list.phtml b/themes/finc/templates/RecordDriver/DefaultRecord/result-list.phtml
index 5be28ca9b03..384afa895b7 100644
--- a/themes/finc/templates/RecordDriver/DefaultRecord/result-list.phtml
+++ b/themes/finc/templates/RecordDriver/DefaultRecord/result-list.phtml
@@ -33,7 +33,7 @@ if ($cover):
   <div class="media-body">
     <div class="result-body">
       <div>
-        <a id="<?=$describedById?>" href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>">
+        <a id="<?=$describedById?>" href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>" lang="">
           <?=$this->record($this->driver)->getTitleHtml()?>
         </a>
       </div>
diff --git a/themes/finc/templates/RecordDriver/FincMissing/result-list.phtml b/themes/finc/templates/RecordDriver/FincMissing/result-list.phtml
index 4d678204335..aab0e1066fe 100644
--- a/themes/finc/templates/RecordDriver/FincMissing/result-list.phtml
+++ b/themes/finc/templates/RecordDriver/FincMissing/result-list.phtml
@@ -39,7 +39,7 @@ if ($cover):
     <div class="result-body">
       <div>
         <?php /* We don't use links for missing records as they would lead nowhere - CK */ ?>
-        <span href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>">
+        <span href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>" lang="">
           <?=$this->record($this->driver)->getTitleHtml()?>
         </span>
       </div>
diff --git a/themes/finc/templates/RecordDriver/SolrAI/core.phtml b/themes/finc/templates/RecordDriver/SolrAI/core.phtml
index 4408efacce9..0898ed1578e 100644
--- a/themes/finc/templates/RecordDriver/SolrAI/core.phtml
+++ b/themes/finc/templates/RecordDriver/SolrAI/core.phtml
@@ -46,8 +46,7 @@
        */
     ?>
       <?php /* finc: add schema tags for title #13850 - VE */ ?>
-    <h1
-      property="name"><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
+    <h1 property="name" lang=""><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
 
       <?php /* #18307 remove summary from core */ ?>
 
@@ -73,7 +72,7 @@
             <?php else: ?>
               <tr>
                 <th><?= $this->transEsc($current['label']) ?>:</th>
-                <td data-title="<?= $this->transEsc($current['label']) ?>:"><?= $current['value'] ?></td>
+                <td lang="" data-title="<?= $this->transEsc($current['label']) ?>:"><?= $current['value'] ?></td>
               </tr>
             <?php endif; ?>
           <?php endforeach; ?>
diff --git a/themes/finc/templates/RecordDriver/SolrAI/result-list.phtml b/themes/finc/templates/RecordDriver/SolrAI/result-list.phtml
index 05bca21a2d7..0b8dc222334 100644
--- a/themes/finc/templates/RecordDriver/SolrAI/result-list.phtml
+++ b/themes/finc/templates/RecordDriver/SolrAI/result-list.phtml
@@ -31,7 +31,7 @@ if ($cover):
   <div class="media-body">
     <div class="result-body">
       <div>
-        <a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>">
+        <a href="<?=$this->recordLink()->getUrl($this->driver)?>" class="title getFull" data-view="<?=$this->params->getOptions()->getListViewOption()?>" lang="">
           <?=$this->record($this->driver)->getTitleHtml()?>
         </a>
       </div>
diff --git a/themes/finc/templates/RecordDriver/SolrLido/core.phtml b/themes/finc/templates/RecordDriver/SolrLido/core.phtml
index 22041396bbf..a2022ca6cc3 100644
--- a/themes/finc/templates/RecordDriver/SolrLido/core.phtml
+++ b/themes/finc/templates/RecordDriver/SolrLido/core.phtml
@@ -63,7 +63,7 @@
     <?php /* finc: We want to get rid of trailing special chars in the title and limit its length to 100 chars;
       in finc: keep schema name tag here!! #13861 CK
        */ ?>
-    <h1 property="name"><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h1>
+    <h1 property="name" lang=""><?=$this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100)))?></h1>
 
     <?php $summary = $this->driver->getSummary();
     $summary = isset($summary[0]) ? $this->escapeHtml($summary[0]) : false; ?>
@@ -97,7 +97,7 @@
           <?php else: ?>
             <tr>
               <th><?=$this->transEsc($current['label'])?>:</th>
-              <td data-title="<?= $this->transEsc($current['label']) ?>:"><?=$current['value']?></td>
+              <td lang="" data-title="<?= $this->transEsc($current['label']) ?>:"><?=$current['value']?></td>
             </tr>
           <?php endif; ?>
         <?php endforeach; ?>
diff --git a/themes/finc/templates/RecordDriver/SolrMarc/core.phtml b/themes/finc/templates/RecordDriver/SolrMarc/core.phtml
index 66c9a108e80..d0013407559 100644
--- a/themes/finc/templates/RecordDriver/SolrMarc/core.phtml
+++ b/themes/finc/templates/RecordDriver/SolrMarc/core.phtml
@@ -46,8 +46,7 @@
        */
     ?>
       <?php /* finc: add schema tags for title #13850 - VE */ ?>
-    <h1
-      property="name"><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
+    <h1 property="name" lang=""><?= $this->escapeHtml(preg_replace('/(\s[\/\.:]\s*)*$/', '', $this->truncate($this->driver->getShortTitle() . ' ' . $this->driver->getSubtitle() . ' ' . $this->driver->getTitleSection(), 100))) ?></h1>
 
       <?php /* #18307 remove summary from core */ ?>
 
@@ -73,7 +72,7 @@
             <?php else: ?>
               <tr>
                 <th><?= $this->transEsc($current['label']) ?>:</th>
-                <td data-title="<?= $this->transEsc($current['label']) ?>:"><?= $current['value'] ?></td>
+                <td lang="" data-title="<?= $this->transEsc($current['label']) ?>:"><?= $current['value'] ?></td>
               </tr>
             <?php endif; ?>
           <?php endforeach; ?>
diff --git a/themes/finc/templates/RecordTab/description.phtml b/themes/finc/templates/RecordTab/description.phtml
index 98d59dfadd4..48285ed3c4f 100644
--- a/themes/finc/templates/RecordTab/description.phtml
+++ b/themes/finc/templates/RecordTab/description.phtml
@@ -16,9 +16,9 @@ $mainFields = $formatter->getData($driver, $formatter->getDefaults('description'
       <tr>
         <?php if (!empty($current['label'])): ?>
           <th><?=$this->transEsc($current['label'])?>:</th>
-          <td data-title="<?= $this->transEsc($current['label']) ?>:">
+          <td lang="" data-title="<?= $this->transEsc($current['label']) ?>:">
         <?php else: ?>
-          <td colspan="2">
+          <td lang="" colspan="2">
         <?php endif; ?>
         <?=$current['value']?></td>
       </tr>
diff --git a/themes/finc/templates/RecordTab/descriptionlido.phtml b/themes/finc/templates/RecordTab/descriptionlido.phtml
index b02580e4cce..2afd501a844 100644
--- a/themes/finc/templates/RecordTab/descriptionlido.phtml
+++ b/themes/finc/templates/RecordTab/descriptionlido.phtml
@@ -14,7 +14,7 @@ $mainFields = $formatter->getData($driver, $formatter->getDefaults('description-
   <caption class="sr-only"><?= $this->transEsc('Description') ?></caption>
   <?php if (!empty($mainFields)): ?>
     <?php foreach ($mainFields as $current): ?>
-      <tr><th><?=$this->transEsc($current['label'])?>:</th><td data-title="<?= $this->transEsc($current['label']) ?>:"><?=$current['value']?></td></tr>
+      <tr><th><?=$this->transEsc($current['label'])?>:</th><td lang="" data-title="<?= $this->transEsc($current['label']) ?>:"><?=$current['value']?></td></tr>
     <?php endforeach; ?>
   <?php else: ?>
     <tr><td><?=$this->transEsc('no_description')?></td></tr>
diff --git a/themes/finc/templates/RecordTab/toc.phtml b/themes/finc/templates/RecordTab/toc.phtml
new file mode 100644
index 00000000000..81353b05984
--- /dev/null
+++ b/themes/finc/templates/RecordTab/toc.phtml
@@ -0,0 +1,28 @@
+<?php
+    // Set page title.
+    $this->headTitle($this->translate('Table of Contents') . ': ' . $this->driver->getBreadcrumb());
+
+    $toc = $this->tab->getContent();
+    if (empty($toc)) {
+        $driverToc = $this->driver->getTOC();
+        if (!empty($driverToc)) {
+            $toc['RecordDriver'] = $driverToc;
+        }
+    }
+?>
+<?php if (!empty($toc)): ?>
+  <strong><?=$this->transEsc('Table of Contents')?>: </strong>
+  <?php foreach ($toc as $provider => $content): ?>
+    <?php if (!is_array($content)): // treat non-array content as raw HTML ?>
+      <?=$content?>
+    <?php else: ?>
+      <ul class="toc">
+      <?php foreach ($content as $line): ?>
+        <li lang=""><?=$this->escapeHtml($line)?></li>
+      <?php endforeach; ?>
+      </ul>
+    <?php endif; ?>
+  <?php endforeach; ?>
+<?php else: ?>
+  <?=$this->transEsc('Table of Contents unavailable')?>.
+<?php endif; ?>
diff --git a/themes/finc/templates/browse/home.phtml b/themes/finc/templates/browse/home.phtml
index 13445e78c6d..d20402286c3 100644
--- a/themes/finc/templates/browse/home.phtml
+++ b/themes/finc/templates/browse/home.phtml
@@ -84,7 +84,7 @@
     </div>
   <?php elseif (isset($this->query)): ?>
     <div class="browse-list" id="list4">
-      <span class="browse-item"><?=$this->transEsc('nohit_heading') ?></span>
+      <span class="browse-item" lang=""><?=$this->transEsc('nohit_heading') ?></span>
     </div>
   <?php endif; ?>
 </div>
diff --git a/themes/finc/templates/cart/contents.phtml b/themes/finc/templates/cart/contents.phtml
index 1546577216b..1c9d6201524 100644
--- a/themes/finc/templates/cart/contents.phtml
+++ b/themes/finc/templates/cart/contents.phtml
@@ -1,3 +1,4 @@
+<!-- finc: cart - contents -->
 <?php $records = $this->cart()->getRecordDetails();
 if (!empty($records)): ?>
   <hr/>
@@ -8,7 +9,7 @@ if (!empty($records)): ?>
           <label>
           <?=$this->record($record)->getCheckbox('cart')?>
           <?php $describedById = $record->getSourceIdentifier() . '|' . $record->getUniqueId(); ?>
-          <a id="<?=$describedById?>" title="<?=$this->transEsc('View Record')?>" href="<?=$this->recordLink()->getUrl($record)?>" data-lightbox-ignore><?=$this->escapeHtml($record->getBreadcrumb())?>
+          <a id="<?=$describedById?>" title="<?=$this->transEsc('View Record')?>" href="<?=$this->recordLink()->getUrl($record)?>" data-lightbox-ignore lang=""><?=$this->escapeHtml($record->getBreadcrumb())?>
             <?php
             // finc-specific: Collect citation data:
             $helper = $this->citation($record);
@@ -27,4 +28,5 @@ if (!empty($records)): ?>
   </ul>
 <?php else: ?>
   <p class="alert alert-info"><?=$this->transEsc('bookbag_is_empty')?>.</p>
-<?php endif; ?>
\ No newline at end of file
+<?php endif; ?>
+<!-- finc: cart - contents - END -->
diff --git a/themes/finc/templates/myresearch/checkedout.phtml b/themes/finc/templates/myresearch/checkedout.phtml
index a0ae5b54824..a6b6773c1a9 100644
--- a/themes/finc/templates/myresearch/checkedout.phtml
+++ b/themes/finc/templates/myresearch/checkedout.phtml
@@ -119,7 +119,7 @@
                 $title = $resource->getTitle();
                 $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title);
                 echo '<a id="' .  $describedById . '" href="' . $this->recordLink()->getUrl($resource) .
-                  '" class="title">' . $title . '</a>';
+                  '" class="title" lang="">' . $title . '</a>';
               } elseif (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
                 // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show...
                 echo $this->escapeHtml($ilsDetails['title']);
diff --git a/themes/finc/templates/myresearch/fines.phtml b/themes/finc/templates/myresearch/fines.phtml
index 32080215e7f..a77e2fdcc7e 100644
--- a/themes/finc/templates/myresearch/fines.phtml
+++ b/themes/finc/templates/myresearch/fines.phtml
@@ -77,7 +77,7 @@
       <?php for ($row = 0; $row < $rowCount; $row++): ?>
         <tr>
           <?php foreach ($columns as $column): ?>
-            <td data-title="<?=$this->transEsc($column)?>"><?=$tableData[$column][$row]?></td>
+            <td data-title="<?=$this->transEsc($column)?>" lang=""><?=$tableData[$column][$row]?></td>
           <?php endforeach; ?>
         </tr>
       <?php endfor; ?>
diff --git a/themes/finc/templates/myresearch/historicloans.phtml b/themes/finc/templates/myresearch/historicloans.phtml
index 2f73364f07a..a86d384a051 100644
--- a/themes/finc/templates/myresearch/historicloans.phtml
+++ b/themes/finc/templates/myresearch/historicloans.phtml
@@ -68,7 +68,7 @@
                 $title = $resource->getTitle();
                 $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title);
                 echo '<a href="' . $this->recordLink()->getUrl($resource) .
-                  '" class="title">' . $title . '</a>';
+                  '" class="title" lang="">' . $title . '</a>';
               } elseif (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
                 // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show...
                 echo $this->escapeHtml($ilsDetails['title']);
diff --git a/themes/finc/templates/myresearch/holds.phtml b/themes/finc/templates/myresearch/holds.phtml
index 67298804196..6b584c7355c 100644
--- a/themes/finc/templates/myresearch/holds.phtml
+++ b/themes/finc/templates/myresearch/holds.phtml
@@ -82,10 +82,10 @@
                 $title = $resource->getTitle();
                 $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title);
                 echo '<a id="' . $describedById . '" href="' . $this->recordLink()->getUrl($resource)
-                  . '" class="title">' . $title . '</a>';
+                  . '" class="title" lang="">' . $title . '</a>';
               } elseif (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
                 // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show...
-                echo '<span class="title" id="' . $describedById . '">' . $this->escapeHtml($ilsDetails['title']) . '</span>';
+                echo '<span class="title" id="' . $describedById . '" lang="">' . $this->escapeHtml($ilsDetails['title']) . '</span>';
               } else {
                 // Last resort -- indicate that no title could be found.
                 echo $this->transEsc('Title not available');
diff --git a/themes/finc/templates/myresearch/illrequests.phtml b/themes/finc/templates/myresearch/illrequests.phtml
index 086406fd81d..32f59dd9217 100644
--- a/themes/finc/templates/myresearch/illrequests.phtml
+++ b/themes/finc/templates/myresearch/illrequests.phtml
@@ -83,7 +83,7 @@
                 $title = $resource->getTitle();
                 $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title);
                 echo '<a id="' . $describedById . '" href="' . $this->recordLink()->getUrl($resource)
-                  . '" class="title">' . $title . '</a>';
+                  . '" class="title" lang="">' . $title . '</a>';
               } elseif (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
                 // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show...
                 echo $this->escapeHtml($ilsDetails['title']);
diff --git a/themes/finc/templates/myresearch/mylist.phtml b/themes/finc/templates/myresearch/mylist.phtml
index 95a00ff48f6..6354ae6aa1c 100644
--- a/themes/finc/templates/myresearch/mylist.phtml
+++ b/themes/finc/templates/myresearch/mylist.phtml
@@ -69,7 +69,7 @@ $user = $this->auth()->isLoggedIn();
     </div>
   </nav>
   <?php if ($list && !empty($list->description)): ?>
-    <p><?=$this->escapeHtml($list->description)?></p>
+    <p class="list-desc"><?=$this->escapeHtml($list->description)?></p>
   <?php endif; ?>
   <?php if ($recordTotal > 0): ?>
     <form class="form-inline" method="post" name="bulkActionForm" action="<?=$this->url('cart-myresearchbulk')?>" data-lightbox data-lightbox-onsubmit="bulkFormHandler">
diff --git a/themes/finc/templates/myresearch/storageretrievalrequests.phtml b/themes/finc/templates/myresearch/storageretrievalrequests.phtml
index 18bd7f3ca95..a7ec9c25346 100644
--- a/themes/finc/templates/myresearch/storageretrievalrequests.phtml
+++ b/themes/finc/templates/myresearch/storageretrievalrequests.phtml
@@ -82,7 +82,7 @@
                 $title = $resource->getTitle();
                 $title = empty($title) ? $this->transEsc('Title not available') : $this->escapeHtml($title);
                 echo '<a id="' . $describedById . '" href="' . $this->recordLink()->getUrl($resource)
-                  . '" class="title">' . $title . '</a>';
+                  . '" class="title" lang="">' . $title . '</a>';
               } elseif (isset($ilsDetails['title']) && !empty($ilsDetails['title'])){
                 // If the record is not available in Solr, perhaps the ILS driver sent us a title we can show...
                 echo $this->escapeHtml($ilsDetails['title']);
diff --git a/themes/finc/templates/search/history-table.phtml b/themes/finc/templates/search/history-table.phtml
index 57e38252ee5..ff9e0554e32 100644
--- a/themes/finc/templates/search/history-table.phtml
+++ b/themes/finc/templates/search/history-table.phtml
@@ -16,7 +16,7 @@
 
         <td data-title="<?= $this->transEsc('history_search') ?>:">
             <?= $this->historylabel($info->getParams()->getSearchClassId()) ?>
-          <a href="<?= $this->url($info->getOptions()->getSearchAction()) . $info->getUrlQuery()->getParams() ?>"><?php $desc = $info->getParams()->getDisplayQuery();
+          <a href="<?= $this->url($info->getOptions()->getSearchAction()) . $info->getUrlQuery()->getParams() ?>" lang=""><?php $desc = $info->getParams()->getDisplayQuery();
           echo empty($desc) ? $this->transEsc("history_empty_search") : $this->escapeHtml($desc);
           ?>
           </a>
-- 
GitLab