LP1010494 - More Details button is not translatable.
authorGarry Collum <gcollum@gmail.com>
Mon, 24 Jan 2022 02:05:16 +0000 (21:05 -0500)
committerMichele Morgan <mmorgan@noblenet.org>
Mon, 21 Mar 2022 13:02:17 +0000 (09:02 -0400)
Surrounds the text in the More Details and Less Details button in the
bootstrap opac bib record screen and changes 'Less Details' to
'Fewer Details'.

Signed-off-by: Garry Collum <gcollum@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
Signed-off-by: Michele Morgan <mmorgan@noblenet.org>
Open-ILS/src/templates-bootstrap/opac/parts/record/summary.tt2

index 13925be..f55058a 100755 (executable)
@@ -71,7 +71,7 @@ ctx.metalinks.push('
                 [%- INCLUDE "opac/parts/record/authors.tt2" %]
                 <div>
                     <button id="btnMore" data-toggle="collapse" data-target="#demo"
-                        class="btn btn-action btn-sm my-3"><i class="fas fa-info-circle" aria-hidden="true"></i> More Details</button>
+                        class="btn btn-action btn-sm my-3"><i class="fas fa-info-circle" aria-hidden="true"></i> [%l ("More Details") %]</button>
                     <div id="demo" class="collapse">
                         <h2 id='rdetail_record_details'>[% l("Record details") %]</h2>
                         <ul class="list-unstyled">
@@ -329,10 +329,10 @@ ctx.metalinks.push('
 
                 </div>
                 <script>jQuery('#demo').on('hidden.bs.collapse', function () {
-                        jQuery('#btnMore').html("<i class='fas fa-info-circle' aria-hidden='true'></i> More Details");
+                        jQuery('#btnMore').html("<i class='fas fa-info-circle' aria-hidden='true'></i> [%l ('More Details') %]");
                     })
                     jQuery('#demo').on('shown.bs.collapse', function () {
-                        jQuery('#btnMore').html("<i class='fas fa-info-circle' aria-hidden='true'></i> Less Details");
+                        jQuery('#btnMore').html("<i class='fas fa-info-circle' aria-hidden='true'></i> [%l ('Fewer Details') %]");
                     })
                     </script>